SAP BAPI_CD_INSOBJ_CREATE Function Module for OBSOLETE: Use BAPI_INSOBJECT_CREATE









BAPI_CD_INSOBJ_CREATE is a standard bapi cd insobj 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 OBSOLETE: Use BAPI_INSOBJECT_CREATE 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 cd insobj create FM, simply by entering the name BAPI_CD_INSOBJ_CREATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: FSCDMAD_IO_BAPI
Program Name: SAPLFSCDMAD_IO_BAPI
Main Program: SAPLFSCDMAD_IO_BAPI
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_CD_INSOBJ_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_CD_INSOBJ_CREATE'"OBSOLETE: Use BAPI_INSOBJECT_CREATE
EXPORTING
INSOBJECTDATA = "FS-CD: BAPI Structure for Insurance Object Data (Creation)
INSOBJECTDATAX = "FS-CD: BAPI Change Structure for IO Data (Creation)
* TESTRUN = "Switch to Simulation Mode for Write BAPIs
* WRITECHANGEDOCUMENTS = 'X' "Indicates Whether Change Documents Are to Be Created
* NODATA = '/' "NODATA Indicator

IMPORTING
INSOBJECTNUMBER = "Identification for an Insurance Object

TABLES
INSOBJECTPARTNER = "FS-CD: BAPI Structure for IO Partner Data (Creation)
* INSOBJECTPARTNERBROKERX = "FS-CD: BAPI Change Structure IO Partner Broker Data
* INSOBJECTPARTNERPAY = "FS-CD: BAPI Structure for Ins. Obj. Outg. Payment Data
* INSOBJECTPARTNERPAYX = "FS-CD: BAPI Change Structure for IO Outg. Payment Data
RETURN = "Return Parameter(s)
* EXTENSIONIN = "Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
INSOBJECTPARTNERX = "FS-CD: BAPI Change Structure for IO Partner Data (Creation)
* INSOBJECTPARTNERCORR = "FS-CD: BAPI Structure IO Partner Correspondence Data
* INSOBJECTPARTNERCORRX = "FS-CD: BAPI Change Structure IO Partner Correspondence Data
* INSOBJECTPARTNERLOCK = "FS-CD: BAPI Structure Insurance Object-Partner Lock Data
* INSOBJECTPARTNERLOCKX = "FS-CD: BAPI Change Structure IO Partner Lock Data
* INSOBJECTPARTNERBRKASSGN = "FS-CD: BAPI Structure IO Partner Broker Assignment (Creation)
* INSOBJECTPARTNERBRKASSGNX = "FS-CD: BAPI Change Structure IO Partner Broker Assignment (Creation)
* INSOBJECTPARTNERBROKER = "FS-CD: BAPI Structure Insurance Object-Partner Broker Data
.



IMPORTING Parameters details for BAPI_CD_INSOBJ_CREATE

INSOBJECTDATA - FS-CD: BAPI Structure for Insurance Object Data (Creation)

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

INSOBJECTDATAX - FS-CD: BAPI Change Structure for IO Data (Creation)

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

TESTRUN - Switch to Simulation Mode for Write BAPIs

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

WRITECHANGEDOCUMENTS - Indicates Whether Change Documents Are to Be Created

Data type: BAPI_CD_INSOBJ_CONTROL-WRITECHANGEDOCUMENTS
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

NODATA - NODATA Indicator

Data type: BAPI_CD_INSOBJ_CONTROL-NODATA
Default: '/'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for BAPI_CD_INSOBJ_CREATE

INSOBJECTNUMBER - Identification for an Insurance Object

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

TABLES Parameters details for BAPI_CD_INSOBJ_CREATE

INSOBJECTPARTNER - FS-CD: BAPI Structure for IO Partner Data (Creation)

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

INSOBJECTPARTNERBROKERX - FS-CD: BAPI Change Structure IO Partner Broker Data

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

INSOBJECTPARTNERPAY - FS-CD: BAPI Structure for Ins. Obj. Outg. Payment Data

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

INSOBJECTPARTNERPAYX - FS-CD: BAPI Change Structure for IO Outg. Payment Data

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

RETURN - Return Parameter(s)

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

EXTENSIONIN - Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT

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

INSOBJECTPARTNERX - FS-CD: BAPI Change Structure for IO Partner Data (Creation)

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

INSOBJECTPARTNERCORR - FS-CD: BAPI Structure IO Partner Correspondence Data

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

INSOBJECTPARTNERCORRX - FS-CD: BAPI Change Structure IO Partner Correspondence Data

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

INSOBJECTPARTNERLOCK - FS-CD: BAPI Structure Insurance Object-Partner Lock Data

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

INSOBJECTPARTNERLOCKX - FS-CD: BAPI Change Structure IO Partner Lock Data

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

INSOBJECTPARTNERBRKASSGN - FS-CD: BAPI Structure IO Partner Broker Assignment (Creation)

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

INSOBJECTPARTNERBRKASSGNX - FS-CD: BAPI Change Structure IO Partner Broker Assignment (Creation)

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

