cancel
Showing results for 
Search instead for 
Did you mean: 

How to attach the document in SAPTM while autopopulation for PPF Action/ PPF Output/ PDF Forms

abilash_cj
Discoverer
0 Kudos
629

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.

View Entire Topic
abprad
Active Participant
0 Kudos

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 !