--Query to get XML Publisher Data Definition and Template details
SELECT fcp.user_concurrent_program_name "Program Name",
fcp1.concurrent_program_name "Program Short Name",
fat.application_name program_application_name,
fet.executable_name "Executable Name",
fat1.application_name executable_application_name,
fet.execution_file_name,
flv.meaning execution_method,
xlo.lob_type,
xlo.file_name "Data/Brusting File",
xds.data_source_code,
xds.data_source_name,
xdt.template_code,
xlt.language,
xlt.file_name
FROM fnd_concurrent_programs_tl fcp,
fnd_concurrent_programs fcp1,
fnd_executables fet,
fnd_lookup_values flv,
fnd_application_tl fat,
fnd_application_tl fat1,
xdo_lobs xlo,
xdo_ds_definitions_vl xds,
xdo_templates_b xdt,
xdo_templates_tl xdtl,
xdo_lobs xlt
WHERE 1=1
AND (fcp.application_id = :p_app_id OR :p_app_id IS NULL)
AND fcp.language = 'US'
AND fcp.concurrent_program_id = fcp1.concurrent_program_id
AND fcp.application_id = fcp1.application_id
AND fcp1.executable_id = fet.executable_id
AND fcp1.executable_application_id = fet.application_id
AND flv.lookup_code = fet.execution_method_code
AND flv.language = 'US'
AND FLV.LOOKUP_TYPE = 'CP_EXECUTION_METHOD_CODE'
AND fcp1.application_id = fat.application_id
AND fet.application_id = fat1.application_id
AND fat.language = 'US'
AND fat1.language = 'US'
AND fet.executable_name = 'XDODTEXE'
AND fcp1.concurrent_program_name = xlo.lob_code(+)
AND xlo.lob_type IN ('DATA_TEMPLATE', 'BURSTING_FILE')
AND (fcp1.concurrent_program_name = :p_program_code OR :p_program_code IS NULL)
AND fcp1.concurrent_program_name = xds.data_source_code
AND xds.data_source_code = xdt.data_source_code(+)
AND xdt.template_code = xdtl.template_code(+)
AND xdtl.language = 'US'
AND xds.data_source_name = xdtl.template_name
AND xlt.lob_type = 'TEMPLATE_SOURCE'
AND xdt.template_code = xlt.lob_code
ORDER BY 1;
SELECT fcp.user_concurrent_program_name "Program Name",
fcp1.concurrent_program_name "Program Short Name",
fat.application_name program_application_name,
fet.executable_name "Executable Name",
fat1.application_name executable_application_name,
fet.execution_file_name,
flv.meaning execution_method,
xlo.lob_type,
xlo.file_name "Data/Brusting File",
xds.data_source_code,
xds.data_source_name,
xdt.template_code,
xlt.language,
xlt.file_name
FROM fnd_concurrent_programs_tl fcp,
fnd_concurrent_programs fcp1,
fnd_executables fet,
fnd_lookup_values flv,
fnd_application_tl fat,
fnd_application_tl fat1,
xdo_lobs xlo,
xdo_ds_definitions_vl xds,
xdo_templates_b xdt,
xdo_templates_tl xdtl,
xdo_lobs xlt
WHERE 1=1
AND (fcp.application_id = :p_app_id OR :p_app_id IS NULL)
AND fcp.language = 'US'
AND fcp.concurrent_program_id = fcp1.concurrent_program_id
AND fcp.application_id = fcp1.application_id
AND fcp1.executable_id = fet.executable_id
AND fcp1.executable_application_id = fet.application_id
AND flv.lookup_code = fet.execution_method_code
AND flv.language = 'US'
AND FLV.LOOKUP_TYPE = 'CP_EXECUTION_METHOD_CODE'
AND fcp1.application_id = fat.application_id
AND fet.application_id = fat1.application_id
AND fat.language = 'US'
AND fat1.language = 'US'
AND fet.executable_name = 'XDODTEXE'
AND fcp1.concurrent_program_name = xlo.lob_code(+)
AND xlo.lob_type IN ('DATA_TEMPLATE', 'BURSTING_FILE')
AND (fcp1.concurrent_program_name = :p_program_code OR :p_program_code IS NULL)
AND fcp1.concurrent_program_name = xds.data_source_code
AND xds.data_source_code = xdt.data_source_code(+)
AND xdt.template_code = xdtl.template_code(+)
AND xdtl.language = 'US'
AND xds.data_source_name = xdtl.template_name
AND xlt.lob_type = 'TEMPLATE_SOURCE'
AND xdt.template_code = xlt.lob_code
ORDER BY 1;
No comments:
Post a Comment