on ‎2022 Sep 16 11:44 AM
How to attach the document in SAPTM while autopopulation for PPF Action/ PPF Output/ PDF Forms.
I have used the IO_SEND attribute and set_document. Still the mail is not attached in the output.
Request clarification before answering.
Use the BCS Document Class factory to get a reference document ,
data(lo_document) = cl_document_bcs=>create_document method ,
Then use the add attachment method of the returned reference
lo_document-> add_attachment
then , set this document to the io_Send reference available in the method
io_Send->set_document (lo_document).
This should work !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi abilash.cj,
Check the blog:
SAP TM – Auto populate Email Receiver for PPF Action / PPF Output/ PDF Forms | SAP Blogs
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
Regards
Rogerio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 13 | |
| 7 | |
| 5 | |
| 3 | |
| 1 | |
| 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.