SAP CMS_MAP_INS_CHANGE Function Module for Change an Insurance









CMS_MAP_INS_CHANGE is a standard cms map ins change SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Change an Insurance processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for cms map ins change FM, simply by entering the name CMS_MAP_INS_CHANGE into the relevant SAP transaction such as SE37 or SE38.

Function Group: CMS_MAP_INS
Program Name: SAPLCMS_MAP_INS
Main Program: SAPLCMS_MAP_INS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CMS_MAP_INS_CHANGE pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'CMS_MAP_INS_CHANGE'"Change an Insurance
EXPORTING
I_INS_CATEGORY = "Object Category
* I_TAB_INS_DOC = "OMS - Document data
* I_TAB_INS_VAL = "Value data
* I_TAB_INS_NOTES = "Text lines
* I_BUPR_ID = "Business Process ID
* I_BUPR_TYPE_CODE = '900002' "Business Process Type Code
I_STR_RIG_KEY = "Insurance Type
* I_FLG_TESTRUN = "Indiacates that it is a test-run
* I_TAB_SYSTEM_STATUS = "System statuses
* I_TAB_USER_STATUS = "User Status
* I_STR_ASSET_DATA = "Insurance - asset data
* I_STR_LIF_INS_DATA = "Life insurance data
* I_TAB_LIF_INS_PSN_DATA = "Insured persons data
* I_TAB_INS_BP = "OMS - Business partner data

IMPORTING
E_STR_INS_PKY_SKY = "Rights PKy SKy mapping
E_TAB_RETURN = "Return parameter table
.



IMPORTING Parameters details for CMS_MAP_INS_CHANGE

I_INS_CATEGORY - Object Category

Data type: CMS_DTE_OMS_OBJ_CAT
Optional: No
Call by Reference: No ( called with pass by value option)

I_TAB_INS_DOC - OMS - Document data

Data type: CMS_TAB_RIG_DOC_MAP_CHG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TAB_INS_VAL - Value data

Data type: CMS_TAB_RIG_VAL_MAP_CHG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TAB_INS_NOTES - Text lines

Data type: CMS_TAB_RIG_TXT_LINES_MAP_CHG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BUPR_ID - Business Process ID

Data type: CMS_DTE_BUPR_ID
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BUPR_TYPE_CODE - Business Process Type Code

Data type: CMS_DTE_BUPR_TYP_CODE
Default: '900002'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_STR_RIG_KEY - Insurance Type

Data type: CMS_STR_RIG_PKY_SKY_MAP
Optional: No
Call by Reference: No ( called with pass by value option)

I_FLG_TESTRUN - Indiacates that it is a test-run

Data type: CMS_DTE_FLG_TESTRUN_MAP
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TAB_SYSTEM_STATUS - System statuses

Data type: CMS_TAB_RIG_SYS_STAT_MAP
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TAB_USER_STATUS - User Status

Data type: CMS_TAB_RIG_USR_STAT_MAP
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_STR_ASSET_DATA - Insurance - asset data

Data type: CMS_STR_RIG_AST_MAP_CHG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_STR_LIF_INS_DATA - Life insurance data

Data type: CMS_STR_LIF_INS_DATA_MAP_CHG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TAB_LIF_INS_PSN_DATA - Insured persons data

Data type: CMS_TAB_INS_PSN_DATA_MAP_CHG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TAB_INS_BP - OMS - Business partner data

Data type: CMS_TAB_RIG_BP_MAP_CHG
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CMS_MAP_INS_CHANGE

E_STR_INS_PKY_SKY - Rights PKy SKy mapping

Data type: CMS_STR_RIG_PKY_SKY_MAP
Optional: No
Call by Reference: Yes

E_TAB_RETURN - Return parameter table

Data type: BAPIRET2_T
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CMS_MAP_INS_CHANGE Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_i_ins_category  TYPE CMS_DTE_OMS_OBJ_CAT, "   
lv_e_str_ins_pky_sky  TYPE CMS_STR_RIG_PKY_SKY_MAP, "   
lv_i_tab_ins_doc  TYPE CMS_TAB_RIG_DOC_MAP_CHG, "   
lv_i_tab_ins_val  TYPE CMS_TAB_RIG_VAL_MAP_CHG, "   
lv_i_tab_ins_notes  TYPE CMS_TAB_RIG_TXT_LINES_MAP_CHG, "   
lv_i_bupr_id  TYPE CMS_DTE_BUPR_ID, "   
lv_i_bupr_type_code  TYPE CMS_DTE_BUPR_TYP_CODE, "   '900002'
lv_e_tab_return  TYPE BAPIRET2_T, "   
lv_i_str_rig_key  TYPE CMS_STR_RIG_PKY_SKY_MAP, "   
lv_i_flg_testrun  TYPE CMS_DTE_FLG_TESTRUN_MAP, "   
lv_i_tab_system_status  TYPE CMS_TAB_RIG_SYS_STAT_MAP, "   
lv_i_tab_user_status  TYPE CMS_TAB_RIG_USR_STAT_MAP, "   
lv_i_str_asset_data  TYPE CMS_STR_RIG_AST_MAP_CHG, "   
lv_i_str_lif_ins_data  TYPE CMS_STR_LIF_INS_DATA_MAP_CHG, "   
lv_i_tab_lif_ins_psn_data  TYPE CMS_TAB_INS_PSN_DATA_MAP_CHG, "   
lv_i_tab_ins_bp  TYPE CMS_TAB_RIG_BP_MAP_CHG. "   

  CALL FUNCTION 'CMS_MAP_INS_CHANGE'  "Change an Insurance
    EXPORTING
         I_INS_CATEGORY = lv_i_ins_category
         I_TAB_INS_DOC = lv_i_tab_ins_doc
         I_TAB_INS_VAL = lv_i_tab_ins_val
         I_TAB_INS_NOTES = lv_i_tab_ins_notes
         I_BUPR_ID = lv_i_bupr_id
         I_BUPR_TYPE_CODE = lv_i_bupr_type_code
         I_STR_RIG_KEY = lv_i_str_rig_key
         I_FLG_TESTRUN = lv_i_flg_testrun
         I_TAB_SYSTEM_STATUS = lv_i_tab_system_status
         I_TAB_USER_STATUS = lv_i_tab_user_status
         I_STR_ASSET_DATA = lv_i_str_asset_data
         I_STR_LIF_INS_DATA = lv_i_str_lif_ins_data
         I_TAB_LIF_INS_PSN_DATA = lv_i_tab_lif_ins_psn_data
         I_TAB_INS_BP = lv_i_tab_ins_bp
    IMPORTING
         E_STR_INS_PKY_SKY = lv_e_str_ins_pky_sky
         E_TAB_RETURN = lv_e_tab_return
. " CMS_MAP_INS_CHANGE




ABAP code using 7.40 inline data declarations to call FM CMS_MAP_INS_CHANGE

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
DATA(ld_i_bupr_type_code) = '900002'.
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!