on 02-13-2019 3:36 PM
Hi
Hi,
I want to create a message mapping according to this picture:
At the bottom of our source we have ‘begindatumtijd’ and ‘einddatumtijd’.
If all ‘verbruik’ are in the same period (i.e. same ‘begindatumtijd’ and ‘einddatumtijd’) we create 1 idoc and all is well.
However, if we have two periods we must create two idocs.
All ‘telwerk’ are not sorted to period, so we can have a ‘telwerk’of period 1, then 2 ‘telwerk’ of period 2, then 3 ‘telwerk of period 1, then 1 telwerk of period 2 etc etc.
The first idoc must have all ‘telwerk’ segments where ‘verbruik’ is in period 1
The second idoc must have all ‘telwerk’ segment where ‘verbruik’ is in period 2.
I’m mapping ‘telwerk’ to ‘ZCMFTEL’.
In the mapping so far I can create the 2 idocs, and also mapping all the values etc, but I don’t succeed in sorting the ‘telwerk’ according to period. (so according to ‘begindatumtijd’)
I tried various options with sorting, sorting by key, format by example, playing around with context changes etc etc, but so far I can’t get it to work.
One example:
Is it possible at all with graphical mapping? Do I need UDF?
One issue i think that is bothering here is that i'm basically trying to sort a queue of contexts (and not a queue of values), but maybe i'm wrong here.
Any help greatly appreciated.
Regards
Robert
Hi,
So here are more details. The source message looks like this source-messsage-picture.png
And you will find the complete source in here: sorce-message-xml.txt
So in the source message you will find P1B which stands for Period 1 Begin, P1E = Period 1 end, etc etc.
This is target message, currently with 2 idocs: target-idoc-message.png
As can be seen the 1rst idoc has 1 "telwerk" records with P1 and 1 "telwerk" record with P2.
My requirements is that in target message all "telwerk" records with P1 go in the first idoc, and all "telwerk" records withe P2 go in the second idoc. (and if needed we have a 3rd period than all "telwerk" with P3 go in a 3rd idoc)
I know how to create the idocs as needed, and i can get the amount of telwerk records in each idoc, but they are not the correct ones.
As stated above i tried a various options with all sort of combinations of node options etc, but so far failed to accomplish.
Any help greatly appreciated.
Regards
Robert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anoop,
I will provide it. But due to availability it may take a few days.
Regards
Robert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Robert,
Can you please give us an example for understanding.
Regards,
Anoop
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
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.