SAP Function Modules

META_ENTRYSHEET_GETLIST SAP Function module - Entry sheet get list







META_ENTRYSHEET_GETLIST is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name META_ENTRYSHEET_GETLIST into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: BBP_BD_META_BAPIS
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM META_ENTRYSHEET_GETLIST - META ENTRYSHEET GETLIST





CALL FUNCTION 'META_ENTRYSHEET_GETLIST' "Entry sheet get list
* EXPORTING
*   purch_org =                 " bbps_bapiekko-purch_org  Purchasing organization
*   pur_group =                 " bbps_bapiekko-pur_group  Einkäufergruppe
*   doc_type =                  " bbps_bapiekko-doc_type  Einkaufsbelegart
*   doc_date =                  " bbps_bapiekko-doc_date  Datum des Einkaufsbelegs
*   vendor =                    " bbps_bapiekko-vendor  Vendor's account number
*   po_number =                 " bbps_bapiekko-po_number  Purchasing Document Number
*   plant =                     " bbps_bapiekpo-plant  Plant
*   mat_grp =                   " bbps_bapiekpo-mat_grp  Material group
*   entrysheet_date =           " bbps_bapiessr-created_on  Date on Which the Record was Created
*   rel_group =                 " bapimmpara-rel_group
*   rel_code =                  " bapimmpara-rel_code
*   logical_system =            " bbp_backend_dest-log_sys
* TABLES
*   entrysheet_header =         " bbps_bapiessr  Value/link to service account assignment
*   return =                    " bapireturn1   Processing errors that occurred
*   control_record =            " bbp_control_record  Meta BAPI control record
    .  "  META_ENTRYSHEET_GETLIST

ABAP code example for Function Module META_ENTRYSHEET_GETLIST





The ABAP code below is a full code listing to execute function module META_ENTRYSHEET_GETLIST including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_entrysheet_header  TYPE STANDARD TABLE OF BBPS_BAPIESSR,"TABLES PARAM
wa_entrysheet_header  LIKE LINE OF it_entrysheet_header ,
it_return  TYPE STANDARD TABLE OF BAPIRETURN1,"TABLES PARAM
wa_return  LIKE LINE OF it_return ,
it_control_record  TYPE STANDARD TABLE OF BBP_CONTROL_RECORD,"TABLES PARAM
wa_control_record  LIKE LINE OF it_control_record .


DATA(ld_purch_org) = some text here

DATA(ld_pur_group) = some text here

DATA(ld_doc_type) = some text here

DATA(ld_doc_date) = 20210129

DATA(ld_vendor) = some text here

DATA(ld_po_number) = some text here

DATA(ld_plant) = some text here

DATA(ld_mat_grp) = some text here

DATA(ld_entrysheet_date) = 20210129

DATA(ld_rel_group) = some text here

DATA(ld_rel_code) = some text here

SELECT single LOG_SYS
FROM BBP_BACKEND_DEST
INTO @DATA(ld_logical_system).


"populate fields of struture and append to itab
append wa_entrysheet_header to it_entrysheet_header.

"populate fields of struture and append to itab
append wa_return to it_return.

"populate fields of struture and append to itab
append wa_control_record to it_control_record. . CALL FUNCTION 'META_ENTRYSHEET_GETLIST' * EXPORTING * purch_org = ld_purch_org * pur_group = ld_pur_group * doc_type = ld_doc_type * doc_date = ld_doc_date * vendor = ld_vendor * po_number = ld_po_number * plant = ld_plant * mat_grp = ld_mat_grp * entrysheet_date = ld_entrysheet_date * rel_group = ld_rel_group * rel_code = ld_rel_code * logical_system = ld_logical_system * TABLES * entrysheet_header = it_entrysheet_header * return = it_return * control_record = it_control_record . " META_ENTRYSHEET_GETLIST
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_purch_org  TYPE BBPS_BAPIEKKO-PURCH_ORG ,
it_entrysheet_header  TYPE STANDARD TABLE OF BBPS_BAPIESSR ,
wa_entrysheet_header  LIKE LINE OF it_entrysheet_header,
ld_pur_group  TYPE BBPS_BAPIEKKO-PUR_GROUP ,
it_return  TYPE STANDARD TABLE OF BAPIRETURN1 ,
wa_return  LIKE LINE OF it_return,
ld_doc_type  TYPE BBPS_BAPIEKKO-DOC_TYPE ,
it_control_record  TYPE STANDARD TABLE OF BBP_CONTROL_RECORD ,
wa_control_record  LIKE LINE OF it_control_record,
ld_doc_date  TYPE BBPS_BAPIEKKO-DOC_DATE ,
ld_vendor  TYPE BBPS_BAPIEKKO-VENDOR ,
ld_po_number  TYPE BBPS_BAPIEKKO-PO_NUMBER ,
ld_plant  TYPE BBPS_BAPIEKPO-PLANT ,
ld_mat_grp  TYPE BBPS_BAPIEKPO-MAT_GRP ,
ld_entrysheet_date  TYPE BBPS_BAPIESSR-CREATED_ON ,
ld_rel_group  TYPE BAPIMMPARA-REL_GROUP ,
ld_rel_code  TYPE BAPIMMPARA-REL_CODE ,
ld_logical_system  TYPE BBP_BACKEND_DEST-LOG_SYS .


ld_purch_org = some text here

"populate fields of struture and append to itab
append wa_entrysheet_header to it_entrysheet_header.

ld_pur_group = some text here

"populate fields of struture and append to itab
append wa_return to it_return.

ld_doc_type = some text here

"populate fields of struture and append to itab
append wa_control_record to it_control_record.

ld_doc_date = 20210129

ld_vendor = some text here

ld_po_number = some text here

ld_plant = some text here

ld_mat_grp = some text here

ld_entrysheet_date = 20210129

ld_rel_group = some text here

ld_rel_code = some text here

SELECT single LOG_SYS
FROM BBP_BACKEND_DEST
INTO ld_logical_system.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name META_ENTRYSHEET_GETLIST or its description.