Skip to Content
avatar image
Former Member

mapping issue

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Mar 20, 2006 at 04:37 AM

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

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 20, 2006 at 03:08 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 21, 2006 at 04:34 AM

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

    Add comment
    10|10000 characters needed characters exceeded