cancel
Showing results for 
Search instead for 
Did you mean: 

Idoc to file scenario

Former Member
0 Kudos

Hello every one, i am doing a IDoc to File scenario.

In IDoc to file scinario how we will get file name as idoc number at run time for every IDoc number?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

in mapping:

doc num-> udf(dyn.conf) -> target root node.

udf:

String DynamicConfiguration(String a, Container container) throws StreamTransformationException{

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");

conf.put(key,a);

return "";

in receiver comm,channel:

you have to enable check box's for file name and using ASMA in advanced tab

pls refer below blog for example:

http://wiki.sdn.sap.com/wiki/display/XI/CombiningthreedifferentaspectsofPIinoneshot

Edited by: bhavanisankar.solasu on Feb 2, 2012 2:43 PM

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi friends,

here is new document for IDOC TO FILE scenario..

http://jskcomput.blogspot.com/2013/08/idoc-to-file-scenario.html

former_member184681
Active Contributor
0 Kudos

Hi,

You can use Dynamic Configuration for this purpose. Please refer to this thread for a similar problem with a solution, including a ready-to-use UDF code. You might also want to refer to this blog for some further details:

Hope this helps,

Greg