cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic File Name for Receiver File Adapter

arunneerolil
Contributor
0 Kudos

Hi All,

How can we use dynamic name for Receiver file adapter?

Can anyone help.

Thanks in Advance

Chemmanz

Accepted Solutions (0)

Answers (3)

Answers (3)

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Chemmanz,

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,

Regards,

Bhavesh

Former Member
0 Kudos

Hi

Check these blogs by jayakrishnan nair

/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

Sameer

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

all you have to do is to make the use specific adapter properties (filename) in the receiver file adapter

and then populate the filename in the mapping:

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");

conf.put(key, "ournewfilename");

Regards,

michal

MichalKrawczyk
Active Contributor
0 Kudos

hi,

BTW

my solution works with sp14 and above

Regards,

michal

Former Member
0 Kudos

Hi Machal,

Can u plz explain in brief how to use this kind concept in mapping. can u also provide me a link where i can get the java documentation for the Dynamic Configuration.

Thnx in Advance

Anil

moorthy
Active Contributor
0 Kudos

Hi,

Just go thru following links-

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

Regards,

Moorthy