Skip to Content
0
Former Member
Mar 17, 2011 at 09:13 PM

Send PDF as an attachment in email

6507 Views

Hi,

I have a scenario where I have to design Shipping Label in Smart form and download into PDF and then send that Label to Supplier.

Have done so far : designed label and I am able to download on to my presentation server.

Problem facing : after converting into PDF (using FM CONVERT_OTF) all the label data stored in internal table IT_Line (Ref SAP TLINE structure) here is my problem

1. I am not sure how to make this PDF as an attachment

2. Send PDF to Supplier : I know we can use SO_NEW_DOCUMENT_ATT_SEND_API1 FM to send email (Not sure if this FM takes attachment) one more problem with this FM is the structure which refers to CONTENTS_TXT (SOLISTI1) opposite to what CONVERT_OTF is converting after converting to PDF which is TLINE.

I would appreciate if you could tell me if there is any other FM if above FM doesn't help me to send mail with PDF as an attachment.

I have done research to get my question answered but couldn't get any success.

Thanks

SB