SAP BAPI_ENTRYSHEET_CREATE Function Module for Create Entry Sheet









BAPI_ENTRYSHEET_CREATE is a standard bapi entrysheet create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create Entry Sheet 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 entrysheet create FM, simply by entering the name BAPI_ENTRYSHEET_CREATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: MLBO
Program Name: SAPLMLBO
Main Program: SAPLMLBO
Appliation area: M
Release date: 21-Jul-1998
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_ENTRYSHEET_CREATE 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_ENTRYSHEET_CREATE'"Create Entry Sheet
EXPORTING
ENTRYSHEETHEADER = "Header Data of Entry Sheet
* TESTRUN = ' ' "Test Run
* NO_COMMIT = ' ' "Single-Character Indicator

IMPORTING
ENTRYSHEET = "Entry Sheet Number

TABLES
* ENTRYSHEETACCOUNTASSIGNMENT = "Account Assignments
* ENTRYSHEETSERVICES = "Services
* ENTRYSHEETSRVACCASSVALUES = "Value/Link to Service Account Assignment
RETURN = "Processing Errors That Occurred
* ENTRYSHEETSERVICESTEXTS = "Long Texts for Services
* ENTRYSHEETHEADERTEXT = "Long Text for Entry Sheet Header
.



IMPORTING Parameters details for BAPI_ENTRYSHEET_CREATE

ENTRYSHEETHEADER - Header Data of Entry Sheet

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

TESTRUN - Test Run

Data type: BAPI2091-TESTRUN
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_COMMIT - Single-Character Indicator

Data type: BAPIFLAG-BAPIFLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for BAPI_ENTRYSHEET_CREATE

ENTRYSHEET - Entry Sheet Number

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

TABLES Parameters details for BAPI_ENTRYSHEET_CREATE

ENTRYSHEETACCOUNTASSIGNMENT - Account Assignments

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

ENTRYSHEETSERVICES - Services

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

ENTRYSHEETSRVACCASSVALUES - Value/Link to Service Account Assignment

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

RETURN - Processing Errors That Occurred

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

ENTRYSHEETSERVICESTEXTS - Long Texts for Services

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

ENTRYSHEETHEADERTEXT - Long Text for Entry Sheet Header

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

Copy and paste ABAP code example for BAPI_ENTRYSHEET_CREATE 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_entrysheet  TYPE BAPIESSR-SHEET_NO, "   
lv_entrysheetheader  TYPE BAPIESSRC, "   
lt_entrysheetaccountassignment  TYPE STANDARD TABLE OF BAPIESKNC, "   
lv_testrun  TYPE BAPI2091-TESTRUN, "   SPACE
lt_entrysheetservices  TYPE STANDARD TABLE OF BAPIESLLC, "   
lv_no_commit  TYPE BAPIFLAG-BAPIFLAG, "   SPACE
lt_entrysheetsrvaccassvalues  TYPE STANDARD TABLE OF BAPIESKLC, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lt_entrysheetservicestexts  TYPE STANDARD TABLE OF BAPIESLLTX, "   
lt_entrysheetheadertext  TYPE STANDARD TABLE OF BAPIESSRTX. "   

  CALL FUNCTION 'BAPI_ENTRYSHEET_CREATE'  "Create Entry Sheet
    EXPORTING
         ENTRYSHEETHEADER = lv_entrysheetheader
         TESTRUN = lv_testrun
         NO_COMMIT = lv_no_commit
    IMPORTING
         ENTRYSHEET = lv_entrysheet
    TABLES
         ENTRYSHEETACCOUNTASSIGNMENT = lt_entrysheetaccountassignment
         ENTRYSHEETSERVICES = lt_entrysheetservices
         ENTRYSHEETSRVACCASSVALUES = lt_entrysheetsrvaccassvalues
         RETURN = lt_return
         ENTRYSHEETSERVICESTEXTS = lt_entrysheetservicestexts
         ENTRYSHEETHEADERTEXT = lt_entrysheetheadertext
. " BAPI_ENTRYSHEET_CREATE




ABAP code using 7.40 inline data declarations to call FM BAPI_ENTRYSHEET_CREATE

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 SHEET_NO FROM BAPIESSR INTO @DATA(ld_entrysheet).
 
 
 
"SELECT single TESTRUN FROM BAPI2091 INTO @DATA(ld_testrun).
DATA(ld_testrun) = ' '.
 
 
"SELECT single BAPIFLAG FROM BAPIFLAG INTO @DATA(ld_no_commit).
DATA(ld_no_commit) = ' '.
 
 
 
 
 


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!