Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Variable Substitution for File Name Scheme

Hi all,

Please clarify the following issue.

I have two source field

Transfer Order number - 0000000222

Tranfer Order line item - 0001

Both i map it into one target field

The target field output is - 0000000222#0001

I need a file name which starts with ABC <TranferOrderNumber>.txt.

The problem is, when i try to use payload i get output

(ABC0000000222#0001.txt). The reason is i use the target field which has concatenated.

Please give me a solution where i would get output

(ABC0000000222.txt).

Former Member
replied

Anandha,

use Dynamic Configuration of Adapter-Specific Message Attributes to set the file name instead of plain Variable Substitution.

You can do it in the same mapping you use to generate target message.

Check these references on dynamic configuration:

http://help.sap.com/saphelp_nw2004s/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm

/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping

Just make the mapping and then set your receiver file adapter to use the adapter specific attribute instead of the default name field.

In your specific case, the filename string should be something like:

String filename = "ABC" + order_number + ".xml"

Regards,

Henrique.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question