Skip to Content

Edit invoice smartform to email with pdf attachment


I need to send the invoice details by mail that are currently only printed through the edit function.

When i go to VF02 enter invoice number and then edit, is it possible to send this message through email with the invoice as pdf attachment?

Also it would be necessary to enter receivers email at that time.

Maybe there is an exit before the sending that could raise a popup...

Do you think this can be done this way?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Apr 07, 2008 at 04:28 PM

    Hi Laurent

    I have done this succesfully in a different way:

    1) Create a Z Table for the email ID per Bill to party - this table accomodates up to 999 email ids per customer and also has a column for CC

    2) Create a new output type for EMAIL purposes with the Transmission medium as 1 -

    assign the output program and form to this.

    In the program, add new code to refer to the new Z table for getting the email ids of respective Bill to parties

    In the program add code to convert the form to PDF format and attach to the email craeted.

    Your ABAPPER should be able to assist in this code writing - in my case it took some time to get the desired result but the customers are very happy with the end result -

    best wishes


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member laurent touillaud

      Hi Laurent

      I have done the work in ver 40B and the work is custom developed to send to multi email ids - and since I am working on the ECC 6 upgrade, I have yet to come yet to this development -

      however, my initial analysis on this shows that SAP has delievred witrh Output mode 5 or 6 for External send - in such case I would update the output type condition master with multiple email ids -

      need to test this out though