Ansicht
Dokumentation
W_SMT_WEBUI_MAINT - Create and Edit Mappings
CL_GUI_FRONTEND_SERVICES - Frontend Services CPI1466 during BackupThis documentation is copyright by SAP AG.
In this IMG activity you can use the Service Mapping Tool (SMT) to create new
The SMT is a program that you can use in ABAP to fill a target structure with a set of source structures. The following are supported: Simple mappings, mappings with field transformations, complex transformations and field checks. Possible applications of the tool include: Preparation of data for further actions, conversion of Enterprise Service Data into SAP-internal format and vice versa. For the latter purpose, special requirements for service implementations are supported such as an extended XML handling or field checks.
You must specify all mapping operations in one Customizing. This way semantic information is not hidden in ABAP code but clearly specified in a repository.
The SMT carries out standard mappings before extensions. Any activated checks on the overwriting of fields are never active for extensions.
The SMT includes the following functions in order to fill a target structure from multiple source structures:
- Simple mappings: The contents of a source field are copied into the target field. The relationship between source and target fields is 1 : 1.
- Simple mappings with field transformations: These are mappings such as simple mappings, however, source values are converted by way of a transformation method. The relationship between source and target fields is 1 : 1.
- Transformation methods: Source fields are used as input parameters of a transformation method. The exporting parameters of this method are mapped to the target fields. The relationship between source and target fields is m : n.
- Conditions: A transformation can depend on the fulfillment of a condition.
- Field checks: You can specify checks for initial and fixed values. More complex field checks can be carried out by calling up check methods.
- Extended XML handling: Most business object APIs use change structures to display which fields are to be changed. Service implementations, in contrast, use field name tables in order to provide this information. The SMT can convert the tabular information into change structures.
Constraints
In each call of an SMT only one target structure variable is filled. If your input structure contains tables then your mapping program must read the source data line by line and transfer it to the SMT.
ROGBILLS - Synchronize billing plans CL_GUI_FRONTEND_SERVICES - Frontend Services
This documentation is copyright by SAP AG.
Length: 2976 Date: 20240523 Time: 154503 sap01-206 ( 67 ms )