cancel
Showing results for 
Search instead for 
Did you mean: 

value mapping, interface mapping, standard funtions and user defined functi

Former Member
0 Kudos

I like have more information abt live scenario's use of value mapping, interface mapping, standard funtions and user defined functions.

How to create user defined funtions and how to use it in XI?

thanks in advance

shiva

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Can any tell about interface mapping.

why we it? how and when it used ?

aashish_sinha
Active Contributor
0 Kudos

Hi,

Interface mappings register your mapping program for an interface pair in the Integration Repository. If you require a mapping at runtime, it is sufficient to select the interface mapping for the interface pair at configuration time .The Integration Server uses the interface mapping to identify associated mapping programs for request messages, response messages, fault messages, or all three.

Features

Executing Multiple Mapping Programs for One DirectionBy using an interface mapping you can execute multiple mapping programs consecutively for the transformation of a request or response message. In such cases, an interface mapping comprises multiple steps for which the following applies:

● The steps are executed in the sequence specified (from top to bottom). The result of the mapping program from the previous step is forwarded to the mapping program of the subsequent step.

● Each step can reference a mapping program that executes a 1:1, 1:n, n:1, or an m:n transformation. In the case of multi-mappings (1:n, n:1, or m:n), the previous step must create the same number of messages that the subsequent step expects.

● Multi-mappings use one envelope to put all messages in one structure. If one of the steps references a multi-mapping program, all subsequent steps must use the same envelope.

The mapping for a request message comprises two message mapping programs: one 1:1 transformation and one 1:n transformation. Since the latter message mapping uses the multi-mapping envelope for both the target message and the source message, the message mapping for the 1:1 transformation must also create a transformation result with a multi-mapping envelope.

You do not strictly need to divide up one direction of the whole mapping into different steps. However, this enables all the message formats in one system landscape to be mapped to a central message format, for example. This results in less mapping programs being required because you no longer need to be able to map all the different message formats to each other

Activities

...

1. Create a message mapping on the design maintenance screen of the Integration Builder (see also: Creating an Object).

You can also create multiple interface mappings for the same interface pair.

2. Enter the source and target interfaces that require a mapping of the request message, the response message, the fault message, or all three, in the table of the same name. The following restrictions apply:

○ If you want to use the interface mapping in a transformation step in an integration process, you must only specify abstract message interfaces. Furthermore, all objects (integration process, interface mapping, and all objects that reference the interface mapping) must be in the same software component version. If you want to reference objects from underlying software component versions, you must access the objects from the Basis Objects branch (in the navigation tree or using an input help).

○ If you want to map multiple messages to each other by using a multi-mapping, you can only specify asynchronous interfaces (for further restrictions, see: Multi-Mappings). If any message interfaces are missing, you can also create them by using the function Create New Object ().

If the interface cannot be imported or cannot be created in the Integration Repository (in the case of an external adapter, for example), you must enter the interface names manually. However, it is not possible to check the technical name in this case.

3. To import the properties of the interfaces, choose Read Interfaces. The table in the lower area displays tab pages for the request message, response message, and if available, for the fault message, for each mode of the interfaces (either synchronous or asynchronous).

4. To develop an external mapping program, export the XSD schema of the respective request or response message as a zip file after you have imported the interfaces. The zip file can contain multiple schema files that reference each other, for example in a multi-mapping. In this case, the schema with the global message element has the name MainSchema.

5. To reference a mapping program for the respective message, you have the following options:

○ Select an existing mapping program from the Integration Repository by using the input help (). If this is a message mapping, the default setting of the input help only displays those message mappings that are found using the source and target message in the Integration Repository (in multi-mappings, the first source and target messages are used as the search criteria). However, you can also display any number of message mappings, for example, because you are constructing a mapping from several mapping programs with intermediate instances which have no message types.

○ You can create message mappings directly from the interface mapping. To do this, select the mapping type Message Mapping in the Type column. Position the cursor in the Name column and choose the function Create New Message Mapping () in the Mapping Program frame. The Integration Builder copies the specifications of the messages and their occurrence directly from the interface mapping.

An interface mapping can only reference mapping programs that belong to the same or an underlying software component version of the interface mapping. This ensures that the mapping program can be shipped together with the interface mapping (see: Software Logistics).

6. If it is not a mapping for a fault message, you can execute multiple mapping programs in succession for request and response messages:

○ To insert an additional line for a mapping program, choose .

○ To delete the registration for a mapping program, choose .

At runtime, the mapping programs are executed from top to bottom.

7. Save the interface mapping.

Regards

Aashish Sinha

PS : reward points if helpful

nisarkhan_n
Active Contributor
0 Kudos

If you have any mapping needs to be done on the source and target strucutre then you need the interface MApping in your configuration else you dnt need it.

If you dnt specifiy it in the ID steps source field and target field gets mapped one to one.

" Interface mappings register your mapping program for an interface pair in the Integration Repository. If you require a mapping at runtime, it is sufficient to select the interface mapping for the interface pair at configuration time (see: Defining Interface Determinations). The Integration Server uses the interface mapping to identify associated mapping programs for request messages, response messages, fault messages, or all three."

check this lnk

