Skip to Content

To send the generated PDF as an email

Hello Gurus,

I have created a form based on Shipment Data, which will be working from VT02N transaction. Now, the generated form should be send as an email to different users. I could find several ways to send an email with pdf file as attachment. Now, i need to send the generated pdf form as an attachment to different users. I have written a custom program as the driver program which is used to configure this form in nace. I need to extend this logic so as to send an email also.

Please help me in solving this issue.



Edited by: rakhi966 on Aug 19, 2011 10:08 PM

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 22, 2011 at 08:10 PM

    It is a serious pain to code in ABAP to send a pdf attachment.

    We generate forms in the background and attach them to send to who ever requested them.

    We use FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' - you have to convert your pdf to binary and pass it in along with all the other require information.

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Robert,

      I got another problem while configuring the form for the output. When I directly execute the program, mail is being sent directly along with attachment, but when I confiure the output and send from there, it is failing at commit work. It is saying "Output Terminated" when I check the same in ST22 it is giving me the detail as "COMMIT IN POSTING".

      could you please help me in solving this issue. Hope my question is clear.



  • Aug 24, 2011 at 08:07 PM

    I got another error while configuring the form as "COMMIT IN POSTING" and it is going into dump.

    could any one please help me in resolving the issue

    Add comment
    10|10000 characters needed characters exceeded

    • Hello All,

      I could solve the question by myself. Error "COMMIT_IN_POSTING" comes when another commit occurs in between a commit(probably commit used while saving standard transaction).

      I could write a customize program with out commit and later allowed standard transaction to commit my work.