Skip to Content
avatar image
Former Member

How to create the multiple files based on segment.


Hi Experts,

sender side and receiver side i am using  same idoc. IDOC to  sFTP  Scenario (1:1 mapping)

sender side IDOC

IDOC

    E1STATE

    E1STATE  

for two segments E1STATE  i need to create  two files based on E1STATE. i need to split the idoc based on E1STATE segment and for each E1STATE segment i need to create one file.

please provide me solution for this requirement

Thanks,

Aadi

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Apr 15, 2014 at 06:06 AM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 15, 2014 at 07:18 AM

    Hi ,

    Don't need to get panic by hearing multi mapping .

    In simple terms what you need to do is , in message mapping drag source and target structures -->click on signature tab -->in target structure change the occurrence to 0..unbounded .

    IDOC 0..unbounded       MT_file 0..unbounded

    E1STATE -->remove context-->MT_file

    Regards

    Venkat

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Working with PO single stack it will not support 0-UB in both sides it works in classical scenario.

  • avatar image
    Former Member
    Apr 15, 2014 at 08:55 AM

    Hi Venkat ,

    Thanks for your reply.

             IDoc to sFTP scenario

                                     

    actual sender structure

    IDOC  

      EDI_DC40                                                  

      E1ADHDR(1..99)                                            

             E1STATE  (1..99)

     

    actual  Receiver Structure     

    IDOC  

      EDI_DC40                                                   

      E1ADHDR(1..99)                                             

             E1STATE  (1..99)

    requirement sender idoc is the below one

    IDOC  

      EDI_DC40                                                   

      E1ADHDR(1..99)                                             

             E1STATE  (1..99)

      E1ADHDR(1..99)                                             

             E1STATE  (1..99)

             E1STATE  (1..99)

              

    same idoc using at sender side and reciver side  in my scenario ,so based on E1STATE segment ,for each E1STATE segment  i need to create one file at target side.

    in this case i have 3 E1STATE segments so i need to create 3 files at target side.

    please give me solution for this.

    Thanks,

    Aadi

    Add comment
    10|10000 characters needed characters exceeded