SAP Function Modules

META_ENTRYSHEET_CREATE SAP Function module - Create entry sheet







META_ENTRYSHEET_CREATE 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_CREATE 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_CREATE - META ENTRYSHEET CREATE





CALL FUNCTION 'META_ENTRYSHEET_CREATE' "Create entry sheet
  EXPORTING
    entrysheetheader =          " bbps_bapiessrc  Header data of entry sheet
*   testrun = SPACE             " bbps_bapi2091-testrun  Test run
*   logical_system =            " bbp_backend_dest-log_sys
  IMPORTING
    entrysheet =                " bbps_bapiessr-sheet_no  Entry sheet number
  TABLES
*   entrysheetaccountassignment =   " bbp_bapiesknc  Account assignments
*   entrysheetservices =        " bapiesllc_eci  Services
*   entrysheetsrvaccassvalues =   " bbps_bapiesklc  Value/link to service account assignment
    return =                    " bapiret2      Processing errors that occurred
*   control_record =            " bbp_control_record  Meta BAPI control record
    .  "  META_ENTRYSHEET_CREATE

ABAP code example for Function Module META_ENTRYSHEET_CREATE





The ABAP code below is a full code listing to execute function module META_ENTRYSHEET_CREATE 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:
ld_entrysheet  TYPE BBPS_BAPIESSR-SHEET_NO ,
it_entrysheetaccountassignment  TYPE STANDARD TABLE OF BBP_BAPIESKNC,"TABLES PARAM
wa_entrysheetaccountassignment  LIKE LINE OF it_entrysheetaccountassignment ,
it_entrysheetservices  TYPE STANDARD TABLE OF BAPIESLLC_ECI,"TABLES PARAM
wa_entrysheetservices  LIKE LINE OF it_entrysheetservices ,
it_entrysheetsrvaccassvalues  TYPE STANDARD TABLE OF BBPS_BAPIESKLC,"TABLES PARAM
wa_entrysheetsrvaccassvalues  LIKE LINE OF it_entrysheetsrvaccassvalues ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"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_entrysheetheader) = 'Check type of data required'.

DATA(ld_testrun) = 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_entrysheetaccountassignment to it_entrysheetaccountassignment.

"populate fields of struture and append to itab
append wa_entrysheetservices to it_entrysheetservices.

"populate fields of struture and append to itab
append wa_entrysheetsrvaccassvalues to it_entrysheetsrvaccassvalues.

"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_CREATE' EXPORTING entrysheetheader = ld_entrysheetheader * testrun = ld_testrun * logical_system = ld_logical_system IMPORTING entrysheet = ld_entrysheet TABLES * entrysheetaccountassignment = it_entrysheetaccountassignment * entrysheetservices = it_entrysheetservices * entrysheetsrvaccassvalues = it_entrysheetsrvaccassvalues return = it_return * control_record = it_control_record . " META_ENTRYSHEET_CREATE
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_entrysheet  TYPE BBPS_BAPIESSR-SHEET_NO ,
ld_entrysheetheader  TYPE BBPS_BAPIESSRC ,
it_entrysheetaccountassignment  TYPE STANDARD TABLE OF BBP_BAPIESKNC ,
wa_entrysheetaccountassignment  LIKE LINE OF it_entrysheetaccountassignment,
ld_testrun  TYPE BBPS_BAPI2091-TESTRUN ,
it_entrysheetservices  TYPE STANDARD TABLE OF BAPIESLLC_ECI ,
wa_entrysheetservices  LIKE LINE OF it_entrysheetservices,
ld_logical_system  TYPE BBP_BACKEND_DEST-LOG_SYS ,
it_entrysheetsrvaccassvalues  TYPE STANDARD TABLE OF BBPS_BAPIESKLC ,
wa_entrysheetsrvaccassvalues  LIKE LINE OF it_entrysheetsrvaccassvalues,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return,
it_control_record  TYPE STANDARD TABLE OF BBP_CONTROL_RECORD ,
wa_control_record  LIKE LINE OF it_control_record.

ld_entrysheetheader = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_entrysheetaccountassignment to it_entrysheetaccountassignment.

ld_testrun = some text here

"populate fields of struture and append to itab
append wa_entrysheetservices to it_entrysheetservices.

SELECT single LOG_SYS
FROM BBP_BACKEND_DEST
INTO ld_logical_system.


"populate fields of struture and append to itab
append wa_entrysheetsrvaccassvalues to it_entrysheetsrvaccassvalues.

"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.

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_CREATE or its description.