on 2020 Jun 11 10:46 AM
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.
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 3 | |
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.