cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC 2 File, Variable Substitution help required

former_member192892
Active Contributor
0 Kudos

Hi guys,

I'm doing an IDOC to file scenario. I want to make the target directory and the file name to be updated dynamically.

I don't want to modify the pay load in any way so as to include any extra tags to represent the file name and directory parameters..

After going through various blogs I have a slight idea that may be this can be achieved by setting these parameters in the message attributes..But i don't know how can i modify the message attribute in the receiver...

Please can any one help me in achieving this scenario??

Accepted Solutions (1)

Accepted Solutions (1)

justin_santhanam
Active Contributor
0 Kudos

Varun,

I request you to kindly have a look at http://sapient.xi.googlepages.com/xi-excellentintegration

In the UDF I wrote over ther u can find the functionality. Also Please have a look at Michal's weblog, coz its the base.

Best regards,

raj.

Answers (1)

Answers (1)

Shabarish_Nair
Active Contributor
0 Kudos

use the idea based upon the blog - /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

use the code specified in your mapping and alter it to get your file name dynamic.

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