cancel
Showing results for 
Search instead for 
Did you mean: 

Reg ABAP Mapping..

Former Member
0 Kudos

Hi All,

Regarding ABAP Mapping:

1) what is the use of ABAP Mapping?

2) In which situation we use ABAP Mapping?

3) Where can we did ABAP Mapping?

4) How can we call that mapping into SAP XI?

Please dont send any links i need some explanation regarding this.

Full points will be rewarded.

Thanks,

Bhavya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI

Different Mapping Techniques are available in XI. They are: Message Mapping, XSLT Mapping, Java Mapping and ABAP mapping.

u2022The integration repository includes a graphical mapping editor. It includes built-in functions for value transformations and queue and context handling. There is an interface for writing user-defined functions (java) as well.

u2022XSLT mappings can be imported into the Integration Repository; java methods can be called from within the XSLT style sheet. Advantages of this mapping are: open standard, portable, extensible via Java user-defined functions.

u2022If the transformation is very complex, it may be easiest to leverage the power of Java for mapping.

u2022ABAP mapping programs can also be written to transform the message structures.

Depending upon our requirement we will use the ABAP mapping. Theres no specific condition when to use wht type of mappings.

3) Choose IntegrationBuilder -> IntegrationBuilder.Repository -> com.sap.aii.repository.mapping.additionaltypes.

the followingMaintain the following entry:

R3_ABAP|Abapclass;R3_XSLT|XSL (ABAP Engine)

4)through a RFC Call using the functionalities of JCO

cheers

reward points if found useful

Answers (10)

Answers (10)

Former Member
0 Kudos

Hi Bhavya Kumari ,

The following r excellent websites containing PDF & PPT docs answer all u'r questions in detail:

Excellent PDF Document on Mapping

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

Mapping Development with the ABAP Workbench

http://help.sap.com/saphelp_nw04/helpdata/en/10/5abb2d9df242f6a62e22e027a6c382/content.htm

ABAP Mappings

http://help.sap.com/saphelp_nw04/helpdata/en/ba/e18b1a0fc14f1faf884ae50cece51b/content.htm

how to create a flat file out of an IDoc-XML by means of an ABAP mapping program and the J2EE File Adapter.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1...

How to Use ABAP Mapping in XI 3.0

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4...

cheers!

gyanaraj

****Pls reward points if u find this helpful

Former Member
0 Kudos

hi bhavya kumari,

Try to close the thread if you get suitable answers....hope you got it..

DO ENCOURAGE SDNers

Regards

chandrakanth

former_member193376
Active Contributor
0 Kudos

Hi

ABAP mappings are mapping programs in ABAP objects that customers can implement using the ABAP Workbench.

ABAP mappings run on ABAP Stack and are developed in the ABAP workbench of the Integration Server.

You normally do not need to use the ABAP mappings and is preferable for someone with ABAP programming background. I should say JAVA functions would suffice any complex scenarios

Thanks

Saiyog

Former Member
0 Kudos

Hi,

Where can we write ABAP Code while using mapping in SE 38 right or in some where..

Thanks,

Bhavya

GabrielSagaya
Active Contributor
0 Kudos

Login into XI client using the SAP Gui Logon

Start transaction SE24

Fill Object type: ZCL_XI_FLAT_TO_XML

Push button Create

u2026 Popup screen

Fill Description: XI mapping Flat file to XML

Push button Save

Push button Local object

Click on tab Interfaces

Add interface: IF_MAPPING

Click on tab Methods

Double-click on method: IF_MAPPING~EXECUTE and implements the mapping using XML DOM

/people/r.eijpe/blog/2006/02/19/xml-dom-processing-in-abap-part-iiia150-xml-dom-within-sap-xi-abap-mapping

go through this link,which ll give you complete idea about the ABAP mapping.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4...

/people/sameer.shadab/blog/2005/09/29/testing-abap-mapping

/people/michal.krawczyk2/blog/2006/09/20/xi-abap-mapping-logs--more-standard-better-visibility

Former Member
0 Kudos

Hi Bahvya,

1) what is the use of ABAP Mapping?

Like anyother mappings ABAP mapping is used for mapping source and target message.

2) In which situation we use ABAP Mapping?

There is not hard and fast rule for this, it depends on you which mapping you wants to use

3) Where can we did ABAP Mapping?

This is done in SAP R3 system. You need to create a class in SE24 editor, and which the class you need to implement an interface IF_MAPPING. This this interface you can write you code in method EXECUTE.

