Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member181985
Active Contributor

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...

The focus of this blog is to explain some new use cases of PutPayloadValueBean. As per SAP help: Adding PutPayloadValueBean in the Module Processor - Adding Modules to the Module Processor - SAP Li...


"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

ModuleTypeModule Key
AF_Modules/PutPayloadValueBeanLocal Enterprise BeanPayload
Module KeyParameter NameParameter Value
Payloadput:/ns0:root/field"PutThisValue"
Payloadxmlnsxmlns: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

ModuleTypeModule Key
AF_Modules/PutPayloadValueBeanLocal Enterprise BeanPayload
Module KeyParameter NameParameter Value
Payloadput:/ns0:root/field"<Name>Praveen Gujjeti</Name><Company>IBM</Company>"
Payloadxmlnsxmlns:ns0 = "http://yourxmlnamespaces"

Check results yourself :smile:

Hope this information help for your integration requirements

- Praveen Gujjeti

17 Comments
Labels in this area