cancel
Showing results for 
Search instead for 
Did you mean: 

RFx Response Attachment using Program

Former Member
0 Kudos

Dears

Need to create upload program to attach documents to RFx Response Header and Items as customer has close to 2000 line items. Tried BBP_PROCDOC_UPDATE, BBP_PD_QUOT_UPDATE and /sapsrm/if_pdo_bo_qte->/sapsrm/if_pdo_do_attachments~create_attachment but no luck.

Could anyone guide me to proceed with the above given options or any alternative solution we can look for.

Thanks in Advance.

db

Accepted Solutions (0)

Answers (1)

Answers (1)

ivy_li
Active Contributor
0 Kudos

Hi,

These FMs or method should not be called directly, and you could make use of them, but have to adjust the coding so that it would realize your expectation.

For example

Class /SAPSRM/CL_PDO_DO_ATTACHMENTS

Method /SAPSRM/IF_PDO_DO_ATTACHMENTS~CREATE_ATTACHMENT

In standard, it is called with the following parameters:

CALL METHOD mo_pdo_attachments->/sapsrm/if_pdo_do_attachments~create_attachment
EXPORTING
it_attach = lt_attach
iv_category_selected = iv_category_selected
iv_content = iv_content
IMPORTING
ev_att_guid = ev_att_guid
ev_url = ev_url
CHANGING
co_message_handler = co_message_handler.

You have to check if export parameters are inserted properly to generate attachment guid and URL.

BR,

Ivy