With 7.31 EHP1 SAP has introduced new modules GetPayloadValueBean, PutPayloadValueBean and RemovePayloadValueBean. The modules usage is recently described by beena.thekdi Insert value from Request message to Response message using GetPayloadValueBean and PutPayloadValueB...
"Use PutPayloadValueBean to enrich the message with values from a module context. You can use this module in combination with GetPayloadValueBean to enrich a response message with information from the request. Normally you use GetPayloadValueBean to extract values from a message, then execute an adapter module (example, synchronous SOAP call) and finally use PutPayloadValueBean to enrich the response with stored values"
Although, in SAP help it is described that PutPayloadValueBean can be used in combination with GetPayloadValueBean in case of synchronous communication interfaces, we can still use this module in asynchronous communications with below explained use cases
Case 1: Pass some static value "PutThisValue" to xml field /ns0:root/field. The trick is to use double quotes "" to treat it as a string rather than as a variable from module context
Module | Type | Module Key |
---|---|---|
AF_Modules/PutPayloadValueBean | Local Enterprise Bean | Payload |
Module Key | Parameter Name | Parameter Value |
Payload | put:/ns0:root/field | "PutThisValue" |
Payload | xmlns | xmlns:ns0 = "http://yourxmlnamespaces" |
Case 2: Pass some static value but with xml fields "<Name>Praveen Gujjeti</Name><Company>IBM</Company>" to xml field /ns0:root/field. This way we can enrich basic xml structure at module level using this module
Module | Type | Module Key |
---|---|---|
AF_Modules/PutPayloadValueBean | Local Enterprise Bean | Payload |
Module Key | Parameter Name | Parameter Value |
Payload | put:/ns0:root/field | "<Name>Praveen Gujjeti</Name><Company>IBM</Company>" |
Payload | xmlns | xmlns:ns0 = "http://yourxmlnamespaces" |
Check results yourself :smile:
Hope this information help for your integration requirements
- Praveen Gujjeti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
10 | |
7 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |