Skip to Content

Is it possible to get ASMA file name into message payload by using standard Adapter modules?


I try to get file name from ASMA and put it to message payload in Sender file communication channel.

I use AF_Modules/DynamicConfigurationBean and AF_Modules/PutPayloadValueBean to get it work. But it doesn't.

AF_Modules/DynamicConfigurationBean 1

AF_Modules/PutPayloadValueBean 1

1 key.1 write FileName

1 value.1 module.fileName

1 put:/ns0:MT_NVT_Transfer_Message/MESSAGE_HEADER/MESFILENAM module.fileName

1 xmlns xmlns:ns0="urn:my_namespace"

I use the same module key in order to get access to module context parameter "fileName". With different module keys it doesn't work either.

During execution I get error in PutPayloadValueBean saying that "value can not be null". I guess the module can't access module.fileName parameter defined in first module.

Is there any chance to get it work in such way?

P.S. Of couse, I know about UDF and Java/XSLT realizations of this task and I did it many times. But now I want to try Adapter modules to do the same.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Mar 30, 2016 at 03:45 AM

    Hi Evgeniy,

    No it is not possible to read the ASMA properties into payload via PutPayloadValueBean module, you need to read dynamic configuration properties in the message mapping using UDF.

    You need to use PutPayloadValueBean in combination with GetPayloadValueBean as per the help

    Adding PutPayloadValueBean in the Module Processor - Adding Modules to the Module Processor - SAP Library

    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.



    Add comment
    10|10000 characters needed characters exceeded