Skip to Content

Root Node

Hi Group,

In File to IDOC scenrio I am using to create single IDOC for multiple records based on some condition,my IDOC structure is:

Z_IDOC

IDOC

Z_HDR

Z_ITEM

In my case Z_IDOC should create only once and Z_ITEM with multiple time, but when I am using creareif its creating multiple Z_IDOC root node, can any body suggest.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 06, 2014 at 12:26 PM

    Hi Rajiv ,

    As I have understand , You map your "Header" node with to check the condition , if the condition satisfies then IDOC will create and you can map all the ITEM node with the incoming file data as required.

    Source----> CreateIF--->remove Context--->CollapseContest---Target(Header)

    Thanks,

    Vijay Kumar

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Rajeev,

      I believe you need to create Z_IDOC when you have atleast one true condition from record. so in this case i missed the sort function.

      record (I believe the output is boolean value trur or false) ---> Sort (true in the start then false) ---> remove context--collapse context---> if without else --> map the Z_IDOC with constant

      regards,

      Harish

  • author's profile photo Former Member
    Former Member
    Posted on Jan 06, 2014 at 11:27 AM

    Hi Rajiv

    Map the root node 'Z_IDOC' with constant and 'Idoc' with constant. Then for the Z_ITEM use the create if condition.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Rajiv Kurra

      Hi Rajiv

      As far I understood, your input file will have multiple records and you want to create one Idoc for all the records if a certain condition satisfied or else no idoc will be created for the whole file.

      In that case map your root node as

      record---> create if ---remove context--collapse context---Z_IDOC

      contant----> Idoc

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.