Skip to Content
avatar image
Former Member

Dynamic Filename from source Idoc

Hi All,

I need to give the filename from the field in the source idoc. the field value need to be picked up as below

ZSSV_GENERIC_IDOC

-IDOC

--Z1SSV_ITEMS_SUMMARY

---HOST_FILENAME

Note: - represent the level in the datastructure.

here the value of HOST_FILENAME need to be given as filename. I check the Variable Substitution but I hope we can give only the values from message: and payload:

Please let me know how to give this valueas filename.

my filename need to be as

HOST_FILENAMEmatmastimestap.dat

Regards,

Dhill

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Aug 20, 2007 at 11:20 AM

    Hi,

    Go thru this blog...

    <a href="/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i File Name using XI 3.0 SP12 Part - I</a>

    <a href="/people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii File Name using XI 3.0 SP12 Part - II</a>

    Regards

    Santhosh

    [url=; Use a Good Subject Line, One Question Per Posting - Award Points[/url]

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 20, 2007 at 11:30 AM

    Dhil,

    Check the below code if its feasible to you rather than going for variable substitution.

    input --->UDF -


    >Root node of target.

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

    DynamicConfigurationKey key = DynamicConfigurationKey.create(

    "http://sap.com/xi/XI/System/File",

    "FileName");

    String fname =input+"MATMAS";

    conf.put(key,fname);

    return "";

    In receiver comm.channel check the checkbox for ASMA -Filename.

    Creation mode - AddTimestamp.

    Hope it helps!!!

    Best regards,

    raj.

    Add comment
    10|10000 characters needed characters exceeded