INSOBJECTPARTNERBROKER - FS-CD: BAPI Structure Insurance Object-Partner Broker Data

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

Copy and paste ABAP code example for BAPI_CD_INSOBJ_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_insobjectdata  TYPE BAPICD_INSOBJ, "   
lv_insobjectnumber  TYPE BAPICD_INSOBJ-INSOBJ_NUMBER, "   
lt_insobjectpartner  TYPE STANDARD TABLE OF BAPICD_INSOBJ_PARTNER, "   
lt_insobjectpartnerbrokerx  TYPE STANDARD TABLE OF BAPICD_INSOBJ_PARTNER_BROKERX, "   
lt_insobjectpartnerpay  TYPE STANDARD TABLE OF BAPICD_INSOBJ_PARTNER_PAY, "   
lt_insobjectpartnerpayx  TYPE STANDARD TABLE OF BAPICD_INSOBJ_PARTNER_PAYX, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lt_extensionin  TYPE STANDARD TABLE OF BAPIPAREX, "   
lv_insobjectdatax  TYPE BAPICD_INSOBJX, "   
lt_insobjectpartnerx  TYPE STANDARD TABLE OF BAPICD_INSOBJ_PARTNERX, "   
lv_testrun  TYPE BAPICTRACAUX-TESTRUN, "   
lt_insobjectpartnercorr  TYPE STANDARD TABLE OF BAPICD_INSOBJ_PARTNER_CORR, "   
lv_writechangedocuments  TYPE BAPI_CD_INSOBJ_CONTROL-WRITECHANGEDOCUMENTS, "   'X'
lt_insobjectpartnercorrx  TYPE STANDARD TABLE OF BAPICD_INSOBJ_PARTNER_CORRX, "   
lv_nodata  TYPE BAPI_CD_INSOBJ_CONTROL-NODATA, "   '/'
lt_insobjectpartnerlock  TYPE STANDARD TABLE OF BAPICD_INSOBJ_PARTNER_LOCK, "   
lt_insobjectpartnerlockx  TYPE STANDARD TABLE OF BAPICD_INSOBJ_PARTNER_LOCKX, "   
lt_insobjectpartnerbrkassgn  TYPE STANDARD TABLE OF BAPICD_INSOBJ_PARTNER_BRK_A, "   
lt_insobjectpartnerbrkassgnx  TYPE STANDARD TABLE OF BAPICD_INSOBJ_PARTNER_BRK_AX, "   
lt_insobjectpartnerbroker  TYPE STANDARD TABLE OF BAPICD_INSOBJ_PARTNER_BROKER. "   

  CALL FUNCTION 'BAPI_CD_INSOBJ_CREATE'  "OBSOLETE: Use BAPI_INSOBJECT_CREATE
    EXPORTING
         INSOBJECTDATA = lv_insobjectdata
         INSOBJECTDATAX = lv_insobjectdatax
         TESTRUN = lv_testrun
         WRITECHANGEDOCUMENTS = lv_writechangedocuments
         NODATA = lv_nodata
    IMPORTING
         INSOBJECTNUMBER = lv_insobjectnumber
    TABLES
         INSOBJECTPARTNER = lt_insobjectpartner
         INSOBJECTPARTNERBROKERX = lt_insobjectpartnerbrokerx
         INSOBJECTPARTNERPAY = lt_insobjectpartnerpay
         INSOBJECTPARTNERPAYX = lt_insobjectpartnerpayx
         RETURN = lt_return
         EXTENSIONIN = lt_extensionin
         INSOBJECTPARTNERX = lt_insobjectpartnerx
         INSOBJECTPARTNERCORR = lt_insobjectpartnercorr
         INSOBJECTPARTNERCORRX = lt_insobjectpartnercorrx
         INSOBJECTPARTNERLOCK = lt_insobjectpartnerlock
         INSOBJECTPARTNERLOCKX = lt_insobjectpartnerlockx
         INSOBJECTPARTNERBRKASSGN = lt_insobjectpartnerbrkassgn
         INSOBJECTPARTNERBRKASSGNX = lt_insobjectpartnerbrkassgnx
         INSOBJECTPARTNERBROKER = lt_insobjectpartnerbroker
. " BAPI_CD_INSOBJ_CREATE




ABAP code using 7.40 inline data declarations to call FM BAPI_CD_INSOBJ_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 INSOBJ_NUMBER FROM BAPICD_INSOBJ INTO @DATA(ld_insobjectnumber).
 
 
 
 
 
 
 
 
 
"SELECT single TESTRUN FROM BAPICTRACAUX INTO @DATA(ld_testrun).
 
 
"SELECT single WRITECHANGEDOCUMENTS FROM BAPI_CD_INSOBJ_CONTROL INTO @DATA(ld_writechangedocuments).
DATA(ld_writechangedocuments) = 'X'.
 
 
"SELECT single NODATA FROM BAPI_CD_INSOBJ_CONTROL INTO @DATA(ld_nodata).
DATA(ld_nodata) = '/'.
 
 
 
 
 
 


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!