cancel
Showing results for 
Search instead for 
Did you mean: 

File/Directory renaming on file adapter

Former Member
0 Kudos

Hello

I have a scenario that gets a xml file from mail adapter and sends to a file adapter.

I only use ID on my scenario, as described on blog (/people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository).

How can I rename the directory of the destination file WITHOUT using any mapping on IR (because I DONT use IR) ?

I want the destination directory to be as /tmp/(today'syear)/(month)/

I already read the SAP documentation about File Adapter but I wasn't able get a solution.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi victor,

Use Command line option available in receiver communication channel.

U can create one executable file based on the OS u r using. Inside that file u can write whtever u want like detination directory and adding timestamp etc..

I think this will solve ur problem.

Thanx,

Kumar

Former Member
0 Kudos

Thanks everyone.

Kumar your solution have worked for me.

Thanks

Answers (3)

Answers (3)

Former Member
0 Kudos

If that is the case then you need to change the file name in FILE RECEIVER CC by implementing the Module .

the following links may be help you.

http://help.sap.com/saphelp_nw04/helpdata/en/17/50d440e14f8431e10000000a1550b0/frameset.htm

/people/daniel.graversen/blog/2006/10/05/dynamic-configuration-in-adapter-modules

https://websmp108.sap-ag.de/~sapdownload/011000358700003237612005E/HowToCreateAdapterModules.pdf

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e21106cc-0c01-0010-db95-dbfc0ffd...

http://help.sap.com/saphelp_nw2004s/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm

https://weblogs.sdn.sap.com/pub/wlg/3823 [original link is broken] [original link is broken] [original link is broken]

/people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter

/people/william.li/blog/2006/08/28/teched-2006-epi350--developing-and-testing-adapter-modules-in-sap-netweaver-exchange-infrastructure

Warm Regards,

Vijay

justin_santhanam
Active Contributor
0 Kudos

Vitor,

I won't think so without Dynamic Configuration its possible!! We can't get Current year and date directly in comm.channel if you go for variable substitution. Also If you want to use Dynamic Configuration then u must use Message mapping.

See which is feasible for u , and let us know so that we can suggest further.

Best regards,

raj.

turmoll
Active Contributor
0 Kudos

Hi,

The only thing you have to do is to change the directory name in the FILE RECEIVER CC.

Regards,

Jakub

Former Member
0 Kudos

But the directory name I want is dynamic. I want it to be according to today's date.