Entering content frame

Procedure documentationCreating a Mapping Locate the document in its SAP Library structure

Procedure

  1. Invoke the transaction /nsmap.
  2. The front-end for Structure Mapper appears.

  3. Enter a Map Name in the Mapnames list box and click on the Save button.
  1. Click on the Mapping details tabsheet to enter the details of map header entries.
  1. In the Map Header entries we enter the source and destination DDIC structures.

The following entries can be made for the source and destinations

  1. Choose Save to save the Map Header.

NoteIf mapping has to be done on the Data Element level go to the Map Structure fields tabsheet.

  1. Choosing Save would create map entries in the tables on Data Element level. To view the result of the Data Element mapping click on the Map Fields Details tabsheet.
  2. If map entries other than the Data Element need be done or functions and conditions for the mapping need to be applied, click on the Map Fields Details tabsheet.

Following are the descriptions of each column in the control:

This graphic is explained in the accompanying text The following are the valid functions that can be applied in source field.

  1. Choose Save when finished with editing of mapping field details
  2. Click on the List of mapping tabsheet to go to the initial screen.

Now our mapping is defined and ready for generation.

  1. Click on the Single Map Generate button to generate code for the newly created mapping.

You can view error during code generation by pressing the Error Status button after code generation.

NoteThe Generated code would be in the following function module.

Forward Mapping Code : <Customer Name space>_<Map Name>F_SMP

Reverse Mapping Code : <Customer Name space>_<Map Name>R_SMP

example for Map Name SALES_DATA defined in Structure Mapper front-end tab List of Mappings,

the generated function would be under the following names in SFA system:

Forward Mapping: /1CRMG0/SMOT_SALES_DATAF_SMP

Reverse Mapping: /1CRMG0/SMOT_SALES_DATAR_SMP

where

1CRMG0 : customer namespace,

SALES_DATA : Map Name

F/ R : Forward / Reverse

Leaving content frame