You are on page 1of 4

1.

Creating Custom Application:


Navigation
System Administrator->Application->Register

2.Registering Concurrent Program


Navigation
System Administrator->Program -> Define

See the Program is Registered in the Custom Application ABC Custom and Executable name is
‘XDODTEXE’ and Output Format ‘XML’.
3.Creating Data Definition
Navigation
XML Publisher Administrator->Home->Data Definitions->Create Data Definition
N.B : Data Definition Short code Must Match your Concurrent Program Short Code

4.Attach Data Template


Here we need to attach the Data Source (xml) File.

5.Attach the XML File


Click Apply
The XML Data Source File Content
<?xml version="1.0" encoding="UTF-8" ?>
<dataTemplate name="ABC_PO_REPORT" description="Purchase Order Report" version="1.0">
<properties>
<property name="include_parameters" value="false" />
<property name="include_null_Element" value="false" />
</properties>
<parameters>
<parameter name="pd_from_date" dataType="date"/>
<parameter name="pd_to_date" dataType="date"/>
</parameters>
<dataQuery>
<sqlStatement name="Q1">
<![CDATA[SELECT poh.segment1 "PO Number",
poh.creation_date "PO Date"
FROM po_headers_all poh
WHERE poh.creation_date BETWEEN :pd_from_date and :pd_to_date]]>
</sqlStatement>
</dataQuery>
<dataStructure>
<group name="ROW" source="Q1">
<element name = "SEGMENT1" value="PO Number"/>
<element name = "CREATION_DATE" value="PO Date"/>
</group>
</dataStructure>
</dataTemplate>

6. Now we need to attach RTF


Navigation
XML Publisher Administrator -> Home -> Template->Create New Template

RTF File Screen shot:


