on 11-06-2022 9:36 PM
I have an issue where I a have a target node Customer I need to create n times based on 3 input nodes.
Where n is the number 'Z1BPADSMTP' nodes combined with 'E1KNB1M' nodes for each IDOC.
There will be many IDOCs passed in 1 payload.
I need a UDF that allows me to create a Customer line for each 'Z1BPADSMTP' for each 'E1KNB1M' in each Idoc.
Context change needs to be tracked with input queue so a customer line is created within context of each idoc.
The email wizard code looks like this so far:
Line 10 and 15 is where I need help.
How can I read the context of the input queue?
As an example:
3 Idocs
1st IDOC:
3 Z1BPADSMTP nodes
3 E1KNB1M nodes
produces 9 Customer lines
2nd IDOC:
0 Z1BPADSMTP nodes
2 E1KNB1M nodes
produces 0 Customer lines
3rd IDOC:
1 Z1BPADSMTP nodes
5 E1KNB1M nodes
produces 5 Customer lines
Total = 14 Customer nodes created.
Hi Jack,
I hope I understand you requirement. I also suggest to check the queues using "Display Queue". I expect that you create a log of nodes in first iDoc because you do not insert a context change.
I think you have to omit the loop on idoc level (line 7). Before line 11 you will have to add an addContextChange().
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
8 | |
8 | |
7 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.