on 11-02-2009 11:19 AM
Hi,
I have problems with queue after reading database view with JDBC. In the result list I get all information from 3 databases stored (Header, Group, detail). So for each detail line I have also the header information repeated. This causes problems when I want to create an IDoc per Header. What do I have to do so that only one IDoc is created per "real" Header information?
For example:
Header Group Detail
1212 4 8854569
1212 4 5545855
1212 5 45556498
5555 1 6656954
So in the example above I want to create only 2 IDocs. The first one with 3 detail segements and the second one just with one detail segment. In the moment I get in the queue the header 1212 repeated 4 times - so XI wants to create 4 IDocs. How can I prevent that?
Thanks for any hint!
Best regards
M. Machata
You can handle it in your mapping very well like this...
Header(set the context to root node) ---> Sort ---> SplitByValue (on value change) ---> CollepseContext -
> IDOC.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks to all! This was it. After implementing the "SplitByValue" and "CollapseContext" I have just one value per number :). Great forum!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
you can achieve this by using the nodal function " SPLIT BY VALUE ( Value Change )" and "COLLAPSECONTEXT "
Regards,
Jude
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This link might be helpful for you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you can better handle this witing mapping.
Create a 1:n mapping and map the header to Idoc node(0..1) with node function 'Split By Value'. The property of 'Split By Value'
should be given as 'Value changed'. but care should be taken at detail record level to match them properly with header segment.
Else you need to write a UDF to compare values(header) and create target node accordingly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.