SAP BAPI_INSOBJECT_GETLIST Function Module for Insurance Object: Display List for Search Criteria









BAPI_INSOBJECT_GETLIST is a standard bapi insobject getlist SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Insurance Object: Display List for Search Criteria 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 insobject getlist FM, simply by entering the name BAPI_INSOBJECT_GETLIST 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: 21-Aug-2007
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_INSOBJECT_GETLIST 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_INSOBJECT_GETLIST'"Insurance Object: Display List for Search Criteria
EXPORTING
* MAXROWS = "Maximum Number of Lines of Hits

TABLES
* RANGEINSOBJECT = "Ranges Structure for Insurance Object Number
* RANGEINSOBJECTCATEGORY = "Ranges Structure for Insurance Object Category
* RANGEINSOBJECTEXTERNAL = "Ranges Structure for External Insurance Object Number
* RANGEPARTNER = "Ranges Structure for Business Partner Number
* RANGEACCOUNT = "Ranges Structure for Contract Account Number
* EXTENSIONIN = "ExtensionIn (Customer Extensions)
* INSOBJECTLIST = "List Output
* EXTENSIONOUT = "ExtensionOut (Customer Extensions)
* RETURN = "Returns
.



IMPORTING Parameters details for BAPI_INSOBJECT_GETLIST

MAXROWS - Maximum Number of Lines of Hits

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

TABLES Parameters details for BAPI_INSOBJECT_GETLIST

RANGEINSOBJECT - Ranges Structure for Insurance Object Number

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

RANGEINSOBJECTCATEGORY - Ranges Structure for Insurance Object Category

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

RANGEINSOBJECTEXTERNAL - Ranges Structure for External Insurance Object Number

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

RANGEPARTNER - Ranges Structure for Business Partner Number

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

RANGEACCOUNT - Ranges Structure for Contract Account Number

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

EXTENSIONIN - ExtensionIn (Customer Extensions)

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

INSOBJECTLIST - List Output

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

EXTENSIONOUT - ExtensionOut (Customer Extensions)

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

RETURN - Returns

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

Copy and paste ABAP code example for BAPI_INSOBJECT_GETLIST 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_maxrows  TYPE BAPI_INSOBJECT_CONTROL-MAXROWS, "   
lt_rangeinsobject  TYPE STANDARD TABLE OF BAPI_RANGE_INSOBJECT, "   
lt_rangeinsobjectcategory  TYPE STANDARD TABLE OF BAPI_RANGE_INSOBJECTTYP, "   
lt_rangeinsobjectexternal  TYPE STANDARD TABLE OF BAPI_RANGE_INSOBJECTEXT, "   
lt_rangepartner  TYPE STANDARD TABLE OF BAPIFKKR_GPART, "   
lt_rangeaccount  TYPE STANDARD TABLE OF BAPIFKKR_VKONT, "   
lt_extensionin  TYPE STANDARD TABLE OF BAPIPAREX, "   
lt_insobjectlist  TYPE STANDARD TABLE OF BAPI_INSOBJECT_LIST, "   
lt_extensionout  TYPE STANDARD TABLE OF BAPIPAREX, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2. "   

  CALL FUNCTION 'BAPI_INSOBJECT_GETLIST'  "Insurance Object: Display List for Search Criteria
    EXPORTING
         MAXROWS = lv_maxrows
    TABLES
         RANGEINSOBJECT = lt_rangeinsobject
         RANGEINSOBJECTCATEGORY = lt_rangeinsobjectcategory
         RANGEINSOBJECTEXTERNAL = lt_rangeinsobjectexternal
         RANGEPARTNER = lt_rangepartner
         RANGEACCOUNT = lt_rangeaccount
         EXTENSIONIN = lt_extensionin
         INSOBJECTLIST = lt_insobjectlist
         EXTENSIONOUT = lt_extensionout
         RETURN = lt_return
. " BAPI_INSOBJECT_GETLIST




ABAP code using 7.40 inline data declarations to call FM BAPI_INSOBJECT_GETLIST

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 MAXROWS FROM BAPI_INSOBJECT_CONTROL INTO @DATA(ld_maxrows).
 
 
 
 
 
 
 
 
 
 


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!