Skip to Content
avatar image
Former Member

Idoc to file scenario

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Feb 02, 2012 at 09:11 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 02, 2012 at 09:14 AM

    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:

    Dynamic Configuration vs Variable Substitution - The Ultimate Battle for the File Name

    Hope this helps,

    Greg

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 21, 2013 at 12:42 PM

    Hi friends,

    here is new document for IDOC TO FILE scenario..

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

    Add comment
    10|10000 characters needed characters exceeded