on 01-06-2014 11:24 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Hi Rajiv
Map the root node 'Z_IDOC' with constant and 'Idoc' with constant. Then for the Z_ITEM use the create if condition.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.