cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Source location using FIle Adapter

Former Member
0 Kudos

Hi Experts,

I having a scenario of file to file, my problem is how can I configure the comm channel to where the file will be pulled wherein the path is defined during the runtime process in certain ABAP program(defined from selection screen)? Is it possible?

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Yuor payload should contain the "Dir Path" choosen in the selection screen, We can use the data in variable substituion,

Regards

Ramg.

Former Member
0 Kudos

Hi Ganesh,

So if there's no mapping its impossbile?

Former Member
0 Kudos

Hi

No mapping is involved here. your source data should contain the directory path. Use the path in the variable substitution ,

Enable the variable substitution and,

payload:MT_test/dir_path/

Regards

Ramg

Former Member
0 Kudos

Refer the blog : /people/jin.shin/blog/2007/04/27/sap-netweaver-xi-variable-substitution-with-adapter-specific-message-attributes-via-dynamicconfigurationbean

Former Member
0 Kudos

wow that's great thank you very much for the help....

Former Member
0 Kudos

What if source data doesn't contain the directory path?

Former Member
0 Kudos

If not then its not possible to use the Variable substituion.

Regards

Ramg

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Yes it is possible to give the Source dynamically using the Variable Substiution,

Source path : %DIRECTORY%

Regards

Ramg