cancel
Showing results for 
Search instead for 
Did you mean: 

configuring file adapter

Former Member
0 Kudos

This is sundar here i putting my query is in xi

While i am configuring the file adapter in

comunication channel we will mention the file name

given by us in sender & receiver sides. But i want to

give file name dynamically.

Plz give reply,

khemasundar@yahoo.co.in

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

as for my knowledge there r two ways to do it...depends on service packs...

plz follow these link....

Answers (9)

Answers (9)

Former Member
0 Kudos

have a look to Dynamic File Name using XI 3.0 SP12 Part - I

To be able to name the files accordingly, you should have these new names available in the payload of the message that is being sent to the receiver file adapter. You will have to enable the Variable Substitution indicator. For more details, read the same topic in the following help documentation:-

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

Also, since this value will be present in the payload and if you want to suppress it so that it can't be seen in the payload that is coming out of the rcvr file adapter, there is a workaround of suppressing this data. Refer to the follwing blog for the workaround:-

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

please give points if found useful

Former Member
0 Kudos

Sundar,

In receiver communication channel --> variable substitution

create a variable mention your payload type in the reference field.

and then in target file name schema mention the variable name

eg:%name%.txt

regards

yugapreetha

Message was edited by:

yugapreetha

Yugapreetha T

Message was edited by:

Yugapreetha T

Former Member
0 Kudos

Once you had the filename you can assign it in the receiver file adapter by putting %NAME% as the filename parameter.

Former Member
0 Kudos

hi,

u can give file name dynamically using message mapping...

check this blog...

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

hope this helpful..

Former Member
0 Kudos

Sundar,

If i understand further, you want to substitute it with some of your payload, use variable substitution where you can replace your file name at runtime based on some payload value./

Former Member
0 Kudos

Hi Sunder

While configuring the Communication Channel for File Adapter , if u want to give file name dynamically , use wild card characters, you can even exclude some files etc.

and specify the file name as . and XI Box will pick up all the files from the sender directory

hope this will help to solve ur querry

Former Member
0 Kudos

Hey Sundar,

Check these blog out<b> (Dynamic File Name using XI 3.0)</b>

/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

Hope itz Helpfull.

<b>Cheers,

*Raj*

*REWARD POINTS IF FOUND USEFULL*</b>

Former Member
0 Kudos

Hey

you can give the file name as . and XI will pick up all the files from the sender directory

is this what you are looking for?

Thanx

Ahmad

Former Member
0 Kudos

Sundar,

What do you mean by dynamically? Can you please explain so that we can suggest you.

You can use wild card characters, you can even exclude some files etc.

Regards,

---Satish