Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

pdf document needs to be attached to the accounting document.

former_member200345
Contributor
0 Kudos

Hi,

I have created a new output for the Invoice receipt which is being genarated through the transaction MIRO. As per my requirement, the document which is generated thorough this output type should be converted to pdf format and sent to the vendor as a mail with the pdf document attached.

I am done with this requirement. but now I wanted to attach the pdf document to the accounting document which will be created with reference to the Invoice receipt. I need to do this coding in the driver program of the output type.

In short my reqirement is to attach a pdf document to the acconting document which can be viewed through the FB03 transaction and this should be done through the program.

Please let me know if you have any queries in my requirement.

Thanks in advance.

Regards,

Vijay

1 REPLY 1

anup_deshmukh4
Active Contributor
0 Kudos

Hello just go through the below code and in your smartform insert program lines and send the generated PDF to adresse...using function module the second piece of code is for sending a mail with attachment

link to convert smartform to PDF

http://www.sap-img.com/smartforms/conversion-of-smartform-output-to-pdf.htm

link for code for sending the mail with attachment ...

http://www.sap-img.com/abap/sending-email-with-attachment.htm

Edited by: Anup Deshmukh on Jan 1, 2010 8:16 AM