About Me

Dubai, United Arab Emirates
My name is Muhammad Faizan Karim and my aim is to spread the knowledge to everyone who want to learn oracle HRMS. I will try to write the video blogs for beginners so they can understand e-business suits from HRMS perspective, and if you have any difficulty in oracle applications HRMS , please feel free to contact with me at this email : faizan.kareem.ocp@gmail.com
Powered by Blogger.
Monday, January 12, 2015
SQL Query to get the RTF files from database 
(XML Publisher Reports)

SELECT XTT.TEMPLATE_NAME "TEMPLATE NAME", 
       XTB.TEMPLATE_CODE "TEMPLATE CODE",
       FAT.APPLICATION_NAME "APPLICATION NAME",
       XDDT.DATA_SOURCE_NAME "DATA DEFINITION",
       XTB.TEMPLATE_TYPE_CODE "TEMPLATE TYPE",
       XTB.DEFAULT_LANGUAGE "LANGUAGE", 
       XTB.DEFAULT_TERRITORY "TERRITORY",
       XL.FILE_NAME "FILE NAME", XL.FILE_DATA "FILE"

FROM XDO_TEMPLATES_TL XTT,
       XDO_TEMPLATES_B XTB,
       FND_APPLICATION_TL FAT,
       XDO_DS_DEFINITIONS_TL XDDT,
       XDO_LOBS XL

WHERE (XTT.TEMPLATE_NAME LIKE '%TEMPLATE NAME%')
   AND XTT.LANGUAGE = 'US'
   AND XTB.TEMPLATE_CODE = XTT.TEMPLATE_CODE
   AND FAT.APPLICATION_ID = XTB.APPLICATION_ID
   AND FAT.LANGUAGE = 'US'
   AND XDDT.DATA_SOURCE_CODE = XTB.DATA_SOURCE_CODE
   AND XDDT.LANGUAGE = 'US'
   AND XL.LOB_CODE = XTB.TEMPLATE_CODE
   AND NVL (XL.PROGRAM, 'X') <> 'RTF2XSLPARSER 5.6.3'
   AND XL.LANGUAGE = XTB.DEFAULT_LANGUAGE
   AND XL.TERRITORY = XTB.DEFAULT_TERRITORY