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

- Modules: MM
- Type: BAPI
- Function group: MLBO
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-entrysheet-create/

## 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)

```abap
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

ESKL, ESKN, ESLL, ESSR

