cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Programs

Former Member
0 Kudos

Hi Expets,

We know that there are different mapping programs are available in XI environment like Graphical Mapping, Java Mapping, ABAP Mapping and XSLT Mapping. But on what basis we will choose one of these mapping programs?

I mean, which constraints would make me to choose specific mapping program?

Thanks,

Vijay Kumar T.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

Refer this blog: Comparing Performance of Mapping Programs

/people/udo.martens/blog/2006/08/23/comparing-performance-of-mapping-programs

Regards,

Nithiyanandam

Former Member
0 Kudos

Hi,

CHeck these Which mapping we need to Use on which Situations

/people/udo.martens/blog/2006/08/23/comparing-performance-of-mapping-programs

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/mapping%2btechniques

Regards

Seshagiri

Former Member
0 Kudos

Hi Vijay,

This is a very good question!!!

We need to decide mapping based on performance ,response time and complexity.It is found that, one should try Graphical mapping first, and if its not possible by this,then go for other mappings.

see here for more detalis of mapping

/people/udo.martens/blog/2006/08/23/comparing-performance-of-mapping-programs

At what situations we will go for ABAP mapping?

See these threads of similer discussion

A few example cases in which an XSLT mapping can be used:-

When the required output is other than XML like Text, Html or XHTML (html displayed as XML)

When default namespace coming from graphical mapping is not required or is to be changed as per requirements.

When data is to be filtered based on certain fields (considering File as source)

When data is to be sorted based on certain field (considering File as source)

When data is to be grouped based on certain field (considering File as source)

Advantages of using XSLT mapping

XSLT program itself defines its own target structure.

XSLT programs can be imported into SAP XI. Message mapping step can be avoided. One can directly go for interface mapping once message interfaces are created and mapping is imported.

XSLT provides use of number of standard XPath functions that can replaces graphical mapping involving user defined java functions easily.

File content conversion at receiver side can be avoided in case of text or html output.

Multiple occurrences of node within tree (source XML) can be handled easily.

XSLT can be used in combination with graphical mapping.

Multi-mapping is also possible using xslt.

XSLT can be used with ABAP and JAVA Extensions.

Disadvantages of using XSLT mapping

Resultant XML payload can not be viewed in SXMB_MONI if not in XML format (for service packs < SP14).

Interface mapping testing does not show proper error description. So errors in XSLT programs are difficult to trace in XI but can be easily identified outside XI using browser.

XSLT mapping requires more memory than mapping classes generated in Java.

XSLT program become lengthier as source structure fields grows in numbers.

XSLT program sometimes become complex to meet desired functionality.

Some XSL functions are dependent on version of browser.

see these also .. u might need this some day!!

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb9...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923b4fb8...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/006aa890-0201-0010-1eb1-afc5cbae...

Some scenarios

/people/sap.user72/blog/2005/03/15/using-xslt-mapping-in-a-ccbpm-scenario

/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping

JAVA mapping

How is JAVA mapping different from Graphical, XSLT and ABAP mapping?

Graphical mapping is an easiest and common approach followed by everyone for generating desired target structure. It involves simple drag-n-drop to correlate respective nodes (fields) from source and target structure. It may involve Java UDFs as a part of the mapping program. But sometimes with graphical mapping it is difficult or it may seem impossible to produce required output; for example … text/html output, namespace change, sorting or grouping of records etc. A person comfortable with Object Oriented ABAP can go for ABAP mapping instead. One can also think of XSLT mapping as another option. In such cases, when java mapping is used the developer has full control over the message content and could manipulate it based on the output requirement. Hence, java mapping can prove to be an efficient approach.

A few example cases in which Java mapping can be used:-

When the required output is other than XML like Text, Html or XHTML (html displayed as XML).

When the data is to be extracted from input which is in text format.

When default namespace coming from graphical mapping is not required or is to be changed as per requirements.

When data is to be filtered, sorted or grouped based on certain fields (considering File as source)

Advantages of using Java mapping

Java program itself defines its own target structure.

File content conversion at sender side can be avoided in case of text or html input.

File content conversion at receiver side can be avoided in case of text or html output.

Java can be used in combination with graphical mapping.

Multi-mapping is also possible using Java mapping.

Using Mapping Runtime constants we can determine all message related information such as Message ID, sender service etc.

Disadvantages of using Java mapping

Once the java mapping has been imported into XI, to incorporate any further changes one has to compile the java program and import the class file again into XI.

Thanqs

Biplab

Former Member
0 Kudos

Hi,

Refer the below thread which had a same discussion:

Graphical mapping:

It is preffered one but it depends upon the requirements.if ur business logic is implemented with the standard function which is provided in graphical mapping then u go for graphical mapping.

U can use UDF user defined function in graphical mapping if ur business requirements are not fulfiled by std functions.

UDF's are user defined functions are of two types,simple UDF which takes in one input and gives out one output and the second one is advanced UDF where in u can access more than one fields,and the result is passed on to ResultList.

UDF can be used in graphical mapping depends upon the requirement.

1) If u wanted to do manuplication in data which can not be done by using the standared XI function that time we go for UDF.

2) For doing Lookup we write the code in UDF and pass the value to R3 system.

3) If u need to compare the input value and pass the other value based on comparision that time can go for UDF.

There are many different requirement for which we can go ahead with UDF.

XSLT mapping:

It can be used to transform

• XML to XML - From one XML data format to another

• XML to Text

• XML to HTML/XHTML

• XML to PDF

A few example cases in which an XSLT mapping can be used:-

&#61692; When the required output is other than XML like Text, Html or XHTML (html displayed as XML )

&#61692; When default namespace coming from graphical mapping is not required or is to be changed as per requirements.

&#61692; When data is to be filtered based on certain fields (considering File as source)

&#61692; When data is to be sorted based on certain field (considering File as source)

&#61692; When data is to be grouped based on certain field (considering File as source).

Advantages of using XSLT mapping

&#61692; XSLT program itself defines its own target structure.

&#61692; XSLT programs can be imported into SAP XI. Message mapping step can be avoided. One can directly go for interface mapping once message interfaces are created and mapping is imported.

&#61692; XSLT provides use of number of standard XPath functions that can replaces graphical mapping involving user defined java functions easily.

&#61692; File content conversion at receiver side can be avoided in case of text or html output.

&#61692; Multiple occurrences of node within tree (source XML) can be handled easily.

&#61692; XSLT can be used in combination with graphical mapping.

&#61692; Multi-mapping is also possible using xslt.

&#61692; XSLT can be used with ABAP and JAVA Extensions.

But at the same XSLT has the disadvantages also.

Java mapping:

http://help.sap.com/saphelp_nw04s/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm

For example:if ur strucutre is complex which u can not design using the FCC that time u go with java mapping.

Refer mapping performance :

/people/udo.martens/blog/2006/08/23/comparing-performance-of-mapping-programs

Thnx

Chirag

Former Member
0 Kudos

Hi,

in most cases the graf. mapping fullfills requirements. in addition with java mapping you can create very complex mappings.

what do you want to do exactly ?

regards

sebastian