Creating a Mapping 

Procedure

  1. Invoke the transaction /nsmap.
  2. Front-end for Structure Mapper gets invoked on the desktop.

  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. Press on the Save button to save the Map Header.

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

  1. Pressing the Save button 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:

 The following are the valid functions that can be applied in source field.

  1. Click on the Save button 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.

The 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

e.g. 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: SMOT_SALES_DATAF_SMP

Reverse Mapping: SMOT_SALES_DATAR_SMP