But for this you need to enable ABAP mapping in SAP system. To enable mapping for the following.

a) Open http://<host>:<port>/exchangeProfile/index.html

b) Choose IntegrationBuilder -IntegrationBuilder.Repository->com.sap.aii.repository.mapping.additionaltypes

c) Maintain the Entry R3_ABAP|Abapclass;R3_XSLT|XSL (ABAPEngine)

4) How can we call that mapping into SAP XI?

You need to call the class you developed in Interface Mapping.

Thanks,

Punit

Former Member
0 Kudos

) what is the use of ABAP Mapping?

Use

ABAP mappings are mapping programs in ABAP objects [Extern] that customers can implement using the ABAP Workbench.

Prerequisites

Note the prerequisites in the sections Purpose and Integration as well as the Restrictions in Mapping Development with the ABAP Workbench

Features

An ABAP mapping comprises an ABAP class that implements the interface IF_MAPPING in the package SAI_MAPPING. The interface has a method EXECUTE with the following signature:

Importing Parameter Parameter Meaning

SOURCE(Type XSTRING) Source XML document

PARAM(Type Ref To IF_MAPPING_PARAM) Parameter object for read access to runtime constants (see below)

TRACE (Type Ref To IF_MAPPING_TRACE) Trace object for writing messages in the mapping trace (see below)

Exporting Parameter Parameter Meaning

RESULT (Type XSTRING) Target XML document

Exception: CX_MAPPING_FAULT

Applications can decide themselves in the method EXECUTE how to import and change the source XML document. If you want to use the XSLT processor of SAP Web AS, you can use the ABAP Workbench to develop a stylesheet directly (see XSLT Mappings (ABAP Engine) [Seite 376]) rather than using ABAP mappings

Runtime Constants

In ABAP mapping you can read access message header fields. To do this, an object of type IF_MAPPING_PARAM is transferred to the EXECUTE method. The interface has constants for the names of the available parameters and a method GET, which returns the respective value for the parameter name. The constants are the same as in Java mappings [Seite 367], although the constant MAPPING_TRACE does not exist for ABAP mappings. Instead, the trace object is transferred directly using the parameter TRACE of the method IF_MAPPING~EXECUTE (see above).

regards

chandra

aashish_sinha
Active Contributor
0 Kudos

Hi,

>>>1) what is the use of ABAP Mapping? 2) In which situation we use ABAP Mapping?

ABAP mappings are mapping programs in ABAP objects that customers can implement using the ABAP Workbench.

An ABAP mapping comprises an ABAP class that implements the interface IF_MAPPING in the package SAI_MAPPING. The interface has a method EXECUTE with the some signature.

>> 3) Where can we did ABAP Mapping? 4) How can we call that mapping into SAP XI?

Applications can decide themselves in the method EXECUTE how to import and change the source XML document. If you want to use the XSLT processor of SAP Web AS, you can use the ABAP Workbench to develop a stylesheet directly rather than using ABAP mappings.

In ABAP mapping you can read access message header fields. To do this, an object of type IF_MAPPING_PARAM is transferred to the EXECUTE method. The interface has constants for the names of the available parameters and a method GET, which returns the respective value for the parameter name. The constants are the same as in Java mappings, although the constant MAPPING_TRACE does not exist for ABAP mappings. Instead, the trace object is transferred directly using the parameter TRACE of the method IF_MAPPING~EXECUTE.

For more details refer

http://help.sap.com/saphelp_nw70/helpdata/EN/ba/e18b1a0fc14f1faf884ae50cece51b/frameset.htm

Regards

Aashish Sinha

PS : reward points if helpful

Former Member
0 Kudos

q)how to call an Abap mapping in SAP XI

through a RFC Call using the functionalities of JCO

SAP JCo libraries installed on your system.

- Java Development Kit (JDK) installed.

- SAP XI Box

regards

chandraaknth

Former Member
0 Kudos

4) How can we call that mapping into SAP XI?

Choose IntegrationBuilder -> IntegrationBuilder.Repository -> com.sap.aii.repository.mapping.additionaltypes

3. Maintain the following entry:

R3_ABAP|Abapclass;R3_XSLT|XSL (ABAP Engine)

regards

chandra

Former Member
0 Kudos

2) In which situation we use ABAP Mapping?

If the requirement is complex then you can go for XSLT, ABAP and Java Mapping

4) How can we call that mapping into SAP XI?

For this we need to set the value in the exchange profile parameters

.........additional types:

regards

chandra