N.B: You can give any short code to Template but You should attach the
Correct Data Definition.
Now the XMLP Report is Ready for Execution.
7.Now we should also have a look at migration of the same
Migration of the same comprise of several steps:
Perquisites for Migration
a. LDT Commands for Migrating AOL Objects
b. XDO Loader Commands to Load Physical files (XML, RTF) files in this case.
Perquisites for Migration
a. Download all LDT Files for AOL Objects as well as physical files
b. Make sure to move the Physical files to a specific location in the Unix box.
Preferably it should be placed in $CUSTOM_TOP/publisher/templates.
By default this folder may not exist you should create one then.
Place your RTF and XML file in this location.
LDT Commands to Download AOL Objects
1. FNDLOAD Command for Concurrent Program
FNDLOAD $CLIENT_USERNAME/$CLIENT_PASSWORD 0 Y DOWNLOAD
$FND_TOP/patch/115/import/afcpprog.lct ABC_PO_REPORT_CP.ldt PROGRAM
APPLICATION_SHORT_NAME = ‘ABCCUST’ CONCURRENT_PROGRAM_NAME =
‘ABC_PO_REPORT’
2. FNDLOAD Command for Data Definition and Template
FNDLOAD $CLIENT_USERNAME/$CLIENT_PASSWORD 0 Y DOWNLOAD
$XDO_TOP/patch/115/import/xdotmpl.lct ABC_PO_REPORT_DD.ldt XDO_DS_DEFINITIONS
APPLICATION_SHORT_NAME = ‘ABCCUST’ DATA_SOURCE_CODE = ‘ABC_PO_REPORT’
TMPL_APP_SHORT_NAME=’ABCCUST’ TEMPLATE_CODE=’ABC_PO_REPORT_RTF’
3. XDOLOAD Command to Download Data Definition File
java oracle.apps.xdo.oa.util.XDOLoader DOWNLOAD
–DB_USERNAME $CLIENT_USERNAME –DB_PASSWORD $CLIENT_PASSWORD -
JDBC_CONNECTION ‘(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=$HOST_NAME)
(PORT=$PORT))(CONNECT_DATA=(SERVICE_NAME=$SERVICE_NAME)))’ –LOB_TYPE
DATA_TEMPLATE –LOB_CODE ABC_PO_REPORT APPS_SHORT_NAME ABCCUST –LANGUAGE
en –TERRITORY US –lct_FILE $XDO_TOP/patch/115/import/xdotmpl.lct
4. XDOLOAD Command to Download Layout Template
java oracle.apps.xdo.oa.util.XDOLoader DOWNLOAD
–DB_USERNAME $CLIENT_USERNAME –DB_PASSWORD $CLIENT_PASSWORD -
JDBC_CONNECTION ‘(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=$HOST_NAME)
(PORT=$PORT))(CONNECT_DATA=(SERVICE_NAME=$SERVICE_NAME)))’ –LOB_TYPE TEMPLATE
–LOB_CODE ABC_PO_REPORT_RTF APPS_SHORT_NAME ABCCUST –LANGUAGE en –
TERRITORY US –lct_FILE $XDO_TOP/patch/115/import/xdotmpl.lct
N.B :
ABCCUST – Application Short Name
-DB_USERNAME = Apps Username
-DB_PASSWORD = Apps Pasword( Database password for apps user)
-JDBC_CONNECTION = Connection Details ( TNS Entry)
-LOB_TYPE = AOL Type for XML Objects
-LOB_CODE = Short Code
-Language = Language for Data Definition /RTF . For English use ‘en’
-TERRITORY = Geographical Location. For United States use ‘US’
-lct_FILE = Configuration File
LDT Commands to Upload AOL Objects
a. LDT Command to Upload AOL Definition for Concurrent Program
FNDLOAD $CLIENT_USER_NAME/$CLIENT_PASSWORD 0 Y UPLOAD
$FND_TOP/patch/115/import/afcpprog.lct ABC_PO_REPORT.ldt
b. LDT Command to Upload AOL Definition for Data Definition and Layout Template
FNDLOAD $CLIENT_USER_NAME/$CLIENT_PASSWORD 0 Y UPLOAD
$XDO_TOP/patch/115/import/xdotmpl.lct ABC_PO_REPORT_DD.ldt
Where ABC_PO_REPORT_DD.ldt is the ldt file name for Data Definition
c. XDOLOADER Command to Upload Data Source File
java oracle.apps.xdo.oa.util.XDOLoader UPLOAD
–DB_USERNAME $CLIENT_USERNAME –DB_PASSWORD $CLIENT_PASSWORD -
JDBC_CONNECTION ‘(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=$HOST_NAME)
(PORT=$PORT))(CONNECT_DATA=(SERVICE_NAME=$SERVICE_NAME)))’ –LOB_TYPE
DATA_TEMPLATE –LOB_CODE ABC_PO_REPORT –XDO_FILE_TYPE XML –FILE_NAME
ABC_PO_REPORT.xml APPS_SHORT_NAME ABCCUST –LANGUAGE en –TERRITORY US –lct_FILE
$XDO_TOP/patch/115/import/xdotmpl.lct
d. XDOLOADER Command to Upload Template Layout
java oracle.apps.xdo.oa.util.XDOLoader UPLOAD
–DB_USERNAME $CLIENT_USERNAME –DB_PASSWORD $CLIENT_PASSWORD -
JDBC_CONNECTION ‘(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=$HOST_NAME)
(PORT=$PORT))(CONNECT_DATA=(SERVICE_NAME=$SERVICE_NAME)))’ –LOB_TYPE
TEMPLATE –LOB_CODE ABC_PO_REPORT_RTF
–XDO_FILE_TYPE RTF –FILE_CONTENT_TYPE application/rtf –FILE_NAME ABC_PO_REPORT.rtf
APPS_SHORT_NAME ABCCUST –LANGUAGE en –TERRITORY US –lct_FILE
$XDO_TOP/patch/115/import/xdotmpl.lct

You might also like