cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Directory in Target: File pass through scenario

Former Member
0 Kudos

HI Experts,

Appreciate your inputs on below scenario:

File (FTP) to File (NFS)  its a pass through scenario and no mapping required.

We need to identify target directory based on file name from source. We can read the file name using ASMA but how we can use this to decide which target directory it needs to place files on.

3 types of file names can come in and 3 different targets are established.

Thanks much in advance.

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member184720
Active Contributor
0 Kudos

Hi Jan - This can even be possible through receiver determination - Please check for Anupam Ghosh reply in the below thread.

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

Former Member
0 Kudos

Hi

Variable substitution will not work for this scenario. We can use the below header parameters in the variable substitution

sender_party, sender_service, receiver_party, receiver_service, interface_name, interface_namespace,message_id

But this can be achieved using the combination of variable substitution and dynamic configuration bean.

Detail is there in the below blog

former_member191435
Contributor
0 Kudos

Hi,

For this u can create single field data type for sender and reciver and do the Message mapping...


In this Message Mapping Use UDF of Dynamic Configuration.

AS per your requirement you can modify your Code.

FYR::: Please follow below urls.

Let me know if you still face an issue..

Thanks,

Sreenivas veldanda.

gagandeep_batra
Active Contributor
0 Kudos

Hi Jan,

I am not sure but you can try on following prospective.

you can use variable substitution and refer that variable to file name from header part

and then use that variable in directory name

Regards

GB


Former Member
0 Kudos

Hello,

Use either AM or JM to define target names dynamically.

Check this (below articles are for renaming files but u have to change just 2-3 lines in below codes to define target directories dynamically):

Adapter module:

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

Java mapping:

http://wiki.sdn.sap.com/wiki/display/XI/Dynamic+file+name+for+pass-through+scenario

Thanks

Amit Srivastava