cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping with compare result from independent nodes

dirkmei
Discoverer
0 Kudos
109

Hello,

We have an interface from SAP ERP providing two table structures.

So this is

Table1:

Line 1 fields: VBELN / KUNNR => 1001 / 3579

Line 2 fields: VBELN / KUNNR = 1002 / 4680

etc...

Table 2:

Line 1 fields: VBELN / POSNR / etc... => 1001 / 010

Line 2 fields: VEBLN / POSNR / etc... => 1002 / 010

Line 3 fields: / VBELN / POSNR / ... => 1002 / 020

Line 4 fields: / VBELN / POSNR / .... => 1003 / 010

etc...

For each VBELN in table 1 we can habe n lines in Table 2 with same VBELN.

The target structure is based on Table 2 and we need to add the correct KUNNR to each target line.

Seems this is not possible with graphical mapping. Any idea how to solve this ? E.g. with a small UDF? But how?

Best regards

Dirk

manoj_khavatkopp
Active Contributor
0 Kudos

Can you please provide a sample input xml and expected output xml or the same?

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Dirk,

I would suggest that you use a hashmap. For example, create a local variable mapping and save the values of table 1 in a hashmap. Then for table 2, use a simple UDF to call the hashmap for the values.

Regards,

Mark

View Entire Topic
former_member470153
Discoverer
0 Kudos

All the values will come in sorting orders?