SAP BAPI_INSOBJECT_GETDETAIL Function Module for Insurance Object: Display Details
BAPI_INSOBJECT_GETDETAIL is a standard bapi insobject getdetail 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 Details 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 getdetail FM, simply by entering the name BAPI_INSOBJECT_GETDETAIL 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_GETDETAIL 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_GETDETAIL'"Insurance Object: Display Details.
EXPORTING
INSOBJECT = "Insurance Object Number
* PARTNER = "Business Partner Number
* PARTNEREXTERNAL = "Business Partner Number in External System
* VALIDFROM = "Valid from Date for Insurance Object in CHAR Format (YYYYMMDD)
IMPORTING
INSOBJECTDATA = "Header Data
TABLES
* INSOBJECTPARTNER = "Partner Data
* INSOBJECTPARTNERCORR = "Correspondence Data for Partner Relationship
* INSOBJECTPARTNERLOCK = "Lock Data for Partner Relationship
* INSOBJECTPARTNERBRKASSGN = "Data for Assignment of Broker to Partner Relationship
* INSOBJECTPARTNERBROKER = "Broker Data for Partner Relationship
* INSOBJECTPARTNERPAY = "Outgoing Payment Data for Partner Relationship
* INSOBJECTPARTNERWHV = "Valid Variable Withholding Tax Supplements
* RETURN = "Returns
* EXTENSIONOUT = "ExtensionOut (Customer Extensions)
IMPORTING Parameters details for BAPI_INSOBJECT_GETDETAIL
INSOBJECT - Insurance Object Number
Data type: BAPI_INSOBJECT_KEY-INSOBJECTOptional: No
Call by Reference: No ( called with pass by value option)
PARTNER - Business Partner Number
Data type: BAPI_INSOBJECT_KEY-PARTNEROptional: Yes
Call by Reference: No ( called with pass by value option)
PARTNEREXTERNAL - Business Partner Number in External System
Data type: BAPI_INSOBJECT_KEY-PARTNER_EXTOptional: Yes
Call by Reference: No ( called with pass by value option)
VALIDFROM - Valid from Date for Insurance Object in CHAR Format (YYYYMMDD)
Data type: BAPI_INSOBJECT_CONTROL-VALID_FROMOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_INSOBJECT_GETDETAIL
INSOBJECTDATA - Header Data
Data type: BAPI_INSOBJECT_H_DISPLAYOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_INSOBJECT_GETDETAIL
INSOBJECTPARTNER - Partner Data
Data type: BAPI_INSOBJECT_P_DISPLAYOptional: Yes
Call by Reference: Yes
INSOBJECTPARTNERCORR - Correspondence Data for Partner Relationship
Data type: BAPI_INSOBJECT_P_CORR_DOptional: Yes
Call by Reference: Yes
INSOBJECTPARTNERLOCK - Lock Data for Partner Relationship
Data type: BAPI_INSOBJECT_P_LOCK_DOptional: Yes
Call by Reference: Yes
INSOBJECTPARTNERBRKASSGN - Data for Assignment of Broker to Partner Relationship
Data type: BAPI_INSOBJECT_P_BRKASS_DOptional: Yes
Call by Reference: Yes
INSOBJECTPARTNERBROKER - Broker Data for Partner Relationship
Data type: BAPI_INSOBJECT_P_BROKER_DOptional: Yes
Call by Reference: Yes
INSOBJECTPARTNERPAY - Outgoing Payment Data for Partner Relationship
Data type: BAPI_INSOBJECT_P_PAY_DOptional: Yes
Call by Reference: Yes
INSOBJECTPARTNERWHV - Valid Variable Withholding Tax Supplements
Data type: BAPI_INSOBJECT_P_WHV_DOptional: Yes
Call by Reference: Yes
RETURN - Returns
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
EXTENSIONOUT - ExtensionOut (Customer Extensions)
Data type: BAPIPAREXOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_INSOBJECT_GETDETAIL 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_insobject | TYPE BAPI_INSOBJECT_KEY-INSOBJECT, " | |||
| lv_insobjectdata | TYPE BAPI_INSOBJECT_H_DISPLAY, " | |||
| lt_insobjectpartner | TYPE STANDARD TABLE OF BAPI_INSOBJECT_P_DISPLAY, " | |||
| lv_partner | TYPE BAPI_INSOBJECT_KEY-PARTNER, " | |||
| lt_insobjectpartnercorr | TYPE STANDARD TABLE OF BAPI_INSOBJECT_P_CORR_D, " | |||
| lv_partnerexternal | TYPE BAPI_INSOBJECT_KEY-PARTNER_EXT, " | |||
| lt_insobjectpartnerlock | TYPE STANDARD TABLE OF BAPI_INSOBJECT_P_LOCK_D, " | |||
| lv_validfrom | TYPE BAPI_INSOBJECT_CONTROL-VALID_FROM, " | |||
| lt_insobjectpartnerbrkassgn | TYPE STANDARD TABLE OF BAPI_INSOBJECT_P_BRKASS_D, " | |||
| lt_insobjectpartnerbroker | TYPE STANDARD TABLE OF BAPI_INSOBJECT_P_BROKER_D, " | |||
| lt_insobjectpartnerpay | TYPE STANDARD TABLE OF BAPI_INSOBJECT_P_PAY_D, " | |||
| lt_insobjectpartnerwhv | TYPE STANDARD TABLE OF BAPI_INSOBJECT_P_WHV_D, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lt_extensionout | TYPE STANDARD TABLE OF BAPIPAREX. " |
|   CALL FUNCTION 'BAPI_INSOBJECT_GETDETAIL' "Insurance Object: Display Details |
| EXPORTING | ||
| INSOBJECT | = lv_insobject | |
| PARTNER | = lv_partner | |
| PARTNEREXTERNAL | = lv_partnerexternal | |
| VALIDFROM | = lv_validfrom | |
| IMPORTING | ||
| INSOBJECTDATA | = lv_insobjectdata | |
| TABLES | ||
| INSOBJECTPARTNER | = lt_insobjectpartner | |
| INSOBJECTPARTNERCORR | = lt_insobjectpartnercorr | |
| INSOBJECTPARTNERLOCK | = lt_insobjectpartnerlock | |
| INSOBJECTPARTNERBRKASSGN | = lt_insobjectpartnerbrkassgn | |
| INSOBJECTPARTNERBROKER | = lt_insobjectpartnerbroker | |
| INSOBJECTPARTNERPAY | = lt_insobjectpartnerpay | |
| INSOBJECTPARTNERWHV | = lt_insobjectpartnerwhv | |
| RETURN | = lt_return | |
| EXTENSIONOUT | = lt_extensionout | |
| . " BAPI_INSOBJECT_GETDETAIL | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_INSOBJECT_GETDETAIL
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 INSOBJECT FROM BAPI_INSOBJECT_KEY INTO @DATA(ld_insobject). | ||||
| "SELECT single PARTNER FROM BAPI_INSOBJECT_KEY INTO @DATA(ld_partner). | ||||
| "SELECT single PARTNER_EXT FROM BAPI_INSOBJECT_KEY INTO @DATA(ld_partnerexternal). | ||||
| "SELECT single VALID_FROM FROM BAPI_INSOBJECT_CONTROL INTO @DATA(ld_validfrom). | ||||
Search for further information about these or an SAP related objects