Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1
How to Attach Report Output as an attachment in Oracle Apps
Objective :
This article describes the process of attaching report output as an attachment in Oracle
Apps.
Process :
1) Run the existing report by Submitting the Request from Oracle Apps.
3) Pass the Request Id from step 2 and Output File Type to the below
query to fetch output file name:
2
How to Attach Report Output as an attachment in Oracle Apps
4) Pass the Output file name from step 3 to below command and execute
it in Oracle Apps. This command would give file id after inserting the
file as an blob into fnd_lobs.
FNDGFU apps/xxpassword 0 Y
PROGRAM_NAME=FND_ATTACH
PROGRAM_TAG=CS:100
CONTENT_TYPE=PDF
PLS_CALLBACK=XXCRM_LOADFILE_BLOB LANGUAGE=US $5
FND_WEBATTCH.Add_Attachment
commit;
3
How to Attach Report Output as an attachment in Oracle Apps
FND_WEBATTCH.Add_Attachment
(seq_num => ‘sequence retrieved from step 2’,
category_id => '1',
document_description => ‘Document Description’,
datatype_id => '6',
TEXT => NULL,
file_name => ‘file name’,
url => NULL,
function_name => ‘Function Name’,
entity_name => ‘Entity Name’,
pk1_value => l_INCIDENT_ID,
pk2_value => NULL,
pk3_value => NULL,
pk4_value => NULL,
pk5_value => NULL,
MEDIA_ID => ‘file id retrieved from step 1’,
user_id => 0,
usage_type => 'O');
commit;
Source Code :
Source Code for this process is attached here with.