cancel
Showing results for 
Search instead for 
Did you mean: 

Value Mapping and graphical mapping

Former Member
0 Kudos

Hi all

I am learning value mapping and

all function used in graphical mapping ..

can anybody send me inforamtion regarding tht.

Any link appericiated.

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Nagsen,

this link deals with all the standard functions available in XI graphical mapping, just check it out.

http://help.sap.com/saphelp_nw04/helpdata/en/2c/2d8c4024d26e1de10000000a1550b0/content.htm

Do let me know if you need further inputs,

regards,

Bhavesh

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Bhavesh

thank you very much for providing tht links

Well i am jsut started reading tht.

Can you suggest some senario whr I can implement these mapping tech.

Thanks in advance

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Nagsen,

Consider the follwing source and target structures,

Source

<src>

<Person> 0 to UB

<Gender>1</Gender> 1..1

<Surname>Miller</Surname > 1..1

</Person>

</src>

Target

<tgt>

<Passenger> 1 ..1

<Title>Mr.</Title> 0 to UB

<titlecnt> </titlecnt> 1

<Name>Miller</Name> 0 to UB

<namecnt> </namecnt> 1

</Passenger>

</tgt>

If Gender=1, then title=Mr.

If gender=2 , title =Miss,

NameCnt and Titlecnt are count of the number of Name and Title occuring in the source.

This is one simple mapping scenario. this can be implemented using Graphical Mapping by writing a user defined function, and can also be implemented using a JAVA mapping. I would suggest you try both techniques.

Hope this simple scenario will help you understand the mapping techniques in JAVA.

Regards,

Bhavesh

PS Award points for useful answers.

Former Member
0 Kudos

Hi Bhavesh thank you very much

Well I want to use all graphical mapping functions

Can you plz me to find out exercise on it..

I am New in Xi can u plz explain me step by step.

any link appreciated..

thanks in Advance......

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Nagsen,

For graphical mapping, one important concept that is to be understood is the Context Change and how to use the same.

COnsider these simple scenarios,

1. In this case, DOB is withing otherdetails, but in my target i need it to come under details. this can be done using Remover Contexts. refer to link,

http://help.sap.com/saphelp_nw04/helpdata/en/1f/ea0fb12403844bbb6c4cbc8a00cda9/content.htm

<src>

<details> 0 to ub

<name>xxx </name>

<otherdetails>

<dob>xxx</dob>

<otherdetails>

</details>

</src>

<tgt>

<details> 0 to ub

<name>xxx</name>

<dob>xxx</dob>

</details>

</tgt>

2. In this case, in the src, multiple details can occur and multiple names can occur in a single detail.but, in the destination, for every occurence of name in the source I want a detail tag to be generated. This can be done using COLLAPSE CONTEXTS. refer to this link for the same,

http://help.sap.com/saphelp_nw04/helpdata/en/4b/d11e3e1c3b120ae10000000a114084/content.htm

<src>

<details> 0 to UB

<name> 0 to UB

</name>

</details>

</src>

<tgt>

<details> 0 to ub

<name> 1..1

</name>

</details>

</tgt>

Likewise, there are so many scenarios that you can try with various combinations. It will help you understand the functions in graphical mapping.

Regards,

Bhavesh

PS do award points for useful answers.

Message was edited by: Bhavesh Kantilal

Former Member
0 Kudos

Hi Nagsen,

Mapping is basically done to convert one form of xml into another form. This can be done using either of them mentioned below.

- Graphical mapping

- XSLT mapping

- JAVA mapping

- ABAP mapping

To know more about each of them please go thru the following links. And if you ask me your which is better, it depends basically on the scenario you implementing and the complexity involved. Anyways please go thru the following links:

Graphical mapping

/people/bhanu.thirumala/blog/2006/02/02/graphical-message-mapping-150-text-preview

http://www.sapgenie.com/netweaver/xi/mapping1.htm

/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping

XSLT mapping

http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm

JAVA mapping

http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm

ABAP mapping

/people/r.eijpe/blog

To know more about the value mapping tools for the SAP Exchange Infrastructure (XI), please go thru the following link:

http://www.applicon.dk/fileadmin/filer/XI_Tools/ValueMappingTool.pdf

To get an idea as to what value mapping is, please go thru the following links:

http://help.sap.com/saphelp_nw04/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/f2/dfae3d47afd652e10000000a114084/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/content.htm

most of the links that I have provided also helps you get the step by step procedure of doing the same. And also involves the procedure to implement certain advanced features.

Hope this clears your doubt fully.

Regards,

Abhy

PS: AWARD POINTS FOR HELPUL ANSWERS.

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Nagsen,

On an after thougth, this link which deals with the different mapping techniques in XI might also help you.

Graphical Mapping

http://help.sap.com/saphelp_nw04/helpdata/en/03/398c4024d26e1de10000000a1550b0/content.htm

XSLT Mapping

http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm

Java Mapping

http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm

Hope this helps,

Regards,

Bhavesh