cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic File Directory

bekirakturk
Explorer
0 Kudos

Hi Experts,

In one of our interface development  we require a dynamic Directory path at the reciever file adapter in a File to File scenario.

Situation is;

Sender

Path = Static Path

filename = Manual_SKUNUMBER_LANGUAGE

Reciever

Path= ....\SKUNUMBER\f20

filename= Manual_SKUNUMBER_LANGUAGE

now in Path of reciever subfolder SKUNUMBER is dynamic and need to be equal to SKUNUMBER in file name.

I need your helps for this situation.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If it's a file to file pass through scenario without mapping then u can use adapter module...but if mapping is involved in ur scenario then u can use DC UDF in mapping and create dynamic folder names.

Thanks

Amit Srivastava

bekirakturk
Explorer
0 Kudos

Hi Amit,

It is a pass through scenario without mapping. Can you pls share the modules I need to use?

Thnx

Former Member
0 Kudos

Hi,

Here u go (created this one year back):

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

Above is for manipulating file name but u have to add just one line for directory

Thanks

Amit Srivastava

Answers (1)

Answers (1)

nageshwar_reddy
Contributor
0 Kudos

Hi Bekir,

I believe you can achieve this by following these steps:

1. Enable FileName ASMA for sender adapter.

2. Enable FileName and Directory ASMA fields for receiver adapter.

3. Write an UDF to read FileName attribute and set the Directory field through Dynamic Configuration.