Hello All
I need help in mapping to create multiple segments in target with the output of RFC lookup under correct context.
I am able to achieve multiple target segments w.r.t. output of RFC lookup but context is wrong.
Let me explain why I am telling context is wrong.
This Interface is JDBC to IDOC.
IDOC structure is like below:
MATMAS05 1..1
IDOC 1..1
E1MARAM 1..9999
E1MVKEM 0...9999
VKORG
I am fetching multiple rows at a time. I am taking example of fetching 2 rows now.
I have a table in ECC system which contains values of VKORG and REGION
REGION VKORG
NEU 1060
1510
1640
Source structure as below
I am fetching two records from SQL table.
HostLocID (REGION) = NEU
Now I wanted to achieve below target structure:
MATMAS05
IDOC
E1MARAM
E1MVKEM
VKORG 1060
E1MVKEM
VKORG 1510
E1MVKEM
VKORG 1640
E1MARAM
E1MVKEM
VKORG 1060
E1MVKEM
VKORG 1510
E1MVKEM
VKORG 1640
But I am getting all the E1MVKEM under 1st generated E1MARAM
MATMAS05
IDOC
E1MARAM
E1MVKEM
VKORG 1060
E1MVKEM
VKORG 1510
E1MVKEM
VKORG 1640
E1MVKEM
VKORG 1060
E1MVKEM
VKORG 1510
E1MVKEM
VKORG 1640
E1MARAM
Below is the mapping
For E1MARAM
For E1MVKEM
Fopr VKORG
Please let me know how to achieve the above result.
Thanks
Dheeraj Kumar