SAP BAPI_IOBJ_GETDETAIL Function Module for Get Details About an InfoObject









BAPI_IOBJ_GETDETAIL is a standard bapi iobj 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 Get Details About an InfoObject 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 iobj getdetail FM, simply by entering the name BAPI_IOBJ_GETDETAIL into the relevant SAP transaction such as SE37 or SE38.

Function Group: RSBAPI_IOBJ
Program Name: SAPLRSBAPI_IOBJ
Main Program: SAPLRSBAPI_IOBJ
Appliation area: B
Release date: 19-Feb-1999
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_IOBJ_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_IOBJ_GETDETAIL'"Get Details About an InfoObject
EXPORTING
* VERSION = RS_C_OBJVERS-ACTIVE "Object Version
INFOOBJECT = "InfoObject Name

IMPORTING
DETAILS = "InfoObject (Detail)
RETURN = "BAPI Return Parameter
IS_IOBJNM_IN_INFOSET = "Boolean
IS_ATR = "Boolean
DETAILS_2 = "InfoObjects - Details - Additions

TABLES
* COMPOUNDS = "Compounding
* ATTRIBUTES = "Attributes
* NAVIGATIONATTRIBUTES = "Navigation Attributes
* ATRNAVINFOPROVIDER = "Navigation Attributes of the Characteristic as InfoProvider
* HIERARCHYCHARACTERISTICS = "Characteristics that occur in hierarchies
* ELIMINATION = "Elimination of Internal Business Volume
* HANAFIELDSMAPPING = "Assignm. of fields of a SAP HANA View to InfoObject (Attributes, Texts)
.



IMPORTING Parameters details for BAPI_IOBJ_GETDETAIL

VERSION - Object Version

Data type: BAPI6108-VERSION
Default: RS_C_OBJVERS-ACTIVE
Optional: Yes
Call by Reference: No ( called with pass by value option)

INFOOBJECT - InfoObject Name

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

EXPORTING Parameters details for BAPI_IOBJ_GETDETAIL

DETAILS - InfoObject (Detail)

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

RETURN - BAPI Return Parameter

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

IS_IOBJNM_IN_INFOSET - Boolean

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

IS_ATR - Boolean

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

DETAILS_2 - InfoObjects - Details - Additions

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

TABLES Parameters details for BAPI_IOBJ_GETDETAIL

COMPOUNDS - Compounding

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

ATTRIBUTES - Attributes

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

NAVIGATIONATTRIBUTES - Navigation Attributes

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

ATRNAVINFOPROVIDER - Navigation Attributes of the Characteristic as InfoProvider

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

HIERARCHYCHARACTERISTICS - Characteristics that occur in hierarchies

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

ELIMINATION - Elimination of Internal Business Volume

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

HANAFIELDSMAPPING - Assignm. of fields of a SAP HANA View to InfoObject (Attributes, Texts)

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

Copy and paste ABAP code example for BAPI_IOBJ_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_details  TYPE BAPI6108, "   
lv_version  TYPE BAPI6108-VERSION, "   RS_C_OBJVERS-ACTIVE
lt_compounds  TYPE STANDARD TABLE OF BAPI6108CM, "   
lv_return  TYPE BAPIRET2, "   
lt_attributes  TYPE STANDARD TABLE OF BAPI6108AT, "   
lv_infoobject  TYPE BAPI6108-INFOOBJECT, "   
lv_is_iobjnm_in_infoset  TYPE RS_BOOL, "   
lt_navigationattributes  TYPE STANDARD TABLE OF BAPI6108AN, "   
lv_is_atr  TYPE RS_BOOL, "   
lt_atrnavinfoprovider  TYPE STANDARD TABLE OF BAPI6108NP, "   
lv_details_2  TYPE BAPI6108_2, "   
lt_hierarchycharacteristics  TYPE STANDARD TABLE OF BAPI6108HC, "   
lt_elimination  TYPE STANDARD TABLE OF BAPI6108IE, "   
lt_hanafieldsmapping  TYPE STANDARD TABLE OF BAPI6108HANA_MAP. "   

  CALL FUNCTION 'BAPI_IOBJ_GETDETAIL'  "Get Details About an InfoObject
    EXPORTING
         VERSION = lv_version
         INFOOBJECT = lv_infoobject
    IMPORTING
         DETAILS = lv_details
         RETURN = lv_return
         IS_IOBJNM_IN_INFOSET = lv_is_iobjnm_in_infoset
         IS_ATR = lv_is_atr
         DETAILS_2 = lv_details_2
    TABLES
         COMPOUNDS = lt_compounds
         ATTRIBUTES = lt_attributes
         NAVIGATIONATTRIBUTES = lt_navigationattributes
         ATRNAVINFOPROVIDER = lt_atrnavinfoprovider
         HIERARCHYCHARACTERISTICS = lt_hierarchycharacteristics
         ELIMINATION = lt_elimination
         HANAFIELDSMAPPING = lt_hanafieldsmapping
. " BAPI_IOBJ_GETDETAIL




ABAP code using 7.40 inline data declarations to call FM BAPI_IOBJ_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 VERSION FROM BAPI6108 INTO @DATA(ld_version).
DATA(ld_version) = RS_C_OBJVERS-ACTIVE.
 
 
 
 
"SELECT single INFOOBJECT FROM BAPI6108 INTO @DATA(ld_infoobject).
 
 
 
 
 
 
 
 
 


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!