50139575 XML Publisher Report Using XML Data Source

Embed Size (px)

Citation preview

  • 7/30/2019 50139575 XML Publisher Report Using XML Data Source

    1/7

    XML Publisher Report Development and MigrationBlog: http://oracleapps-atechniciansview.blogspot.com

    Author : Ashish Harbhajanka

    Email : [email protected]

    Publish Date : 08-MAR-2011

    Author : Ashish Harbhajanka

    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.

    http://oracleapps-atechniciansview.blogspot.com/http://oracleapps-atechniciansview.blogspot.com/mailto:[email protected]:[email protected]:[email protected]:[email protected]://oracleapps-atechniciansview.blogspot.com/
  • 7/30/2019 50139575 XML Publisher Report Using XML Data Source

    2/7

    XML Publisher Report Development and MigrationBlog: http://oracleapps-atechniciansview.blogspot.com

    Author : Ashish Harbhajanka

    Email : [email protected]

    Publish Date : 08-MAR-2011

    Author : Ashish Harbhajanka

    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.

    http://oracleapps-atechniciansview.blogspot.com/http://oracleapps-atechniciansview.blogspot.com/mailto:[email protected]:[email protected]:[email protected]:[email protected]://oracleapps-atechniciansview.blogspot.com/
  • 7/30/2019 50139575 XML Publisher Report Using XML Data Source

    3/7

    XML Publisher Report Development and MigrationBlog: http://oracleapps-atechniciansview.blogspot.com

    Author : Ashish Harbhajanka

    Email : [email protected]

    Publish Date : 08-MAR-2011

    Author : Ashish Harbhajanka

    5.Attach the XML File

    Click Apply

    http://oracleapps-atechniciansview.blogspot.com/http://oracleapps-atechniciansview.blogspot.com/mailto:[email protected]:[email protected]:[email protected]:[email protected]://oracleapps-atechniciansview.blogspot.com/
  • 7/30/2019 50139575 XML Publisher Report Using XML Data Source

    4/7

    XML Publisher Report Development and MigrationBlog: http://oracleapps-atechniciansview.blogspot.com

    Author : Ashish Harbhajanka

    Email : [email protected]

    Publish Date : 08-MAR-2011

    Author : Ashish Harbhajanka

    The XML Data Source File Content

    poh.creation_date "PO Date"

    FROM po_headers_all poh

    WHERE poh.creation_date BETWEEN :pd_from_date and :pd_to_date]]>

    Screen Shot After Attaching File

    http://oracleapps-atechniciansview.blogspot.com/http://oracleapps-atechniciansview.blogspot.com/mailto:[email protected]:[email protected]:[email protected]:[email protected]://oracleapps-atechniciansview.blogspot.com/
  • 7/30/2019 50139575 XML Publisher Report Using XML Data Source

    5/7

    XML Publisher Report Development and MigrationBlog: http://oracleapps-atechniciansview.blogspot.com

    Author : Ashish Harbhajanka

    Email : [email protected]

    Publish Date : 08-MAR-2011

    Author : Ashish Harbhajanka

    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.

    http://oracleapps-atechniciansview.blogspot.com/http://oracleapps-atechniciansview.blogspot.com/mailto:[email protected]:[email protected]:[email protected]:[email protected]://oracleapps-atechniciansview.blogspot.com/
  • 7/30/2019 50139575 XML Publisher Report Using XML Data Source

    6/7

    XML Publisher Report Development and MigrationBlog: http://oracleapps-atechniciansview.blogspot.com

    Author : Ashish Harbhajanka

    Email : [email protected]

    Publish Date : 08-MAR-2011

    Author : Ashish Harbhajanka

    7.Now we should also have a look at migration of the same

    Migration of the same comprise of several steps :

    a) Prequisites for Migrationb) LDT Commands for Migrating AOL Objectsc) XDO Loader Commands to Load Physical files ( XML , RTF ) files in this case.

    Prequisities for Migration

    a) Download all LDT Files for AOL Objects as well as physical filesb) 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 ProgramFNDLOAD $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 TemplateFNDLOAD $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 Filejava 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_N

    AME=$SERVICE_NAME))) LOB_TYPE DATA_TEMPLATE LOB_CODE ABC_PO_REPORT APPS_SHORT_NAMEABCCUST LANGUAGE en TERRITORY US lct_FILE $XDO_TOP/patch/115/import/xdotmpl.lct

    4. XDOLOAD Command to Download Layout Templatejava 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_N

    AME=$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

    http://oracleapps-atechniciansview.blogspot.com/http://oracleapps-atechniciansview.blogspot.com/mailto:[email protected]:[email protected]:[email protected]:[email protected]://oracleapps-atechniciansview.blogspot.com/
  • 7/30/2019 50139575 XML Publisher Report Using XML Data Source

    7/7

    XML Publisher Report Development and MigrationBlog: http://oracleapps-atechniciansview.blogspot.com

    Author : Ashish Harbhajanka

    Email : [email protected]

    Publish Date : 08-MAR-2011

    Author : Ashish Harbhajanka

    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 ProgramFNDLOAD $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 TemplateFNDLOAD $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 Filejava 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_N

    AME=$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 Layoutjava oracle.apps.xdo.oa.util.XDOLoader UPLOADDB_USERNAME $CLIENT_USERNAME DB_PASSWORD $CLIENT_PASSWORD -JDBC_CONNECTION

    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=$HOST_NAME)(PORT=$PORT))(CONNECT_DATA=(SERVICE_N

    AME=$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

    http://oracleapps-atechniciansview.blogspot.com/http://oracleapps-atechniciansview.blogspot.com/mailto:[email protected]:[email protected]:[email protected]:[email protected]://oracleapps-atechniciansview.blogspot.com/