cancel
Showing results for 
Search instead for 
Did you mean: 

Scenarion - IDOC to Email with PDF attachment

Former Member
0 Kudos

Hi All,

I have requirement for new scenario to handle the incoming IDOC to be sent as email with the idoc information in a formatted pdf document as attachment ie idoc to email with pdf attachment where pdf needs to be having idoc information in a formatted layout.

Kindly can anyone help to know the procedure of how to generated pdf attachments in XI and how to pass the idoc information to this pdf attachment and to format the pdf attachment.

Thanks in advance and request quick response.

Bindu

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

you can create PDF from IDOCs using XSL-FO and Apache FOP. If you do not want to learn XSL-FO you can use a graphic tool like this one:

http://www.java4less.com/fopdesigner/fodesigner.php?info=sappi

you can find there an example how to convert an INVOIC IDOC to PDF. Once you have the PDF, you can use the mail adapter to send it,

Jon

Former Member
0 Kudos

Hi Rani,

You need to write a custom module program inorder to achieve the requirement.

As IDOC is the Sender, you can be able to send the data upto XI system. Now, Using the custom module, it need to convert into PDF file and send as an attachment to the receiver using the Mail adapter.

Refer the below links:

/people/shabarish.vijayakumar/blog/2009/05/17/trouble-writing-out-a-pdf-in-xipi

http://wiki.sdn.sap.com/wiki/display/XI/CODE%20-%20Create%20a%20PDF%20File%20via%20the%20iText%20Lib...

Now, refer the adapter paramters of the Receiver Mail adapter:

http://help.sap.com/saphelp_srm40/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm

Thanks,