Skip to Content

Dynamic file name from idoc segment-sap po

Hi Guys,

Scenario Idoc--File

I am using same idoc in sender and receiver and i have done mapping

I am trying to generate a .xml file on FTP by using field(STAPA1) from idoc target structure and generate file name dynamically using variable substitution

i am getting below error

Exception caught by adapter framework: Error during variable substitution:

com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: var1

I have used

var1 payload:ALEAUD01,1,IDOC,1,EDI_DC40 ,1,E1ADHDR,1,E1STATE,1,STAPA1,1

Please suggest how to solve this issue

var1.jpg (25.3 kB)
var2.jpg (181.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Nov 02, 2017 at 10:46 AM

    Hi Gurudatta!

    EDI_DC40 segment is not the parent segment for E1ADHDR.

    var1 payload:ALEAUD01,1,IDOC,1,E1ADHDR,1,E1STATE,1,STAPA1,1

    Check your expression once again.

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Guys,

      Thank you for the help and inputs

      I changed my Receiver structure from Standard Idoc to Simple structure(since i had flexibility) and then i just used Variable substitution;it was successful

      variable name field "var1" should be in small case!!!!



      Br,

      Guru


      var5.jpg (33.6 kB)
  • Nov 06, 2017 at 05:23 AM

    Hi Guys,

    Thank you for the help and inputs

    I changed my Receiver structure from Standard Idoc to Simple structure(since i had flexibility) and then i just used Variable substitution;it was successful

    variable name field "var1" should be in small case!!!!

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 02, 2017 at 10:03 AM

    Try removing the space after

    EDI_DC40 ,

    and check once.

    Add comment
    10|10000 characters needed characters exceeded