You can use the Service Mapping Tool (SMT) to adjust the mapping of FS-PM source structures to FS-CM target structures for the default mapping supplied by SAP (for other lines of insurance, for example). The Service Mapping Tool is called and executed in Business Add-In BADI_ICL_POLS_IMPORT_POLS
in the POLICY_LOAD
method.
Note
The coding is not directly in the BAdI method POLICY_LOAD
, but in the method CL_ICL_POLICY_MAP_2_OUT
-> CTR_BY_ID
.
To call and configure the Service Mapping Tool, perform the Customizing activities in the SAP Customizing Implementation Guide
under (you call the actual Service Mapping Tool by means of Customizing activity Create and Edit Mappings
).
Levels of the Service Mapping Tool (SMT) and Their Relevance for SAP Claims Management
Mapping
Mappings (work areas) form the top level of the SMT. You define them for various applications and processes. In the sample implementation, SAP provides the mapping IF_ICL_POLICY_OUT-CTR_BY_ID.
Mapping step
Each mapping comprises one or several mapping steps. In these mapping steps you define which source structures the system maps to a certain target structure. Keep in mind that you can define several source structures for each mapping step but only one target structure.
In the sample implementation, SAP provides several mapping steps.
Transformation
Each mapping step contains one or more transformations. A transformation describes the mapping of fields of a source structure to certain fields of the target structure. Keep in mind that when a mapping step is called later on in the application, the system always processes all transformations according to their sequence.
The SMT has the following transformation types:
Field mapping
The system then maps the fields of a source structure without any further check or condition to fields of the target structure.
Complex transformation
With a complex transformation, you define a transformation method of a transformation class. Before the system then maps a field of the source structure to the field of the target structure, it checks the field value of the source structure and changes it, depending on the transformation method. For more information, see Transformation Methods.
Example
You convert an external date format to the date format of the target field.
With a complex transformation you can also define the condition under which the system executes this transformation. For this, define a condition method of a condition class. For more information, see Condition Methods.
Example
With a transformation you define the condition that the system only executes the transformation if a certain line of insurance is involved.
In the sample implementation, SAP delivers the transformation class CL_ICL_SMT_TRANSFORMATION for a complex transformation, and the condition class CL_ICL_SMT_CONDITION with corresponding methods.
Coding Example from Default Mapping
The following graphic shows an extract of the coding that is called using method POLICY_LOAD
. It shows how an instance of the mapping tool is created and how a mapping step is called.
Coding Example