SAP BAPI_BUS1077_GETLIST Function Module for EHS: List of Specifications









BAPI_BUS1077_GETLIST is a standard bapi bus1077 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 EHS: List of Specifications 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 bus1077 getlist FM, simply by entering the name BAPI_BUS1077_GETLIST into the relevant SAP transaction such as SE37 or SE38.

Function Group: 1077
Program Name: SAPL1077
Main Program: SAPL1077
Appliation area: M
Release date: 19-Mar-2002
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_BUS1077_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_BUS1077_GETLIST'"EHS: List of Specifications
EXPORTING
* KEY_DATE = SY-DATUM "Validity date for object key
* SUBLIST = "Select according to regulatory list assignment
* IDENTIFIER_CATEGORY = "Select according to identification type
* IDENTIFIER_TYPE = "Select according to identification category
* IDENTIFIER = "Select according to identifier
* MATERIAL = "Select according to material number
* SUBSTANCE = "Select according to specification description
* MATERIAL_EVG = "BAPI Structure for Transfer of External Material No, Ver.
* SPEC_DATA = "Further Specification Header Attributes

TABLES
RETURN = "Return messages of method
SUBSTANCELIST = "List of object keys with identifiers
.



IMPORTING Parameters details for BAPI_BUS1077_GETLIST

KEY_DATE - Validity date for object key

Data type: RCGADDINF-VALDAT
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

SUBLIST - Select according to regulatory list assignment

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

IDENTIFIER_CATEGORY - Select according to identification type

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

IDENTIFIER_TYPE - Select according to identification category

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

IDENTIFIER - Select according to identifier

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

MATERIAL - Select according to material number

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

SUBSTANCE - Select according to specification description

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

MATERIAL_EVG - BAPI Structure for Transfer of External Material No, Ver.

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

SPEC_DATA - Further Specification Header Attributes

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

TABLES Parameters details for BAPI_BUS1077_GETLIST

RETURN - Return messages of method

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

SUBSTANCELIST - List of object keys with identifiers

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

Copy and paste ABAP code example for BAPI_BUS1077_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:
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_key_date  TYPE RCGADDINF-VALDAT, "   SY-DATUM
lv_sublist  TYPE BAPI1077RL-SUBLIST, "   
lt_substancelist  TYPE STANDARD TABLE OF BAPISUB_01, "   
lv_identifier_category  TYPE BAPI1077RI-ID_CATEGRY, "   
lv_identifier_type  TYPE BAPI1077RI-ID_TYPE, "   
lv_identifier  TYPE BAPI1077RI-IDENTIFIER, "   
lv_material  TYPE BAPI1077MJ-MATERIAL, "   
lv_substance  TYPE BAPI1077RH-SUBSTANCE, "   
lv_material_evg  TYPE BAPIMGVMATNR, "   
lv_spec_data  TYPE ESTRH. "   

  CALL FUNCTION 'BAPI_BUS1077_GETLIST'  "EHS: List of Specifications
    EXPORTING
         KEY_DATE = lv_key_date
         SUBLIST = lv_sublist
         IDENTIFIER_CATEGORY = lv_identifier_category
         IDENTIFIER_TYPE = lv_identifier_type
         IDENTIFIER = lv_identifier
         MATERIAL = lv_material
         SUBSTANCE = lv_substance
         MATERIAL_EVG = lv_material_evg
         SPEC_DATA = lv_spec_data
    TABLES
         RETURN = lt_return
         SUBSTANCELIST = lt_substancelist
. " BAPI_BUS1077_GETLIST




ABAP code using 7.40 inline data declarations to call FM BAPI_BUS1077_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 VALDAT FROM RCGADDINF INTO @DATA(ld_key_date).
DATA(ld_key_date) = SY-DATUM.
 
"SELECT single SUBLIST FROM BAPI1077RL INTO @DATA(ld_sublist).
 
 
"SELECT single ID_CATEGRY FROM BAPI1077RI INTO @DATA(ld_identifier_category).
 
"SELECT single ID_TYPE FROM BAPI1077RI INTO @DATA(ld_identifier_type).
 
"SELECT single IDENTIFIER FROM BAPI1077RI INTO @DATA(ld_identifier).
 
"SELECT single MATERIAL FROM BAPI1077MJ INTO @DATA(ld_material).
 
"SELECT single SUBSTANCE FROM BAPI1077RH INTO @DATA(ld_substance).
 
 
 


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!