PO RTF Template
PO RTF Template
Abstract:
I am submitting this white paper to share my development efforts in creating the
XML template for Purchase Order in RTF format. The standard template
provided by Oracle is in XSL-FO format where as an RTF format is needed for
making the changes via Template Builder.
Goal:
Develop XML template in RTF format and generate Purchase Order via PO
Output for Communication program defaulting the layout set up at Operating unit
level.
Procedure:
1. We found there was a requirement to apply 3 patches (4671626, 5064516 &
5037725 ) in order to use the RTF template with the ability to default different
layouts based on Operating unit.
2. Also the seeded XML data file provided by Oracle did not include many of the
fields and hence there was a requirement to generate in-house XML data files
with the additional fields like text attachments etc. I followed the steps noted
in Metalink note Note:364177.1 to generate the raw XML file. Some of the
additional steps I performed after running the concurrent program
a. Copying the XML data portion from the log starting with <?xml
version="1.0" encoding="UTF-16"?> and ending with </PO_DATA>
b. Changing the UTF-16 to UTF-8
c. Removing the XML Query part - starting with <XML_QUERY> and
ending with </XML_QUERY>
3. I created the RTF template (Sample attached) using the Template Builder.
I was able to extract the details of line attachments in the PO displaying the
line number, thanks to the post http://forums.oracle.com/forums/thread.jspa?
threadID=669608
in BI Publisher Forum
4. I set up a new template definition with type RTF via XML Publisher
Administrator responsibility to which I attached the ‘Standard Purchase Order
Data Source’ as the data definition. I also attached the RTF file to this
template.
5. I changed the PO Output format to PDF in Purchasing Options and replaced
PO document type layout Standard Purchase Order Style sheet with the
custom template that I created in previous step.
6. I used the ‘PO Output for Communication program’ to generate the PO in
PDF format.