http://help.sap.com/saphelp_nw04/helpdata/en/4f/ef761a5ecfb1418b79896e10fe4c57/content.htm

Former Member
0 Kudos

Hi,

Value Mapping

A perticular object/field could have different interprtations from applications to applications and Business to Business. For e.g Suppose a particular document XYZ has an identity code 001 in one application or may be in one orgnization. But the same document could have different ID in different applications.

With the help of Value Mapping you could map these IDs with each other, thus while transaction of the data XI will act as an smart mapper to pass the Application specific values.

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

There are many docs available about Value mapping in SDN forum.

How to Perform Value Mapping – A Walkthrough

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00ee347e-aabb-2a10-b298-d15a1ebf...

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

/people/community.user/blog/2007/01/08/valuemapping-using-the-graphical-mapping-tool

standard funtions are the funtions which are built in futions which can be used directly in mapping for example for date convertion,node funtions.

some links on mappings,

1.Message Mapping Simplified - Part I

/people/sravya.talanki2/blog/2005/08/16/message-mapping-simplified--part-i

2.Message Mapping Simplified - Part II

/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii

3. New functions in the Graphical Mapping Tool SP13

/people/stefan.grube/blog/2005/12/29/new-functions-in-the-graphical-mapping-tool-xi-30-sp13

4. The Use of "suppress" in the XI 3.0 Graphical Mapping Tool

/people/stefan.grube/blog/2006/01/09/the-use-of-suppress-in-the-xi-30-graphical-mapping-tool

User defined funtions are used when we need to do business logics.

check the links.

http://flickr.com/photos/8764045@N06/

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/be05e290-0201-0010-e997-b6e...

Regards,

Phani

Reward points if Helpful

nisarkhan_n
Active Contributor
0 Kudos

UDF

As the name UDF is self explainotry "User Defined Function". It means that whenever in mapping your requirement is not fulfilled by the standard functions, the we think about UDF creation for mapping. UDF can be used in complex situations like:

1. If you are having a scenario IDoc to File, and in which you are sinding some account information like sumrized amount (per GL Account Number) to file, then standard function will not help you. In this case you have to go for an UDF.

2. It can also be used for R/3 lookups, to searching any value in R/3 tables. (But it creates performance issue, since every time you run your scenario it will hit the R/3 database which is not good).

Here is few links for UDFs.

Refer the below links for UDFs.....

http://java.sun.com/j2se/1.5.0/docs/api/

/people/krishna.moorthyp/blog/2006/07/29/documentation-html-editor-in-xi

/people/sap.user72/blog/2006/02/06/xi-mapping-tool-exports

http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/22/e127f28b572243b4324879c6bf05a0/content.htm

/people/stefan.grube/blog/2005/12/30/test-user-defined-functions-for-the-xi-graphical-mapping-tool-in-developer-studio

http://help.sap.com/bp_bpmv130/Documentation/Operation/MappingXI30.pdf

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d046c490-0201-0010-84b6-9df523cb...

Example 1

http://www.flickr.com/photo_zoom.gne?id=544183191&size=o

http://www.flickr.com/photo_zoom.gne?id=544183195&size=o

http://www.flickr.com/photo_zoom.gne?id=544183225&size=o

http://www.flickr.com/photo_zoom.gne?id=544183233&size=o

Example 2

http://www.flickr.com/photo_zoom.gne?id=545133789&size=o

http://www.flickr.com/photo_zoom.gne?id=545133791&size=o

http://www.flickr.com/photo_zoom.gne?id=545133801&size=o

http://www.flickr.com/photo_zoom.gne?id=545133807&size=o

http://www.flickr.com/photo_zoom.gne?id=545133811&size=o

http://www.flickr.com/photo_zoom.gne?id=545138911&size=o

http://www.flickr.com/photo_zoom.gne?id=545138913&size=o

http://www.flickr.com/photo_zoom.gne?id=545138915&size=o

http://www.flickr.com/photo_zoom.gne?id=545138917&size=o

http://www.flickr.com/photo_zoom.gne?id=545138947&size=o

http://www.flickr.com/photo_zoom.gne?id=545138951&size=o

http://www.flickr.com/photo_zoom.gne?id=545005958&size=o

Example 3

http://www.flickr.com/photo_zoom.gne?id=549186611&size=o

http://www.flickr.com/photo_zoom.gne?id=549186651&size=o

have a look at this also

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/be05e290-0201-0010-e997-b6e...

Value Mapping:

*****************

An object can have different representations, depending on the context in which it is used.

Example

**********

For example, the person Mr. Smith has a particular customer number as a customer of mail order company A and has a particular employee number as an employee of company B. Both numbers refer to the same person.

We can use the value mapping function to map different representations of an object to each other. We can save the mapping rules for different objects in a value mapping table.

We can use value mapping in the following areas of SAP Exchange Infrastructure:

· Java mapping

· Message mapping (see Standard Functions)

ValueMapping using the Graphical Mapping Tool

/people/community.user/blog/2007/01/08/valuemapping-using-the-graphical-mapping-tool

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

Value Mapping replication

/people/sreekanth.babu2/blog/2005/02/23/value-mapping-replication

Interface Mapping:

This is the step which we use in the IR for defining the relation ship between the outbound and inbound messages.