cancel
Showing results for 
Search instead for 
Did you mean: 

file-xi-file

Former Member
0 Kudos

Hi expert friends

Is there any way to construct the receiver file name with the name of a field in source file viz., ename.txt (david.txt) david being a value under ename field. Pl provide me required config steps.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

HI,

Your assigning the reciever file name based on the field name in the source side , , i hopw it is yes , in UDF for dynamic file name creation , you just use the source field name , before that you would have to take that field name into global variable , after that map the UDF to target root node , and in receiver side use in CC select the File name check box in adapeter specific message attributes..

see the belowlinks

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

/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i - Dynamic File Name Part 1

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

Regards

Chilla

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>>you just use the source field name , before that you would have to take that field name into global variable , after that map the UDF to target root node ,

there no need to use any global variables to assign dynamic name

you jut use the value from tag inside your UDF and create the dynamicparameter

as per blog nothing more

Regards,

michal

-


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

Former Member
0 Kudos

Hi Michal,

yes exactly , this is also another way ,

any way you need to take the field (type in blog) to be input to UDF.

Regards

Chilla

MichalKrawczyk
Active Contributor
0 Kudos

Hi David,

it's very easy - you just have to use adapter identifiers

as show in this blog:

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

the parameter that you need is : FileName

from:

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

Regards,

michal

-


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

Former Member
0 Kudos

David,

Use Adapter specifc Msg attributes. Refer the blog by Michal on the same.

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

Regards,

Jai Shankar