cancel
Showing results for 
Search instead for 
Did you mean: 

Edit invoice smartform to email with pdf attachment

laurent_touillaud
Contributor
0 Kudos

Hi,

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?

Thanks,

Laurent.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Nandu

laurent_touillaud
Contributor
0 Kudos

Hi Nanda,

Thanks for your reply,

I already did the coding for this problem. Actually i just copied the standard form program triggered by the print button and added otf transformation popup addings so that user can fill in email and subject, body text. After this the email is sent correctly with pdf attached.

Could you confirm that it is not possible to make two outputs in nace transaction for one action?

I tried this but never made it work...

Thanks,

Best regards,

Laurent.

Former Member
0 Kudos

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

cheers

nandu

Answers (0)