Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

Creating multiple segments with the output of RFC lookup

$
0
0

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

1.PNG

 

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

2.PNG

 

For E1MVKEM

3.PNG

 

Fopr VKORG

4.PNG

 

Please let me know how to achieve the above result.

 

Thanks

Dheeraj Kumar


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>