cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Adding attachment using class: /SCMTMS/CL_PPF_SERV_FOR_TOR, SAP TM

Former Member
0 Kudos
2,717

I have a requirement to add external attachments to a Freight Order email output (PPF). As per PPF settings, the email output already contains the FO print PDF.

However, along with the existing attachment, we also need to add documents attached to the FO in our email output.

We need to use the class: /SCMTMS/CL_PPF_SERV_FOR_TOR method: PERSONALIZE_DOC_BY_ABAP.

The class has been copied into a custom one for our enhancement.

Request your guidance to complete the requirement please.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Team,

I was looking for a clue since yesterday but could not find any. Luckily I found a easy way today.

We can attach a document directly by using the method: CREATE_DOCUMENT of class: CL_DOCUMENT_BCS.

CALL METHOD cl_document_bcs=>create_document EXPORTING i_type = lv_type i_subject = lv_subject i_length = lv_bin_filesize i_hex = lt_binary_content RECEIVING result = lo_doc_bcs.

Closing the topic as the answer was found.

Answers (0)