SAP Function Modules

CMS_MAP_INS_CREATE SAP Function module - Create an Insurance







CMS_MAP_INS_CREATE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name CMS_MAP_INS_CREATE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: CMS_MAP_INS
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM CMS_MAP_INS_CREATE - CMS MAP INS CREATE





CALL FUNCTION 'CMS_MAP_INS_CREATE' "Create an Insurance
  EXPORTING
    i_ins_category =            " cms_dte_oms_obj_cat  Object Category
    i_ins_typ =                 " cms_dte_ins_type  Insurance Type
*   i_flg_testrun =             " cms_dte_flg_testrun_map  Indiacates that it is a test-run
*   i_tab_system_status =       " cms_tab_ins_sys_stat_map_crt  System statuses
*   i_tab_user_status =         " cms_tab_usr_stat_map_crt  User Status
*   i_str_org_unit_data =       " cms_str_oms_org_unit_map  Organization units data
*   i_str_ast_data =            " cms_str_ins_ast_map_crt  Insurance - asset data
*   i_str_lif_ins_data =        " cms_str_lif_ins_map_crt  Life insurance data
*   i_tab_lif_ins_psn_data =    " cms_tab_ins_person_map_crt  Insured persons data
*   i_tab_ins_bp =              " cms_tab_oms_bp_map_crt  OMS - Business partner data
*   i_tab_ins_doc =             " cms_tab_oms_doc_map_crt  OMS - Document data
*   i_tab_ins_val =             " cms_tab_oms_val_map_crt  Value data
*   i_tab_ins_notes =           " cms_tab_ins_notes_crt_map  Text lines
  IMPORTING
    e_str_ins_pky_sky =         " cms_str_ins_pky_sky_map_crt  Insurance primary key and secondary key
    e_tab_return =              " bapiret2_t    Return parameter table
    .  "  CMS_MAP_INS_CREATE

ABAP code example for Function Module CMS_MAP_INS_CREATE





The ABAP code below is a full code listing to execute function module CMS_MAP_INS_CREATE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_e_str_ins_pky_sky  TYPE CMS_STR_INS_PKY_SKY_MAP_CRT ,
ld_e_tab_return  TYPE BAPIRET2_T .

DATA(ld_i_ins_category) = 'Check type of data required'.
DATA(ld_i_ins_typ) = 'Check type of data required'.
DATA(ld_i_flg_testrun) = 'Check type of data required'.
DATA(ld_i_tab_system_status) = 'some text here'.
DATA(ld_i_tab_user_status) = 'some text here'.
DATA(ld_i_str_org_unit_data) = 'some text here'.
DATA(ld_i_str_ast_data) = 'some text here'.
DATA(ld_i_str_lif_ins_data) = 'some text here'.
DATA(ld_i_tab_lif_ins_psn_data) = 'some text here'.
DATA(ld_i_tab_ins_bp) = 'some text here'.
DATA(ld_i_tab_ins_doc) = 'some text here'.
DATA(ld_i_tab_ins_val) = 'some text here'.
DATA(ld_i_tab_ins_notes) = 'some text here'. . CALL FUNCTION 'CMS_MAP_INS_CREATE' EXPORTING i_ins_category = ld_i_ins_category i_ins_typ = ld_i_ins_typ * i_flg_testrun = ld_i_flg_testrun * i_tab_system_status = ld_i_tab_system_status * i_tab_user_status = ld_i_tab_user_status * i_str_org_unit_data = ld_i_str_org_unit_data * i_str_ast_data = ld_i_str_ast_data * i_str_lif_ins_data = ld_i_str_lif_ins_data * i_tab_lif_ins_psn_data = ld_i_tab_lif_ins_psn_data * i_tab_ins_bp = ld_i_tab_ins_bp * i_tab_ins_doc = ld_i_tab_ins_doc * i_tab_ins_val = ld_i_tab_ins_val * i_tab_ins_notes = ld_i_tab_ins_notes IMPORTING e_str_ins_pky_sky = ld_e_str_ins_pky_sky e_tab_return = ld_e_tab_return . " CMS_MAP_INS_CREATE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_e_str_ins_pky_sky  TYPE CMS_STR_INS_PKY_SKY_MAP_CRT ,
ld_i_ins_category  TYPE CMS_DTE_OMS_OBJ_CAT ,
ld_e_tab_return  TYPE BAPIRET2_T ,
ld_i_ins_typ  TYPE CMS_DTE_INS_TYPE ,
ld_i_flg_testrun  TYPE CMS_DTE_FLG_TESTRUN_MAP ,
ld_i_tab_system_status  TYPE CMS_TAB_INS_SYS_STAT_MAP_CRT ,
ld_i_tab_user_status  TYPE CMS_TAB_USR_STAT_MAP_CRT ,
ld_i_str_org_unit_data  TYPE CMS_STR_OMS_ORG_UNIT_MAP ,
ld_i_str_ast_data  TYPE CMS_STR_INS_AST_MAP_CRT ,
ld_i_str_lif_ins_data  TYPE CMS_STR_LIF_INS_MAP_CRT ,
ld_i_tab_lif_ins_psn_data  TYPE CMS_TAB_INS_PERSON_MAP_CRT ,
ld_i_tab_ins_bp  TYPE CMS_TAB_OMS_BP_MAP_CRT ,
ld_i_tab_ins_doc  TYPE CMS_TAB_OMS_DOC_MAP_CRT ,
ld_i_tab_ins_val  TYPE CMS_TAB_OMS_VAL_MAP_CRT ,
ld_i_tab_ins_notes  TYPE CMS_TAB_INS_NOTES_CRT_MAP .

ld_i_ins_category = 'some text here'.
ld_i_ins_typ = 'some text here'.
ld_i_flg_testrun = 'some text here'.
ld_i_tab_system_status = 'some text here'.
ld_i_tab_user_status = 'some text here'.
ld_i_str_org_unit_data = 'some text here'.
ld_i_str_ast_data = 'some text here'.
ld_i_str_lif_ins_data = 'some text here'.
ld_i_tab_lif_ins_psn_data = 'some text here'.
ld_i_tab_ins_bp = 'some text here'.
ld_i_tab_ins_doc = 'some text here'.
ld_i_tab_ins_val = 'some text here'.
ld_i_tab_ins_notes = 'some text here'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CMS_MAP_INS_CREATE or its description.