Skip to Content
avatar image
Former Member

Dynamic file name configuration issue


My scenario is Idoc to multiple file scenario..

I need to drop 2 files at the target with the file names to be configured dynamically, at present i have used dynamic UDF to drop the files with the dynamic name. but i am getting the output files with the same name i mean the name which i used in the second structure.

eg: Input -- IDOC

ouput: i need to have abc.idocnumber.sysdate.xml & xyz.idocnumber.sysdate.xml

But now we are getting as xyz.idocnumber.sysdate.msgid.xml & xyz.idocnumber.sysdate.xml

so correct me if i am wrong .. i should not use 2 dynamic UDF in a single scenario..

else can i use variable substitution for one structure and Dynamic UDF for another structure..

please suggest some solution



Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Oct 27, 2010 at 03:15 PM

    for multimapping scenario, dynamic configuration will not work.

    you will have to go for variable substitution.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Shabarish,

      Having an issue when i use variable substituion .. can u clarify this..

      When i use variable substitution the value i can populate from the target structure but the idoc number i am not getting anywhere in the target structure.. in this case how to get this idoc number..



  • avatar image
    Former Member
    Oct 27, 2010 at 05:17 PM

    when say "Idoc to multiple file scenario", could you clarify:

    IDOC to multiple files of same type or

    IDOC to multiple files of different types ?



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi, Kishore:

      Sorry to get back to you late.

      Just wonder if the issue solved or not.

      I did very similar scenario recently, here I share with you.

      When I design targe strucuture, I created a additional node, let us called "Tail"

      Under Node Tail, I create a sub-node called "Filename", this value will be used as variable substitution in receiver adapter.

      Now you can map any value to node "Filename" now based on your requirements, include your system date.

      In Receiver FCC, you do not want "Tail" structure it create a line, or even blank line, you use following in FCC:

      Tail.fieldFixedLengths 0

      Tail.fixedLengthTooShortHandling Cut

      Tail.endSeparator '0'

      It worked for me.