SAP CMS_MAP_INS_CREATE Function Module for Create an Insurance
CMS_MAP_INS_CREATE is a standard cms map ins create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create 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 create FM, simply by entering the name CMS_MAP_INS_CREATE 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_CREATE 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_CREATE'"Create an Insurance.
EXPORTING
I_INS_CATEGORY = "Object Category
* I_TAB_INS_BP = "OMS - Business partner data
* I_TAB_INS_DOC = "OMS - Document data
* I_TAB_INS_VAL = "Value data
* I_TAB_INS_NOTES = "Text lines
I_INS_TYP = "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_ORG_UNIT_DATA = "Organization units data
* I_STR_AST_DATA = "Insurance - asset data
* I_STR_LIF_INS_DATA = "Life insurance data
* I_TAB_LIF_INS_PSN_DATA = "Insured persons data
IMPORTING
E_STR_INS_PKY_SKY = "Insurance primary key and secondary key
E_TAB_RETURN = "Return parameter table
IMPORTING Parameters details for CMS_MAP_INS_CREATE
I_INS_CATEGORY - Object Category
Data type: CMS_DTE_OMS_OBJ_CATOptional: No
Call by Reference: No ( called with pass by value option)
I_TAB_INS_BP - OMS - Business partner data
Data type: CMS_TAB_OMS_BP_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_INS_DOC - OMS - Document data
Data type: CMS_TAB_OMS_DOC_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_INS_VAL - Value data
Data type: CMS_TAB_OMS_VAL_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_INS_NOTES - Text lines
Data type: CMS_TAB_INS_NOTES_CRT_MAPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_INS_TYP - Insurance Type
Data type: CMS_DTE_INS_TYPEOptional: 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_MAPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_SYSTEM_STATUS - System statuses
Data type: CMS_TAB_INS_SYS_STAT_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_USER_STATUS - User Status
Data type: CMS_TAB_USR_STAT_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_STR_ORG_UNIT_DATA - Organization units data
Data type: CMS_STR_OMS_ORG_UNIT_MAPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_STR_AST_DATA - Insurance - asset data
Data type: CMS_STR_INS_AST_MAP_CRTOptional: 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_MAP_CRTOptional: 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_PERSON_MAP_CRTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CMS_MAP_INS_CREATE
E_STR_INS_PKY_SKY - Insurance primary key and secondary key
Data type: CMS_STR_INS_PKY_SKY_MAP_CRTOptional: No
Call by Reference: Yes
E_TAB_RETURN - Return parameter table
Data type: BAPIRET2_TOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for CMS_MAP_INS_CREATE 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_INS_PKY_SKY_MAP_CRT, " | |||
lv_i_tab_ins_bp | TYPE CMS_TAB_OMS_BP_MAP_CRT, " | |||
lv_i_tab_ins_doc | TYPE CMS_TAB_OMS_DOC_MAP_CRT, " | |||
lv_i_tab_ins_val | TYPE CMS_TAB_OMS_VAL_MAP_CRT, " | |||
lv_i_tab_ins_notes | TYPE CMS_TAB_INS_NOTES_CRT_MAP, " | |||
lv_i_ins_typ | TYPE CMS_DTE_INS_TYPE, " | |||
lv_e_tab_return | TYPE BAPIRET2_T, " | |||
lv_i_flg_testrun | TYPE CMS_DTE_FLG_TESTRUN_MAP, " | |||
lv_i_tab_system_status | TYPE CMS_TAB_INS_SYS_STAT_MAP_CRT, " | |||
lv_i_tab_user_status | TYPE CMS_TAB_USR_STAT_MAP_CRT, " | |||
lv_i_str_org_unit_data | TYPE CMS_STR_OMS_ORG_UNIT_MAP, " | |||
lv_i_str_ast_data | TYPE CMS_STR_INS_AST_MAP_CRT, " | |||
lv_i_str_lif_ins_data | TYPE CMS_STR_LIF_INS_MAP_CRT, " | |||
lv_i_tab_lif_ins_psn_data | TYPE CMS_TAB_INS_PERSON_MAP_CRT. " |
  CALL FUNCTION 'CMS_MAP_INS_CREATE' "Create an Insurance |
EXPORTING | ||
I_INS_CATEGORY | = lv_i_ins_category | |
I_TAB_INS_BP | = lv_i_tab_ins_bp | |
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_INS_TYP | = lv_i_ins_typ | |
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_ORG_UNIT_DATA | = lv_i_str_org_unit_data | |
I_STR_AST_DATA | = lv_i_str_ast_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 | |
IMPORTING | ||
E_STR_INS_PKY_SKY | = lv_e_str_ins_pky_sky | |
E_TAB_RETURN | = lv_e_tab_return | |
. " CMS_MAP_INS_CREATE |
ABAP code using 7.40 inline data declarations to call FM CMS_MAP_INS_CREATE
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.Search for further information about these or an SAP related objects