cancel
Showing results for 
Search instead for 
Did you mean: 

Adapter Processing: How do you use part of a file name to define a directory in FTP

former_member271795
Participant
0 Kudos

Hi

I'm using an FTP - FTP scenario without mapping.

What I need to know how to do is, depending on the sender file name, the file will be put in a specific directory on the receiver side.

So far I've used Adapter specific variables to make the incoming filename available, but I don't want to use the entire filename as a directory name in the sender. How would I extract only part of this name

eg sender file  EHPA123.dat01  needs to be put on the receiver system /EHPA/infile.dat01

thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member201264
Active Contributor
0 Kudos

Hi Hall,

You can try to use this link, i did this for File and AS2 Adapters, you can try the same .

http://scn.sap.com/thread/3312449 

Regards,

Sreeni.

former_member201264
Active Contributor
0 Kudos

Hi Hall,

If you do not have AttribMapper then you have to go for Adapter Module.

Use this link for example:

http://wiki.sdn.sap.com/wiki/display/Snippets/Dynamic+file+name+in+a+File+to+File+pass+through+scena...

Regards,

Sreeni.

Answers (1)

Answers (1)

udo_martens
Active Contributor
0 Kudos

Hi Geoff,

i think the best way is here to set the ASMA checkboxes in sender and receiver adapter and create the logic in mapping time (an udf configuring the dynamic configuration) like Michal showed in http://scn.sap.com/community/pi-and-soa-middleware/blog/2005/11/10/xi-the-same-filename-from-a-sende...

/Udo