cancel
Showing results for 
Search instead for 
Did you mean: 

Passing file name dynamically to the file adapter

Former Member
0 Kudos

Hi All,

I'm using a file adapter to create a file from the XML message after mapping in XI. The file name is given in the file adapter configuration. Is it possible to have the file name as a part of the message and pass it to the file adapter dynamically? Or is it possible to have the file name in some variable or something in XI (like a BPM variable) and pass it to the adapter for every message?

Does someone have any idea?

Thanks,

Sandeep

Accepted Solutions (0)

Answers (3)

Answers (3)

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Sandeep,

This is possible.

For creating filenames dynamically for your sender, you will have to crate a variable name ( eg: %VAR%) as you file name and then you will have to give the name of your file under variable substitution. Just check this link for more info,

http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm

In the case of receiver file adapaters, you have 5 options for file creation like,

1.Create

2.Append

3. Add time stamp

4.Add Counter

5. Add Message ID

You can choose any of these options or you can do it dynamically from you payload. Just check out this help link for more info,

http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm

Hope this helps

former_member91687
Active Contributor
0 Kudos

Hi Sandeep,

Take a look at these links:

/people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii

For dynamic file name the format is like this %var%.xml. The above blog gives a complete picture.

Cheers,

Chandra

MichalKrawczyk
Active Contributor
0 Kudos

hi Sandeep,

sure it is:)

have a look at my weblog:

<b>(you can create a filename inside your mapping)</b>

XI: The same filename from a sender to a receiver file adapter - SP14

/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>