Check and create opportunity attachements
FM to check the opportunity attachment link CRM_PPM_GET_OPP_ATTACHMENT_UI
and also following code to get the details of the attachment ..
DATA : ls_swo_object_id
ls_borident
ls_ibf_object_id
lt_attachment_ids
lt_attachment_props
ls_attachment_id
lt_file_info
ls_file_info
ls_orderadm_h T
ls_borident-logsys = '
ls_borident-objtype = '
ls_borident-objkey = '
MOVE-CORRESPONDING ls_
ls_ibf_object_id = cl_swf_utl_
CALL METHOD cl_crm_documents=>
EXPORTING
business_object = ls
newest_only = '
IMPORTING
loios = lt
ios_properties_result = lt
LOOP AT lt_attachment_ids INTO
CALL METHOD cl_crm_documents
EXPORTING
loio = ls_
IMPORTING
file_access_info = lt_
ENDLOOP .
Post a Comment