on 05-19-2009 4:06 PM
Hi,
The sap system is sending us a field, that is not avaible on the web service we are consuming.
The problem is that the sap system requires this field at the responce.
How can I read the inbound payload, when I'm mapping the outbound responce?
Thanks in advance,
A
Simplest scenario: in the input mapping, fill a custom-specific Dynamic Configuration (your own namespace & tech name) and retrieve it in output mapping.
Best,
Henrique.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
>>>How can I read the inbound payload, when I'm mapping the outbound responce?
1. you can use a BPM to do that - but this will not be very efficient flow then
and it's very bad idea to use BPMs for sync flows
2. you can query SAP inside response message mapping to get this one field
again quite slow due to lookup
3. you can ask WS provider to store this additional field and send it back - the best approach in terms of processing
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
Thanks for your responce.
Well, I will ignore solutions 1 and 3. The project has an a "must" not tu use BPM and is not possible to modify the web service due it's a closed system (legal issues).
And regarding the second point, are you proposing to create an RFC on the sap system?, The problem is that is not possible to reconstruct the relationship between the responce and the sended message. That is why I need to read the outbound payload.
Is there any walkaround to "export" this field at the outbound mapping (Context objects?) and then import it at the inbound mapping? Where are the messages stored?... I was thinking that maybe i'll be able to read the sended message using ABAP mapping, using the msgid to read an ABAP table (dont know which one). Can this be done?
Thanks again,
A
Hi,
I've found this FM: SXMB_GET_MESSAGE_PAYLOAD and it would be great to read the inbound payload at the outbound mapping, just for one thing: it does truncate the payload :-s
Does anyone knows why?
Thx,
A
Edited by: Abravo_CL on May 20, 2009 10:52 PM
I was'nt reading the payload correctly... it works great
Hey
We did a exact same scenario some time ago and made use of ABAP mapping,we created a ZTable in XI itself,then once a request is sent from sender system,we were storing some attributes of it in this table via ABAP mapping,when we got back response,again do a ABAP mapping and pull these attributes from the ZTable.
Thanx
Aamir
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.