Introducing Structure and Field Mapping

Objective

After completing this lesson, you will be able to demonstrate an understanding of Direct and Indirect Mapping.

Direct Mapping

Direct Mapping is possible when the structures are on (1) the root level, (2) the first level, and (3) if they're on the same level on both sides. If structures differ, the SAP Application Interface Framework needs to know how a structure in the message can be reached.

Flow diagram showing source and destination structure, along with structure indicating the levels at which mapping can happen.

To map structures that are not on the root or the first level, some additional customizing steps are necessary.

This is also true for the mapping of structures that are on a different level in the source or destination structures.

2 flow diagrams showing contrast between structure that are not at the root or first level and structures are on different level in the source or destination structure.

Structures that are not on the root or first level:

You cannot map structures directly when they are on the second level or deeper in a structure.

Structures that are on different level in the source or destination structure:

  • You cannot map structures directly when the items are on a level under the header item in the source structure, but the header and items are on the same level in the destination structure.
  • You cannot map structures directly when the header and items are on the same level in the source structure, but the items are on a level under the header items in the destination structure.

Indirect Mapping

Only the root and the first-level structures can be mapped directly. Therefore, all the following structures require an indirect mapping. All steps have to be repeated until the root or the first-level structure is reached (they also have to be mapped).

Flow diagram showing steps for Indirect field mapping at the parent and child structures.
  1. The first step in creating an indirect mapping is to map the parent structures.
  2. The second step is to create a field mapping and map the child structures. If a structure mapping for the child structures is created, the child destination structure is selected as Field in Destination Structure. The child source structure is selected in the Sub-Table field.
  3. The final step is to create a structure mapping for the child structures and select the Indirect Mapping checkbox. In Application Interface Framework Customizing, in the Define Structure Mappings activity, create a new entry for the child source structure in Select Source Structure. Go to Assign Destination Structure and enter the child destination structure. Furthermore, you have to select the Indirect Mapping checkbox for this structure mapping.

After you have created the structure mapping, you can do the field mappings for the structures as usual.

Indirect Mapping Examples

Watch this video to gain insights into the intricate process of mapping nonidentical structures, utilizing indirect mappings, selection fields, and practical examples to streamline data mapping and enhance interface configuration within the SAP Application Interface Framework.

Key Takeaways

  • Indirect mapping may be necessary to map structures that are not identical, requiring steps such as mapping parent structures and creating structure mappings for child structures.
  • Utilizing selection fields, comparison fields, and operators can facilitate filtering and data mapping for hierarchical structures with varying levels of complexity.
  • Real-life scenarios, such as mapping flight bookings to specific customers based on unique identifiers, demonstrate the practical application of hierarchical data mapping in interface configuration within the SAP Application Interface Framework.

How to Map Structures Indirectly

Watch this demo to see the mapping and conversion of customer flight bookings and incoming flight dates for our system. Learn how to perform indirect mapping of customers to flights, set up necessary mappings in CUSTOMER_DATA, and create field mappings for effective data conversion and interface operations.

Log in to track your progress & complete quizzes