01-01-2010 4:58 AM
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
01-01-2010 7:10 AM
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