on 04-02-2012 10:07 AM
Hi,
Can you please help me out with a piece of java code where i need to get the attachment from abap porxy and send it to SOAP reciver adapter.
Thanks and Regards
Arun Kumar
Points will be rewarded.
Hi Arun,
In a graphical mapping you can access attachments within a UDF through the GlobalContainer parameter:
GlobalContainer globalContainer = container.getGlobalContainer();
InputAttachments inputAttachments = globalContainer.getInputAttachments();
You have also a complete Java code in this thread http://scn.sap.com/thread/1341089 , you should see Yugapreetha T answer.
This option is availabe in SAP PI >= 7.1 version
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Could you give us the exception?
Have you marked this in the Operation Mapping?
Could you put any trace.addinfo in the code in order to detect where could be the problem?
I just found Yugapreetha T's blog about this issue, but no java code is posted but there explains more about this theme. ( http://scn.sap.com/people/yugapreetha.t/blog/2009/08/24/read-the-attachments-of-the-input-xi-message...)
Regards.
Recognizing this is an old thread, but since you seem to be active in SCN, I may note that some people may find it offensive if you ask for help, seemingly find a solution (maybe based on that help, maybe not) and come back here to say you solved by yourself WITHOUT sharing the solution.
Please share
Cheers
Jens
User | Count |
---|---|
76 | |
10 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.