Migrating a Report:
1.Check The model query for obsolete tables and view.
2. Replace the obsolete tables and view with corresponding joints.
3.Check the program units for the same as mentioned above.
4.Run the query in sql developer and verify the output in 11i and R12 Instances.
5.Recompile and load to location after changes and compare the application outputs.
Happy Reading !!!
Comments are invited.......
Oracle Technical Experience and Test Cases Shared from different resource and through self leanings.
July 11, 2011
June 23, 2011
Table Changes in R12
po_accrual_reconcile_temp_all:- is a temp table in 11i will get populated while running the Accrual Reconciliation report.
In R12 it has been defined as CST_AP_PO_RECONCILIATION,CST_RECONCILIATION_SUMMARY tables...
Kindly leave your comments on this..? if we are using the report in R12 after migartion????
In R12 it has been defined as CST_AP_PO_RECONCILIATION,CST_RECONCILIATION_SUMMARY tables...
Kindly leave your comments on this..? if we are using the report in R12 after migartion????
Setting Organisation in R12
Begin
Mo_global.set_policy_context('S',101);
End;
Can execute this command to set the organisation.
Mo_global.set_policy_context('S',101);
End;
Can execute this command to set the organisation.
June 14, 2011
R12 XML Reports Migration From 11i
XML Report Conversion Steps:
Note: Ref to Oracle Document
http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e10416/convertrpts.htm
Required Jar Files:
xdocore.jar
aolj.jar
xdoparser.jar
xmlparserv2-904.jar
versioninfo.jar
collections.jar
j5472959_xdo.zip
These jar files will be installed in the JAVA_TOP ($JAVA_TOP/oracle/apps/fnd/jar) in the application.
Or else we can get this Jar files by installing the patch 5472959
Conversion Process:
Note: I have taken the RDF in my local directory and did the conversion.( E:\Meera_Project).We can perform in Application by placing the RDF in any custom_top directory.
Taken a sample report XXXX.RDF
Syntax:-
Rwconverter batch=yes source= E:\Meera_Project\LACPRDSPC.rdf dest= E:\Meera_Project\ OUTPUT\ xxxx.xml dtype=xmlfile overwrite=yes
I have kept the required jar files in the local host Directory, Need to run the command in command prompt from the java-Jar files directory location. In Instance we need to run from the Java_top, jar file location
The command is:-
java.exe -verbose -cp aolj.jar;xdoparser.jar;collections.jar;j5472959_xdo.zip;versioninfo.jar;xmlparserv2-904.jar oracle.apps.xdo.rdfparser.DataTemplateGenerator E:\Meera_Project\ \OUTPUT\ xxxxx.xml
Many converted Oracle Reports will generate a PL/SQL package specification file and a PL/SQL package body file as follows:
•S.pls
•B.pls
Run the PL/SQL package files against your Oracle Database as follows. This will create the PL/SQL package specification and body.
SQL> @E:\Meera_Project\PMC\R12\OUTPUT\ xxxx.pls
SQL> @E:\Meera_Project\PMC\R12\OUTPUT\ xxxx.pls
3. Creating RTF template from Oracle Report using RTFTemplateGenerator.
I have kept the required jar files in the local host Directory, Need to run the command in command prompt from the java-Jar files directory location. In Instance we need to run from the Java_top, jar file location
The command is:-
java.exe -verbose -cp aolj.jar;xdoparser.jar;collections.jar;j5472959_xdo.zip;versioninfo.jar;xmlparserv2-904.jar oracle.apps.xdo.rdfparser.RTFTemplateGenerator E:\Meera_Project\ OUTPUT\xxxx.xml
The output lists the rtf template name and log created.
This step generated the RTF Template (xxxx.rtf)
Once the output files are generated, follow the below steps to register and run the BI Publisher report:
Upload PL/SQL package to the database.
In XML Publisher Administrator responsibility, create data definition and assign the data template file.
Create RTF template and assign rtf template file.
Create concurrent program with short name same as above data definition name and assign xxxx as executable.
Run the concurrent program and test the output with the original oracle report output.
Note: Ref to Oracle Document
http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e10416/convertrpts.htm
Required Jar Files:
xdocore.jar
aolj.jar
xdoparser.jar
xmlparserv2-904.jar
versioninfo.jar
collections.jar
j5472959_xdo.zip
These jar files will be installed in the JAVA_TOP ($JAVA_TOP/oracle/apps/fnd/jar) in the application.
Or else we can get this Jar files by installing the patch 5472959
Conversion Process:
Note: I have taken the RDF in my local directory and did the conversion.( E:\Meera_Project).We can perform in Application by placing the RDF in any custom_top directory.
Taken a sample report XXXX.RDF
1. Convert RDF report to XML report. : Create output folder for the report .(I created a Output folder in my local directory.( E:\Meera_Project\Output)
Run rwconverter from command prompt, to create xml version of oracle report.
Syntax:-
Rwconverter batch=yes source= E:\Meera_Project\LACPRDSPC.rdf dest= E:\Meera_Project\ OUTPUT\ xxxx.xml dtype=xmlfile overwrite=yes
This creates xxxx.xml in output folder.
2. Creating Data template from Oracle Report using DataTemplateGenerator:
I have kept the required jar files in the local host Directory, Need to run the command in command prompt from the java-Jar files directory location. In Instance we need to run from the Java_top, jar file location
The command is:-
java.exe -verbose -cp aolj.jar;xdoparser.jar;collections.jar;j5472959_xdo.zip;versioninfo.jar;xmlparserv2-904.jar oracle.apps.xdo.rdfparser.DataTemplateGenerator E:\Meera_Project\ \OUTPUT\ xxxxx.xml
The output lists the data template name and any PL/SQL packaged code created.
Common errors here would be missing of the required jar files. This step generated the Data Template (xxxx_template.xml) and PL/SQL package (xxxx.pls and xxxx.pls) for any report trigger code.
Upload PL/SQL Package to the DatabaseMany converted Oracle Reports will generate a PL/SQL package specification file and a PL/SQL package body file as follows:
•
•
Run the PL/SQL package files against your Oracle Database as follows. This will create the PL/SQL package specification and body.
SQL> @E:\Meera_Project\PMC\R12\OUTPUT\ xxxx.pls
SQL> @E:\Meera_Project\PMC\R12\OUTPUT\ xxxx.pls
3. Creating RTF template from Oracle Report using RTFTemplateGenerator.
I have kept the required jar files in the local host Directory, Need to run the command in command prompt from the java-Jar files directory location. In Instance we need to run from the Java_top, jar file location
The command is:-
java.exe -verbose -cp aolj.jar;xdoparser.jar;collections.jar;j5472959_xdo.zip;versioninfo.jar;xmlparserv2-904.jar oracle.apps.xdo.rdfparser.RTFTemplateGenerator E:\Meera_Project\ OUTPUT\xxxx.xml
The output lists the rtf template name and log created.
This step generated the RTF Template (xxxx.rtf)
Once the output files are generated, follow the below steps to register and run the BI Publisher report:
Upload PL/SQL package to the database.
In XML Publisher Administrator responsibility, create data definition and assign the data template file.
Create RTF template and assign rtf template file.
Create concurrent program with short name same as above data definition name and assign xxxx as executable.
Run the concurrent program and test the output with the original oracle report output.
June 9, 2011
Functional flow
Purchasing Responsibility:Purchase Order->Purchase Order
Supplier: *************
Type: Standard Purchase Order
Item: Expense Items
Item No: 10131
Quamtity: 5
Amount 200
Total:1000
The status of PO will be Approved
Purchasing: Receiving->Receipts
In Find Expected receipts window search using PO number:Click on Find button
Tick the checkbox in Lines tab
Fill The sub Inventory Information
Search Using receipt number
Check Material transaction in inventory itself
Transaction->Material Transaction
Query the item With date
Now can create Invoice in payables responsibility for the receipt
Fill the Invoice Number,Supplier Info and Match with the receipt
Match with full amount with receipt number and validate the invoice
For Full payment we have done:-
Matching Receipts : Half Payment
Two Receipts Matching for a single invoice
Create two receipts for a Single PO,
Match the receipts with different invoice numbers.
Supplier: *************
Type: Standard Purchase Order
Item: Expense Items
Item No: 10131
Quamtity: 5
Amount 200
Total:1000
Check Shipment tab before saving for ->Receiveing Control:Recepit Routing: Direct delivery
In distrubutions Tab can locate the sub-inventory.
Click on Approve ButtomThe status of PO will be Approved
Create Receipts:
Purchasing: Receiving->Receipts
In Find Expected receipts window search using PO number:Click on Find button
Tick the checkbox in Lines tab
Fill The sub Inventory Information
Hit on Save..Open the header and note the receipt Number
Now In Inventory Responsibility and check on On Hand Quantity
Inventory->On-hand QuantitySearch Using receipt number
Check Material transaction in inventory itself
Transaction->Material Transaction
Query the item With date
Now can create Invoice in payables responsibility for the receipt
Fill the Invoice Number,Supplier Info and Match with the receipt
Match with full amount with receipt number and validate the invoice
Click on Actions And Validate the Invoice
For Full payment we have done:-
Matching Receipts : Half Payment
Two Receipts Matching for a single invoice
Create two receipts for a Single PO,
Match the receipts with different invoice numbers.
May 10, 2011
May 9, 2011
Conditional Selection
1.Displaying set if records:
e.g:10 records per page
Declare Global Variable called ‘no_of_Count_per_page’ -- In this case I have fixed 10 lines per page.
xsl:variable name="no_of_lines_per_page" select="number(10)"
2.Calling a inner group:
?for-each:$inner_group?
Can specify any if loop before calling the inner group
--if:position()>=$first_rec and position()<$first_rec+$no_of_Count_per_page?> --
3.Can call another template using xsl:call-template
e.g:10 records per page
Declare Global Variable called ‘no_of_Count_per_page’ -- In this case I have fixed 10 lines per page.
xsl:variable name="no_of_lines_per_page" select="number(10)"
2.Calling a inner group:
?for-each:$inner_group?
Can specify any if loop before calling the inner group
--if:position()>=$first_rec and position()<$first_rec+$no_of_Count_per_page?> --
3.Can call another template using xsl:call-template
Subscribe to:
Posts (Atom)
COALESCE-SQL
Coalesce- return the null values from the expression. It works similar to a case statement where if expression 1 is false then goes to expr...
-
While Registering the report to instance we need to make sure od date format: 1.The default type is YYYY/MM/DD HH24:MI:SS go to propert...
-
Order to cash normally refer to the process in which taking customer sale order via different sales channel like email, internet, sales pers...
-
This is easily done with the following command: select to_char(to_date('56789','J'),'JSP') from dual / TO_CHAR...









