SAP B40B_ENTRYSHEET_GETLIST Function Module for Entry sheet get list
B40B_ENTRYSHEET_GETLIST is a standard b40b entrysheet 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 Entry sheet get list 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 b40b entrysheet getlist FM, simply by entering the name B40B_ENTRYSHEET_GETLIST into the relevant SAP transaction such as SE37 or SE38.
Function Group: BBP_BD_DRIVER_40B
Program Name: SAPLBBP_BD_DRIVER_40B
Main Program: SAPLBBP_BD_DRIVER_40B
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function B40B_ENTRYSHEET_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 'B40B_ENTRYSHEET_GETLIST'"Entry sheet get list.
EXPORTING
* PURCH_ORG = "Purchasing organization
* REL_GROUP = "
* REL_CODE = "
* PUR_GROUP = "Einkäufergruppe
* DOC_TYPE = "Einkaufsbelegart
* DOC_DATE = "Datum des Einkaufsbelegs
* VENDOR = "Vendor's account number
* PO_NUMBER = "Purchasing Document Number
* PLANT = "Plant
* MAT_GRP = "Material group
* ENTRYSHEET_DATE = "Date on Which the Record was Created
TABLES
* ENTRYSHEET_HEADER = "Kommunikationsstruktur Kopfdaten Erfassungsblatt
* RETURN = "Processing errors that occurred
* CONTROL_RECORD = "Meta BAPI control record
IMPORTING Parameters details for B40B_ENTRYSHEET_GETLIST
PURCH_ORG - Purchasing organization
Data type: BBPS_BAPIEKKO-PURCH_ORGOptional: Yes
Call by Reference: No ( called with pass by value option)
REL_GROUP -
Data type: BAPIMMPARA-REL_GROUPOptional: Yes
Call by Reference: No ( called with pass by value option)
REL_CODE -
Data type: BAPIMMPARA-REL_CODEOptional: Yes
Call by Reference: No ( called with pass by value option)
PUR_GROUP - Einkäufergruppe
Data type: BBPS_BAPIEKKO-PUR_GROUPOptional: Yes
Call by Reference: No ( called with pass by value option)
DOC_TYPE - Einkaufsbelegart
Data type: BBPS_BAPIEKKO-DOC_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
DOC_DATE - Datum des Einkaufsbelegs
Data type: BBPS_BAPIEKKO-DOC_DATEOptional: Yes
Call by Reference: No ( called with pass by value option)
VENDOR - Vendor's account number
Data type: BBPS_BAPIEKKO-VENDOROptional: Yes
Call by Reference: No ( called with pass by value option)
PO_NUMBER - Purchasing Document Number
Data type: BBPS_BAPIEKKO-PO_NUMBEROptional: Yes
Call by Reference: No ( called with pass by value option)
PLANT - Plant
Data type: BBPS_BAPIEKPO-PLANTOptional: Yes
Call by Reference: No ( called with pass by value option)
MAT_GRP - Material group
Data type: BBPS_BAPIEKPO-MAT_GRPOptional: Yes
Call by Reference: No ( called with pass by value option)
ENTRYSHEET_DATE - Date on Which the Record was Created
Data type: BBPS_BAPIESSR-CREATED_ONOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for B40B_ENTRYSHEET_GETLIST
ENTRYSHEET_HEADER - Kommunikationsstruktur Kopfdaten Erfassungsblatt
Data type: BBPS_BAPIESSROptional: Yes
Call by Reference: Yes
RETURN - Processing errors that occurred
Data type: BAPIRETURN1Optional: Yes
Call by Reference: No ( called with pass by value option)
CONTROL_RECORD - Meta BAPI control record
Data type: BBP_CONTROL_RECORDOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for B40B_ENTRYSHEET_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_purch_org | TYPE BBPS_BAPIEKKO-PURCH_ORG, " | |||
lt_entrysheet_header | TYPE STANDARD TABLE OF BBPS_BAPIESSR, " | |||
lv_rel_group | TYPE BAPIMMPARA-REL_GROUP, " | |||
lv_rel_code | TYPE BAPIMMPARA-REL_CODE, " | |||
lt_return | TYPE STANDARD TABLE OF BAPIRETURN1, " | |||
lv_pur_group | TYPE BBPS_BAPIEKKO-PUR_GROUP, " | |||
lv_doc_type | TYPE BBPS_BAPIEKKO-DOC_TYPE, " | |||
lt_control_record | TYPE STANDARD TABLE OF BBP_CONTROL_RECORD, " | |||
lv_doc_date | TYPE BBPS_BAPIEKKO-DOC_DATE, " | |||
lv_vendor | TYPE BBPS_BAPIEKKO-VENDOR, " | |||
lv_po_number | TYPE BBPS_BAPIEKKO-PO_NUMBER, " | |||
lv_plant | TYPE BBPS_BAPIEKPO-PLANT, " | |||
lv_mat_grp | TYPE BBPS_BAPIEKPO-MAT_GRP, " | |||
lv_entrysheet_date | TYPE BBPS_BAPIESSR-CREATED_ON. " |
  CALL FUNCTION 'B40B_ENTRYSHEET_GETLIST' "Entry sheet get list |
EXPORTING | ||
PURCH_ORG | = lv_purch_org | |
REL_GROUP | = lv_rel_group | |
REL_CODE | = lv_rel_code | |
PUR_GROUP | = lv_pur_group | |
DOC_TYPE | = lv_doc_type | |
DOC_DATE | = lv_doc_date | |
VENDOR | = lv_vendor | |
PO_NUMBER | = lv_po_number | |
PLANT | = lv_plant | |
MAT_GRP | = lv_mat_grp | |
ENTRYSHEET_DATE | = lv_entrysheet_date | |
TABLES | ||
ENTRYSHEET_HEADER | = lt_entrysheet_header | |
RETURN | = lt_return | |
CONTROL_RECORD | = lt_control_record | |
. " B40B_ENTRYSHEET_GETLIST |
ABAP code using 7.40 inline data declarations to call FM B40B_ENTRYSHEET_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 PURCH_ORG FROM BBPS_BAPIEKKO INTO @DATA(ld_purch_org). | ||||
"SELECT single REL_GROUP FROM BAPIMMPARA INTO @DATA(ld_rel_group). | ||||
"SELECT single REL_CODE FROM BAPIMMPARA INTO @DATA(ld_rel_code). | ||||
"SELECT single PUR_GROUP FROM BBPS_BAPIEKKO INTO @DATA(ld_pur_group). | ||||
"SELECT single DOC_TYPE FROM BBPS_BAPIEKKO INTO @DATA(ld_doc_type). | ||||
"SELECT single DOC_DATE FROM BBPS_BAPIEKKO INTO @DATA(ld_doc_date). | ||||
"SELECT single VENDOR FROM BBPS_BAPIEKKO INTO @DATA(ld_vendor). | ||||
"SELECT single PO_NUMBER FROM BBPS_BAPIEKKO INTO @DATA(ld_po_number). | ||||
"SELECT single PLANT FROM BBPS_BAPIEKPO INTO @DATA(ld_plant). | ||||
"SELECT single MAT_GRP FROM BBPS_BAPIEKPO INTO @DATA(ld_mat_grp). | ||||
"SELECT single CREATED_ON FROM BBPS_BAPIESSR INTO @DATA(ld_entrysheet_date). | ||||
Search for further information about these or an SAP related objects