Recently, I saw one interesting thread http://scn.sap.com/message/13372169#13372169 in forum having a requirement to add a water mark effect to the incoming payload (PDF file) during mapping. One of the quick solution, for such requirement will be a java mapping using external API’s such as iTextPDF which can do a water mark effect on the input PDF file/stream. Well, now we have a solution but, can we verify the java mapping code without configuring an end to end scenario in SAP PI? Obviously yes, we can test the snippet of code in standalone mode outside XI/PI, using java main method wrapper and passing the input file stream to execute (or) transform methods and writing output stream to a file. However, the standalone tests do not signify exactly the same java runtime behaviors of SAP XI/PI. So, how to proceed in such cases? Do we need to configure an end to end scenario and spend lot of time on interface testing end to end by involving various parties?
In this blog, I will explain the undocumented feature of SAP PI mapping test tab export functionality. I searched SDN, if this solution is already available, but I could not find any.
Steps:-
Advantages:-
1. Reduced testing efforts
2. No need to configure an end to end scenario or not even active version objects required
3. Quick upload of compiled java code and load test data directly from mapping test tool






Extract the zip file and rename instance.xml to instance.pdf and open with Acrobat Reader application.

Result: Water marked PDF

That's all.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 61 | |
| 30 | |
| 24 | |
| 21 | |
| 19 | |
| 17 | |
| 17 | |
| 16 | |
| 15 | |
| 10 |