MM
BAPI
RFC
Used the same way in S/4HANA
BAPI_ENTRYSHEET_CREATE Create Service Entry Sheet
Creates a service entry sheet (ML81N) with reference to a purchase order item and returns the new sheet number. Developers use it in uploads and portal interfaces that bring service confirmations from external service providers. Try it first with TESTRUN, then call BAPI_TRANSACTION_COMMIT if RETURN has no type E/A messages; when NO_COMMIT is blank the BAPI may commit on its own.
- Function group
- MLBO
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| ENTRYSHEETHEADER | BAPIESSRC | Entry sheet header data | Yes |
| TESTRUN | BAPI2091-TESTRUN | Test run (no update) | — |
| NO_COMMIT | BAPIFLAG-BAPIFLAG | Do not perform COMMIT WORK | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| ENTRYSHEET | BAPIESSR-SHEET_NO | Entry sheet number |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| ENTRYSHEETSERVICES | BAPIESLLC | Service lines | — |
| ENTRYSHEETACCOUNTASSIGNMENT | BAPIESKNC | Account assignments | — |
| ENTRYSHEETSRVACCASSVALUES | BAPIESKLC | Service account assignment values/links | — |
| ENTRYSHEETHEADERTEXT | BAPIESSRTX | Header long text | — |
| ENTRYSHEETSERVICESTEXTS | BAPIESLLTX | Service line long texts | — |
| RETURN | BAPIRET2 | Processing errors that occurred | Yes |
Call template (ABAP)
A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.
CALL FUNCTION 'BAPI_ENTRYSHEET_CREATE'
EXPORTING
entrysheetheader = lv_entrysheetheader
IMPORTING
entrysheet = lv_entrysheet
TABLES
entrysheetservices = lt_entrysheetservices
entrysheetaccountassignment = lt_entrysheetaccountassignment
entrysheetsrvaccassvalues = lt_entrysheetsrvaccassvalues
entrysheetheadertext = lt_entrysheetheadertext
entrysheetservicestexts = lt_entrysheetservicestexts
return = lt_return.Related tables
Can't find the report you need?
We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.