SAP BAPI_CMS_INS_CREATE Function Module for BAPI : Create Insurance









BAPI_CMS_INS_CREATE is a standard bapi cms 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 BAPI : Create 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 bapi cms ins create FM, simply by entering the name BAPI_CMS_INS_CREATE into the relevant SAP transaction such as SE37 or SE38.

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



Function BAPI_CMS_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 'BAPI_CMS_INS_CREATE'"BAPI : Create Insurance
EXPORTING
CATEGORY = "Object Category
INSURANCE_TYPE = "Insurance Type
* PROCESSEXTENSION = "Flag: Execute Customer Extensions (BAdIs) in BAPI
* TESTRUN = "Switch to Simulation Session for Write BAPIs
* ADMIN_DATA = "BAPI : Organizational Units and Bank area.
* ASSET_DATA = "BAPI : Structure for asset details
* COMMON_DATA = "BAPI: Rights Common Data
* INSURANCE_DATA = "BAPI : Life insurance data

IMPORTING
INSURANCE_IDENTIFIER = "BAPI : Insurance primary key and secondary key
INSURANCE_KEYS = "BAPI : Insurance primary key and secondary key

TABLES
* SYSTEM_STATUS = "System status
* INSURED_PERSON_DATA = "BAPI : Insured persons data
* BUSINESS_PARTNERS = "BAPI : Structure for Business Partner Link details
* DOCUMENTS = "BAPI : Structure for Document Service Link details
* VALUES_DATA = "BAPI : Structure for Value service link details
* NOTES = "BAPI : Structure for Notes created on Movables
* RETURN = "Return Parameter
.



IMPORTING Parameters details for BAPI_CMS_INS_CREATE

CATEGORY - Object Category

Data type: BAPICMS_STR_INS_PKY_SKY-CATEGORY
Optional: No
Call by Reference: No ( called with pass by value option)

INSURANCE_TYPE - Insurance Type

Data type: BAPICMS_STR_INS_PKY_SKY-TYPE
Optional: No
Call by Reference: No ( called with pass by value option)

PROCESSEXTENSION - Flag: Execute Customer Extensions (BAdIs) in BAPI

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

TESTRUN - Switch to Simulation Session for Write BAPIs

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

ADMIN_DATA - BAPI : Organizational Units and Bank area.

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

ASSET_DATA - BAPI : Structure for asset details

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

COMMON_DATA - BAPI: Rights Common Data

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

INSURANCE_DATA - BAPI : Life insurance data

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

EXPORTING Parameters details for BAPI_CMS_INS_CREATE

INSURANCE_IDENTIFIER - BAPI : Insurance primary key and secondary key

Data type: BAPICMS_STR_RIG_IDENTIFIER_GET-RIG_IDENTIFIER
Optional: No
Call by Reference: No ( called with pass by value option)

INSURANCE_KEYS - BAPI : Insurance primary key and secondary key

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

TABLES Parameters details for BAPI_CMS_INS_CREATE

SYSTEM_STATUS - System status

Data type: BAPICMS_STR_INS_SYS_STAT_CRT
Optional: Yes
Call by Reference: Yes

INSURED_PERSON_DATA - BAPI : Insured persons data

Data type: BAPICMS_STR_INS_PERSON_CRT
Optional: Yes
Call by Reference: Yes

BUSINESS_PARTNERS - BAPI : Structure for Business Partner Link details

Data type: BAPICMS_STR_OMS_BP_CRT
Optional: Yes
Call by Reference: Yes

DOCUMENTS - BAPI : Structure for Document Service Link details

Data type: BAPICMS_STR_OMS_DOC_CRT
Optional: Yes
Call by Reference: Yes

VALUES_DATA - BAPI : Structure for Value service link details

Data type: BAPICMS_STR_OMS_VALUES_CRT
Optional: Yes
Call by Reference: Yes

NOTES - BAPI : Structure for Notes created on Movables

Data type: BAPICMS_STR_OMS_NOTES_CRT
Optional: Yes
Call by Reference: Yes

RETURN - Return Parameter

Data type: BAPIRET2
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for BAPI_CMS_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_category  TYPE BAPICMS_STR_INS_PKY_SKY-CATEGORY, "   
lt_system_status  TYPE STANDARD TABLE OF BAPICMS_STR_INS_SYS_STAT_CRT, "   
lv_insurance_identifier  TYPE BAPICMS_STR_RIG_IDENTIFIER_GET-RIG_IDENTIFIER, "   
lv_insurance_keys  TYPE BAPICMS_STR_INS_PKY_SKY, "   
lv_insurance_type  TYPE BAPICMS_STR_INS_PKY_SKY-TYPE, "   
lt_insured_person_data  TYPE STANDARD TABLE OF BAPICMS_STR_INS_PERSON_CRT, "   
lv_processextension  TYPE BAPI_CMS_STR_CENTRAL-PROCESSEXTENSION, "   
lt_business_partners  TYPE STANDARD TABLE OF BAPICMS_STR_OMS_BP_CRT, "   
lv_testrun  TYPE BAPI_CMS_STR_CENTRAL-TESTRUN, "   
lt_documents  TYPE STANDARD TABLE OF BAPICMS_STR_OMS_DOC_CRT, "   
lv_admin_data  TYPE BAPICMS_STR_OMS_ORGUNIT_CRT, "   
lt_values_data  TYPE STANDARD TABLE OF BAPICMS_STR_OMS_VALUES_CRT, "   
lt_notes  TYPE STANDARD TABLE OF BAPICMS_STR_OMS_NOTES_CRT, "   
lv_asset_data  TYPE BAPICMS_STR_INS_AST_CRT, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_common_data  TYPE BAPICMS_STR_INS_COMMON_CRT, "   
lv_insurance_data  TYPE BAPICMS_STR_LIF_INS_CRT. "   

  CALL FUNCTION 'BAPI_CMS_INS_CREATE'  "BAPI : Create Insurance
    EXPORTING
         CATEGORY = lv_category
         INSURANCE_TYPE = lv_insurance_type
         PROCESSEXTENSION = lv_processextension
         TESTRUN = lv_testrun
         ADMIN_DATA = lv_admin_data
         ASSET_DATA = lv_asset_data
         COMMON_DATA = lv_common_data
         INSURANCE_DATA = lv_insurance_data
    IMPORTING
         INSURANCE_IDENTIFIER = lv_insurance_identifier
         INSURANCE_KEYS = lv_insurance_keys
    TABLES
         SYSTEM_STATUS = lt_system_status
         INSURED_PERSON_DATA = lt_insured_person_data
         BUSINESS_PARTNERS = lt_business_partners
         DOCUMENTS = lt_documents
         VALUES_DATA = lt_values_data
         NOTES = lt_notes
         RETURN = lt_return
. " BAPI_CMS_INS_CREATE




ABAP code using 7.40 inline data declarations to call FM BAPI_CMS_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.

"SELECT single CATEGORY FROM BAPICMS_STR_INS_PKY_SKY INTO @DATA(ld_category).
 
 
"SELECT single RIG_IDENTIFIER FROM BAPICMS_STR_RIG_IDENTIFIER_GET INTO @DATA(ld_insurance_identifier).
 
 
"SELECT single TYPE FROM BAPICMS_STR_INS_PKY_SKY INTO @DATA(ld_insurance_type).
 
 
"SELECT single PROCESSEXTENSION FROM BAPI_CMS_STR_CENTRAL INTO @DATA(ld_processextension).
 
 
"SELECT single TESTRUN FROM BAPI_CMS_STR_CENTRAL INTO @DATA(ld_testrun).
 
 
 
 
 
 
 
 
 


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!