Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

XML to PDF conversion and create attachment in java mapping

Hello Experts,

I am trying to convert XML to PDF using XSLFO. The code works fine in local NWDS. I have uploaded the relevant jar files as well into PI (7.3 Version) and executed end to end scenario. The Scenario is from File to File. I am placing an XML File but the PDF File is is emptyin the target folder. So I have tried to create an attachment in SAP PI with below code.

     OutputAttachments outAttach = arg1.getOutputAttachments();

    Attachment attOut = outAttach.create("PDF_Output.pdf",outStream.toByteArray());

    outAttach.setAttachment(attOut);

I couldnt see any attachments in the moni/channel monitoring. The Mapping seem to work successfully without any failures.

Can you please help me out in creating attachments in SAP PI. I have already referred to below links

http://scn.sap.com/docs/DOC-26528

http://scn.sap.com/thread/1918880

http://scn.sap.com/thread/1953315

Regards,

N. Jayanth Kumar.

Former Member
Not what you were looking for? View more on this topic or Ask a question