Skip to Content

Dynamic File Name usign adapter specific message attribute

Experts,

I have following scenario.

outbound idoc from SAP EWM and creating flat file for third party. The file name should be "<WareHouseNumber_Timestamp>_WO.<EXT> the ext is also based on the process code which is coming from EWM idoc.

I have done following things so far.

Connections are established. created mapping and in that created attribute in target structure for FileName and assinged filename to it.

Here is the config on communication channel

When i ran the scenario I got below error, please help. I have gone through all the possible blogs on this topic so kindly do not paste me the links.

MP: exception caught with cause com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: The Adapter Message Property 'FileName' was configured as mandatory element, but there is no 'DynamicConfiguration' element in the XI Message header

Thanks,

Nishant

pastedImage_1.png (23.8 kB)
pastedImage_2.png (13.6 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Nov 15, 2013 at 04:29 PM

    Hi Nishant,

    from the error it seems your attribute FileName is not set from the message mapping. Please check the XI Message header if you have the FileName attribute.

    Regards,

    Harish

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Nishant Chavan

      Hi Nishant,

      For generating the file with dynamic file name you have two options.

      1. UDF in message mapping

      2. variable substitution.

      If you don't want to write the udf, use the variable substitution method (send the file name in any of the field in that target structure and access the filed in the receiver communication channel).

      The UDF which i have given is very small and you don't need java expertise on it.

      Regards,

      Veerendra

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.