Oracle Applications - Oracle Report To XML Publisher Report Migration
Oracle Applications - Oracle Report To XML Publisher Report Migration
เพิ่มเติม
Join the OracleApps88 Telegram group @OracleApps88to get more information on Oracle EBS R12/Oracle Fusion applications.
If you are facing any issues while copying the Code/Script or any issues with Posts, Please send a mail to [email protected] or message me at @apps
or +91 905 957 4321 in telegram.
In Oracle Report the Data Model (data extraction logic) and Layout (presentation), both are embedded together as an rdf file. In XML Publisher both of these
layers are separated; the migration is two step process. Data Model migration and Layout migration. These can be combined into a single shell script to convert
Oracle Report. The shell script can be modified to convert all Oracle Reports in a given directory.
The overall flow is as follows:
2.0 PRE-REQUISITES
The migration APIs accept an Oracle Report in XML Format, this format is only supported in Oracle Reports 9i and above. Therefore you need to have a 9i+
version of Oracle Reports available. For R12 the Oracle Reports version in the techstack is 10.1.3 so the conversion to RDF XML is straightforward. For Release 1
the version is 6i, so you will need a higher version of Oracle Reports available somewhere on your system.
To get the Oracle Report in XML format from rdf format, either use Oracle Report Designer or Oracle Report rwconverter.exe utility under $ORACLE_HOME/
Example
This will convert the binary RDF file into an RDF-XML format that can then be consumed by the conversion APIs.
3.0 PROCESS
3.1 Data Model Migration.
Use DataTemplateGenerator API to migrate the Oracle Reports Data Model to a DataTemplate and associated PL/SQL logic to PL/SQL Package (specification
and body).
The API can be called through the command line or through a shell script. This will generate following output files.
DataTemplate (REPORT.xml)
Default PL/SQL package specification (REPORTS.pls)
Default PL/SQL package body (REPORTB.pls).
Example :
javaw.exe oracle.apps.xdo.rdfparser.DataTemplateGenerator H:\report\raxinv.xml
Output files
PL/SQL Package:H:\ report\raxinvS.pls
PL/SQL Body:H:\report\raxinvB.pls
DataTemplate:H:\report\raxinv_template.xml
https://oracleapps88.blogspot.com/2017/01/oracle-report-to-xml-publisher-report.html 1/3
1/25/24, 6:54 PM Oracle Applications: Oracle Report to XML Publisher Report Migration
The API can be called through the command line or through a shell script. This will generate following output files.
RTF Template
Log file
Example :
javaw.exe oracle.apps.xdo.rdfparser.RTFTemplateGenerator H:\report\raxinv.xml
Output files
RTF Template: H:\ report\ raxinv.rtf
Log File : H:\report\raxinv.log
3. If formula column reference the summary column as parameter and the summary column belongs to same Data Source/Data Query, this implementation
not supported in Data Template. This is because of all the formula columns moved to select statement and the summary column value is not available wh
executing the formula.
#!/bin/sh
# This script will generate a report for each template presnet in the current directory
# Create a variable to hold the classpath
classpath="DIR/collections.zip:DIR/xmlparserv2-904.zip:JAVA_TOP directory"
if [ $# -eq 0 ]
then
for file in *.rdf
do
echo "Processing ... $file"
if test -f $file
then
# Convert the rdf to xml
echo yes | $ORACLE_HOME/bin/rwconverter.sh batch=yes source=$file dest=$file dtype=xmlfile overwrite=yes; \
# Create a variable to hold the new xml file name, this is just a simple replace
# statement
xfile="${file//rdf/xml}";
# Generate the data template plus plsql
echo yes | /local/java/jdk1.5.0_06/bin/java -classpath $classpath
oracle.apps.xdo.rdfparser.DataTemplateGenerator $xfile;
# Generate the RTF template
echo yes | /local/java/jdk1.5.0_06/bin/java –classpath $classpath
oracle.apps.xdo.rdfparser.RTFTemplateGenerator $xfile;
fi
done
else
echo usage: $0
echo this script will generate a data template and supporting plsql and an RTF template in the current directory
fi
No comments:
Post a Comment
https://oracleapps88.blogspot.com/2017/01/oracle-report-to-xml-publisher-report.html 2/3
1/25/24, 6:54 PM Oracle Applications: Oracle Report to XML Publisher Report Migration
404. นั่นคือข้อผิดพลาด
If you are facing any issues while copying the Code/Script or any issues with Posts, Please send a mail to [email protected] or message me at @apps88 or +91 905 957 4321 in telegr
If you are facing any issues while copying the Code/Script or any issues with Posts, Please send a mail to [email protected] or message me at @apps88 in telegram.
Email : [email protected]. Picture Window theme. Theme images by konradlew. Powered by Blogger.
https://oracleapps88.blogspot.com/2017/01/oracle-report-to-xml-publisher-report.html 3/3