on 09-25-2012 9:31 AM
Hi Gurus,
We are using PI 7.3 in project. As per client's need, we need to parse the PDF files that comes as attachments in SOAP call. Also we need to merge PDFs if more than one is present in the attachments.
As mentioned in SAP sites, SAP Conversion agent is not available with PI 7.3 version. Since we don't have a lower version of PI, we can't install the agent on any other application server and use it.
For above reason, I have written a Java Mapping and that uses PDF Box api 1.7.1 to process the attachment files. This program runs fine in NWDS. but when I import the mappings into PI, message is getting hung up and processing is ending up incompletely. The PDF Box api is of 4 MB and I guess this is the reason the message is not getting processed.
Please suggest on this. Thanks.
Hi Uma,
Its difficult to point out exact reason of such error without actually seeing the code you wrote. You say its working fine in NWDS but not in PI server. Here are few alternatives you can try
1. Test the mapping with binary files or PDF file content as explained in this blog
2. There is a difference in the way we provide input to java mapping code in PI than we do while testing code in NWDS. Thus please check again if java mapping code is able to accept the contents of file within it. Add trace object after each line of code.
3. Comment all lines of loop in the code and check using trace if program flow is working properly or not.
4. There is another API itext which you can use to process PDF files . You can have a look into this article
http://wiki.sdn.sap.com/wiki/display/XI/CODE+-+Create+a+PDF+File+via+the+iText+Library
Regards
Anupam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.