cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic file name in communication channel

Former Member
0 Kudos

hello

is it possible to give in the communication channel, under the 'File Access Parameters', a dynamic file name?

to get it out of a table or something?

Thanks

Kfir

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Kfir !

You can use variable sustitution or dynamic configuration to set the output filename (and directory).

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

/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i

Regards,

Matias

ps: please award points if helpful

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Yes its bit possible to use the dynamic file name at File access paramters

The dynamic filename generation concept is as follows.

In your filename field. just give a variable with % symbols. (eg: %file% ).

Now, under the option Variable Name Substitution, you can give how the value has to be created.

It can be your interface name, sender service name, etc or it can be some value dynamically from your payload.

For the former, your give

message:interface_name ,etc

and for the payload part you give,

Payload: "your element root which u wanna acecss"

Just check this link out,

http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm

And read the contents under variable substitution and it will help you understand the concepts better.

If you have any clarifications, do get back,

Refer below links for more in depth details about it

http://help.sap.com/saphelp_nw2004s/helpdata/en/21/6faf35c2d74295a3cb97f6f3ccf43c/frameset.htm

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

/people/sap.user72/blog/2005/10/01/xi-new-features-in-sp14

/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i

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

/people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution

http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm

Check out this URL

http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm

Check these weblogs as well...

/people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12

/people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi

Thanks

Swarup

Former Member
0 Kudos

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

justin_santhanam
Active Contributor
0 Kudos

Kfir,

Please find the 1st page of the forum with topic Dynamic File name. Which deals the same. Refer it, if u have some doubts do reply back.

Refer

raj.

Edited by: Raj on Feb 6, 2008 9:09 AM