Here is the code to send the Smartform to mail as PDF attachment.
If you want to send some text as Body of the Mail then follow this once.
When you are calling the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1'.. points to remember
- You have to pass the body of content in table CONTENTS_TXT(ia m using I_OBJBIN) (each line a record) then. Suppose i have appended 11 records to the table CONTENTS_TXT
- PACKING_LIST(i am using I_OBJPACK) table you have to append a record as follows
By the above code system treat the first line in table I_OBJBIN as header and the 2nd line to 10 lines tread as body.