cancel
Showing results for 
Search instead for 
Did you mean: 

To have a field value in FileName

Former Member
0 Kudos

Hi All,

I am doing an IDOC to XML File scenario.

My requirement is to create multiple files at the target with the Filename having a field Value in it.

In the mapping i will be using RFC calls which will return multiple records and if my RFC returns 3 records, i will need to create 3 Files at the target. which will have the filename taken from a value returned from the RFC.

I tried using Dynamic configuration, since it uses PUT method i got the same name repeated again since it cannot be used for multiple targets.

I tried using variable substitution also, since my target is an XML i will end up in creating an extra node if mapped and i need the filename having timestamp in a desired format.

Could anyone help me in this.

Waiting for your reply

Regards,

Sherin Jose P

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can use the 1:n mapping here. Now depending on the number of records returned by RFC, you can create those many nodes. In your case, what you could do, add a field in the target structure at the root level, set the file name in this field. Then in the file adapter, use an adapter module to set the file name in the dynamic configuration, and then delete this node from the XML in the same module. This should solve the purpose.

Thanks and Regards,

Sarath