cancel
Showing results for 
Search instead for 
Did you mean: 

mapping issue

Former Member
0 Kudos

In Mapping, Can I use one Target field as source to map to another? In my true scenario, I map the unit price from source xml to target xml, amount from source xml to target. in target xml, there is a total field equal to unit price multiply amount. but the mapping rule in source unit price and source amount is a little complex. I just want to use the target unit price and target amount as source to map the target total. is it feasible? can I use target field as source?

Accepted Solutions (1)

Accepted Solutions (1)

STALANKI
Active Contributor
0 Kudos

You can copy the path where you have caluclated the target amnt and unit price and multipy.

Answers (2)

Answers (2)

Former Member
0 Kudos

I do another new mapping, take target as source, take target as target,then map these two same xml structure

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Spring,

A wrokaround but a good one

Regards,

Bhavesh

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Spring,

>. is it feasible? can I use target field as source?

No, your target field cannot be the used a source in the same message mapping, when using Graphical Mapping.

From SP14, onwards, you can use Global Variable s in your Graphical Mapping , you can try to use if using a global variable can solve your problem.

For info on how global variables can be used, check this blog,

/people/sap.user72/blog/2005/10/01/xi-new-features-in-sp14

In Graphical Mapping, you will have to form the logic using only the source fields and <b>cannot use the target field as the input to your user defined function.</b> The only way this would be possible is to use Java Mapping.

Regards,

Bhavesh