Search This Blog

Tuesday, March 29, 2016

XML Bursting in Oracle Apps R12



XML Bursting in Oracle Apps R12:

It is used to deliver report to multiple emails, let it be your pay slips or PO’s or others.
  1. Create rdf data model.
  2. Register Executable.
  3. Register Concurrent Program
  4. Setup the temporary Working directory.
  5. XML Bursting control File.
  6. Create the rtf template.
  7. Register Data definition.
  8. Upload XML control file to data definition.
  9. Register data template.
  10. Move rdf file to registered TOP.
  11. Move rtf file to tmp directory.
  12. Attach the concurrent program to request group.
  13. Attach another XML Publisher Report Bursting Program concurrent program to same request group.
  14. Run the report.
  15. Errors and solutions

  1. Create rdf data model.

C:\Users\egov\Desktop\burst1.png

Query:
select full_name, person_id,email_address,EFFECTIVE_START_DATE,EFFECTIVE_END_DATE
from per_people_x ppx
where email_address is not null
and employee_number in ('9213','9214','9215')
and business_group_id = :p_business_group_id
and rownum < 5
C:\Users\egov\Desktop\burst2.png

C:\Users\egov\Desktop\burst3.png

function AfterReport return boolean is
 req_id number;
begin
            req_id := FND_REQUEST.SUBMIT_REQUEST(
                application =>'XDO',
             program     =>'XDOBURSTREP',
             description =>null,
             start_time  =>null,
             sub_request =>FALSE,
             argument1   =>'Y',
             argument2   =>:P_CONC_REQUEST_ID,
             argument3     =>'Y');
   
 if req_id = 0 then
   srw.message(100,'Failed to submit bursting program');
 end if;                                        
 SRW.user_exit('FND SRWEXIT');
 return (TRUE);
end;


  1. Register Executable
C:\Users\egov\Desktop\burst4.png

  1. Register Concurrent
C:\Users\egov\Desktop\burst5.png

C:\Users\egov\Desktop\burst6.png


  1. C:\Users\egov\Desktop\burst7.png

C:\Users\egov\Desktop\burst8.png


5.

C:\Users\egov\Desktop\burst9.png


6.
C:\Users\egov\Desktop\brtf template.png

7.

C:\Users\egov\Desktop\b10.png

8.

C:\Users\egov\Desktop\b11.png

9.

C:\Users\egov\Desktop\B12.png

10.

C:\Users\egov\Desktop\b13.png

11.

C:\Users\egov\Desktop\b14.png

12, 13.

C:\Users\egov\Desktop\B15.png

14.
C:\Users\egov\Desktop\b16.png

C:\Users\egov\Desktop\b17.png

Errors and Solution:
If the xml report run is normal and Bursting concurrent Program ends with Error then check the patch number Patch 9501440:R12.XDO.B is applied or not.
 
SELECT patch_name
FROM   apps.ad_applied_patches
WHERE patch_name LIKE '%9501440%'
 
Reference: Doc ID 1276845.
If both programs ends normal, but no email then need to check with the network and database team regarding server and port which we configured in the xml control file.

No comments:

Post a Comment