cancel
Showing results for 
Search instead for 
Did you mean: 

Value Mapping

Former Member
0 Kudos

Hi Friends,

I have done Value Mapping, but didn't get actual use of it. My doubt is if i have one sender and 3 receivers, i have a field called Currency in source structure and depending on the receiver like if it is india then i want value "INR" in target field , if it is US then i want value "Dollar" in target field like that it goes... I have only one mapping program.So can i do this using value mapping concept. My doubt is in value mapping i have to give sender/receiver agency/schema in IR. So where i can make use the concept of "Depending on sender and receiver the entry in value mapping is selected". Can i Dynamically pass sender and receiver parameters to Value Mapping.

If u need further clarification, please let me know..

Regards,

Shyam.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

YOu can do this in the Value Mapping in the Graphical mapping also without creating agnecy,schema etc

Regards

Vijaya

Former Member
0 Kudos

Hi,

Thanks for the prompt reply..

If we don't give sender/receiver agency/schema in Value Mapping at design time then how will it search the value mapping table that we create in ID.

Could u please give some more clarification on this..

Regards,

Shyam.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Shyman,

I'd recommend setting up a Value Mapping that relates country names to currencies. E.g. you may choose any string for your sender and receiver agency (actually there is no global agency that defines the symbols representing countries and currencies). For the keys representing your schemas you may use "Country" and "Currency" respectively.

So you'll end up with the following value mapping table

Agency/Schema/Value Agency/Schema/Value

"Global"/"Country"/"US" "Global"/"Country"/"USD"

or

"Global"/"Country"/"IN" "Global"/"Country"/"INR"

...

Best regards

Joachim

Former Member
0 Kudos

hai

this is very helpful for u

1)VALUE MAPPING AND FIX VALUES.

The FixValues function provides a simple eneric value mapping (or key mapping) in the Integration Repository

1. Use the standard function Conversions -> FixValues tolink source and target element

2. Double click to define properties

��Each field mapping uses its own table of key-value pairs.

��Filled tables can be copied to other mappings. But copied

table is independent of origin.

Value Mapping (II) – Value mapping

The Value mapping function provides a more specific value

transformation.

1. Use the standard function

Conversions -> Value mapping to link source and target element

2. Double click to define properties

3. Define access keys for table entries:

��Value Mapping Context stores information on the origin of the data.

If data is maintained in the Integration

Directory, use

http://sap.com/xi/XI

��Agency and Schema for sender andreceiver messages. Any arbitrary

string value can be used.

Value Mapping (III) - Value Mapping Group

��Semantically identical information is collected in “Value Mapping Groups”

��Value Mapping Groups can be maintained:

��in the Integration Directory

��by sending data to Message Interface “ValueMappingReplication” of SAP BASIS ->

SAP BASIS 6.40 -> http://sap.com/xi/XI/System

��Following entries are required

1. Agency

2. Schema (Namespace and Object Type )

3. Value (the group’s representative for a given Agency – Schema combination)

Value Mapping (VI) – Define Value Mappings

��Value Mappings are created automatically between representatives of

the same group

��All entries for a couple of Agency/Schema combinations are displayed

using Tools-> Value Mapping in the Integration Directory

��Each new entry will create automatically a new group.

Value Mapping (VI) – Mass Configuration

��Mass data can be maintained in Value Mappings tables by

means of an XI Interface

��Based on Message Interface ValueMappingReplication of

http://sap.com/xi/XI/System in SC SAP BASIS 6.40

��Configuration has to be created in Directory

Former Member
0 Kudos

Hi Friends,

Any one can help me to understand this..

Regards,

Shyam ...

Former Member
0 Kudos

Shyam,

In graphical mapping u cant dynamically decide the Sender/Receiver Agency/Scheme

But for ur requirement u can create Value mapping table in ID as follows

Source Agency:CurrencyConvert

Target Agency:CurrencyConvert

Source Scheme: Country Target Scheme: Currency

Source--Target

AUS----Dollar

IND----Rupee

at runtime if AUS comes Dollar will be got as mapped value.

Further if u want to make Sender/Receiver Agency/Scheme Dynamic u can do that in java mapping.

<a href="/people/sukumar.natarajan/blog/2006/10/23/accessing-value-mapping-defined-in-directory-using-java-functions">/people/sukumar.natarajan/blog/2006/10/23/accessing-value-mapping-defined-in-directory-using-java-functions</a>

Regards,

Sudharshan

Message was edited by:

Sudharshan Aravamudan

Former Member
0 Kudos

Hi Sudharshan,

But in our Source field we Don't get any thing representing AUS or IND etc... Source value is comman, but depending on the receiver Business system name that we configure in R.D i wan't the value mapping to perform accordingly..

Regards,

Shyam.

Former Member
0 Kudos

Shyam,

Could u explain a bit more with some example.

As per my understanding

U create Value mapping as shown above

Receiver Value

India Rupee

Aus Dollar

And there is a built in mapping function called Receiver under Constants. This field will fetch u the receiver that is determined in receiver determination.

Regards,

Sudharshan