Show TOC

Mappings for Enterprise ServicesLocate this document in the navigation structure

The Service Mapping Tool (SMT) is a program that enables you to fill target structures by using sets of source structures (in ABAP). It supports simple mappings, mappings with field transformations, complex transformations and field checks. Possible applications of the tool include the preparation of data for further actions, conversions of Enterprise Service data to an SAP-internal format, and vice versa. The SMT supports specific requirements for service implementations, such as extended XML handling or field checks.

Mappings group together all field assignments and transformations that are required for filling an amount of target structures from an amount of source structures. Mappings consists of mapping steps.

Mapping steps designate sub steps of mappings, during which the system fills a target structure from a number of source structures.

Example

You created a mapping for a service implementation. In this service implementation, the system must fill header and item structures of a backend API. The service structure generated acts as source structure. In this case, you must create a minimum of two mapping steps, as the system can fill only one target structure per step. For example: one step for filling the header structure, and another step for filling the item structure.

To use the SMT, you must complete two large work steps: Creation and editing of mappings in Customizing, and creation of the SMT call in your ABAP programs.

Creating and Editing Mappings in Customizing

You can create new mappings and mapping steps, and create and edit the required transformations (complex transformations, field mappings) and field checks. You are working in cross-client mode.

For further information, see Creating and Editing Mappings and Mapping Steps and Creating and Editing Transformations and Field Checks.

You can also extend existing and delivered mappings by creating new transformations (complex transformations, field mappings) and field checks for these mappings. You are working in cross-client mode.

For further information, see Creating and Editing Transformations and Field Checks.

The SMT supports cross-client and client-specific extensions. SAP favors cross-client extension technology, which should be used within the scope of service implementations especially.

For further information, see Extensions of Mappings.

Call-Up of SMT In Your ABAP Programs

You can call up the Service Mapping Tool (SMT) in your ABAP program by way of a class-based API. Your program must carry out the following steps:

  • Create object of type CL_SMT_ENGINE

  • Execute method PREFETCH for all input data (optional)

  • End the prefetch mode by calling up the method PREFETCH-END (optional)

  • Call-up method EXECUTE for all input data.

For further information, see Call-Up of Mappings in ABAP Programs.