Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
New Requirements:
A new RDF needs to be created for each requirement stated above or an existing
RDF needs to be modified with huge amount of effort but where as with XML
Publisher it can be done very easily.
XML Publisher separates a report’s data, layout and translation components into
three manageable pieces at design time; at runtime all the three pieces are brought
back together by XML Publisher to generate the final formatted, translated outputs
like PDF, HTML, XLS and RTF. In future, if any there is any change in layout we just
need to add/modify the Layout file
Data Logic – Data extracted from database and converted into an XML string.
Layout - The layout templates to be used for the final output are stored and
managed in the Template Manager.
Translation -The translation handler will manage the translation that is required at
runtime
A concurrent program is written that spit out an XML file as output Such concurrent
program can be of type SQL or PL/SQL or Oracle Report or any other supportable
type, provided it can produce a XML output.
1.Here I have a very simple PL/SQL procedure, which fetch the records from AR
tables and write the output in xml tags.
v_details.trx_number||'</AMOUNT_DUE_ORIGINAL>');
5. Add this new concurrent program with Receivables request group. Either using
the following code or through below application screen.
DECLARE
BEGIN
FND_PROGRAM.add_to_group
(
PROGRAM_SHORT_NAME =>'CUST_XML_SAMPLE'
,PROGRAM_APPLICATION =>'AR'
,REQUEST_GROUP => 'Receivables All'
,GROUP_APPLICATION =>'AR'
);
commit;
exception
when others then
dbms_output.put_line('Object already exists');
END ;
/
Go to System Administrator Responsibility ->Security ->Responsibility-
>Request
- <CUSTOMERINFO>
- <P_CUSTOMER>
<CUSTOMER_NAME>UNIV OF CHICAGO HOSP</CUSTOMER_NAME>
<CUSTOMER_ID>1119</CUSTOMER_ID>
- <P_INVOICES>
<CUSTOMER_TRX_ID>929476</CU
STOMER_TRX_ID>
<CUSTOMER_ID>1119</CUSTOMER
_ID>
<INVOICE_NUMBER>2484403</INV
OICE_NUMBER>
<AMOUNT_DUE_ORIGINAL>8
000</AMOUNT_DUE_ORIGIN
AL>
</P_INVOICES>
- <P_INVOICES
<CUSTOMER_TRX_ID>929374</CU
STOMER_TRX_ID>
<CUSTOMER_ID>1119</CUSTOMER
_ID>
<INVOICE_NUMBER>2484267</INV
OICE_NUMBER>
<AMOUNT_DUE_ORIGINAL>380.68
</AMOUNT_DUE_ORIGINAL>
</P_INVOICES>
- <P_INVOICES>
<CUSTOMER_TRX_ID>806644</CU
STOMER_TRX_ID>
<CUSTOMER_ID>1119</CUSTOMER
_ID>
<INVOICE_NUMBER>2421373</INV
OICE_NUMBER>
<AMOUNT_DUE_ORIGINAL>615.96
</AMOUNT_DUE_ORIGINAL>
</P_INVOICES>
</P_CUSTOMER>
</CUSTOMERINFO>
In order to add the template to application the user should have the
responsibility XML Publisher Administrator assigned.
16. Now create the template with the help of template manager
At the runtime the concurrent manager’s request interface will present the
list of available templates with respect to the data definition registered. We
will upload the rtf template file created here. We will select the language and
territory.
We can upload different templates for different languages and territories.
17. Now run the concurrent program to get the desired output.
From the receivables responsibility, use the submit request form to run the
concurrent request.
The default layout is displayed which we can change as per the requirement.
For changing the template click on options to look for all templates register
with that concurrent program.
Here in the above example my template is SampleXmlReport which is
displayed in layout field.
And once the request is submitted we will get the output in PDF as
This is the final output as desired in the PDF format.