100% found this document useful (1 vote)
955 views

PO RTF Template

The document describes the development of an RTF template for purchase orders in Oracle XML Publisher. The goal was to create an RTF template that could be modified in Template Builder and generate POs via the PO Output program with layouts defaulting based on operating unit. Key steps included applying patches to enable RTF templates, generating custom XML data files with additional fields, creating the RTF template using Template Builder, setting up a new RTF template definition and attaching the data source and template, then replacing the standard stylesheet with the custom template to generate POs in PDF format.

Uploaded by

shivar23
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
955 views

PO RTF Template

The document describes the development of an RTF template for purchase orders in Oracle XML Publisher. The goal was to create an RTF template that could be modified in Template Builder and generate POs via the PO Output program with layouts defaulting based on operating unit. Key steps included applying patches to enable RTF templates, generating custom XML data files with additional fields, creating the RTF template using Template Builder, setting up a new RTF template definition and attaching the data source and template, then replacing the standard stylesheet with the custom template to generate POs in PDF format.

Uploaded by

shivar23
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 1

XML Publisher –RTF Template for PO

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.

You might also like