Professional Documents
Culture Documents
Submitting XML Report Using FND
Submitting XML Report Using FND
Submitting XML Report Using FND
1. If you submit the concurrent Program (XML Report) through back and as normal way using
“FND_REQUEST. SUBMIT_REQUEST”, it will not take Attached Template(Layout) to the Concurrent
Program. This we can observe in SRS Window -> View Details -> Options below Screen will appear.
2. If you want to appear Template to the Concurrent Program, we need to add Layout Explicitly using
“FND_REQUEST.ADD_LAYOUT” Packaged Procedure. Before submitting the Concurrent Program
(XML Report). (See given example code below)
3. After Completion of Point 2, Template details we can see in SRSView Details Options in below Screen.
--LAYOUT IS SUBMITTED TO A CONCURRENT REQUEST USING BELOW PROCEDURE
fnd_request.add_layout (
template_appl_name => 'Template Application',
template_code => 'Template Code',
template_language => 'en', --Use language from template definition
template_territory => 'US', --Use territory from template definition
output_format => 'PDF' --Use output format from template definition
);
fnd_request.add_printer (
printer => printer_name,
copies => 1);
--CODING
DECLARE
lc_boolean BOOLEAN;
ln_request_id NUMBER;
lc_printer_name VARCHAR2 (100);
lc_boolean1 BOOLEAN;
lc_boolean2 BOOLEAN;
BEGIN
IF ln_request_id = 0
THEN
dbms.output.put_line ('Concurrent request failed to submit');
END IF;
END;
DECLARE
l_request_id NUMBER;
l_user_id NUMBER := NULL;
l_resp_id NUMBER := NULL;
l_resp_appl_id NUMBER := NULL;
l_user_name VARCHAR2 (255) := 'RAGHAVENDRA';
l_responsibility_name VARCHAR2 (255)
:= 'Order Management Super User, Vision Germany';
l_printer_name VARCHAR2 (255) := 'PN Printer';
l_warehouse_id NUMBER := 911;
l_application_short_name VARCHAR2 (10) := 'WSH';
l_option_return BOOLEAN;
BEGIN
BEGIN
SELECT fu.user_id
INTO l_user_id
FROM fnd_user fu
WHERE fu.user_name = l_user_name;