# BAPI_ENTRYSHEET_GETDETAIL — Get Service Entry Sheet Details

> Reads the header, service lines, account assignments and optional long texts of a service entry sheet. Developers use it in reports on service confirmations and in interfaces that check the current state of a sheet before acting on it. Long texts are returned only when LONG_TEXTS = 'X'; note that RETURN uses type BAPIRETURN1 here.

- 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-getdetail/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| ENTRYSHEET | BAPIESSR-SHEET_NO | Entry sheet number | Yes |
| LONG_TEXTS | BAPIMMPARA-SELECTION | Also return long texts | - |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| ENTRYSHEET_HEADER | BAPIESSR | Entry sheet header data |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| ENTRYSHEET_SERVICES | BAPIESLL | Service lines | - |
| ENTRYSHEET_ACCOUNT_ASSIGNMENT | BAPIESKN | Account assignments | - |
| ENTRYSHEET_SRV_ACCASS_VALUES | BAPIESKL | Service account assignment values/links | - |
| ENTRYSHEET_HEADER_TEXT | BAPIESSRTX | Header long text | - |
| ENTRYSHEET_SERVICES_TEXTS | BAPIESLLTX | Service line long texts | - |
| RETURN | BAPIRETURN1 | Processing errors that occurred | - |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_ENTRYSHEET_GETDETAIL'
  EXPORTING
    entrysheet = lv_entrysheet
  IMPORTING
    entrysheet_header = lv_entrysheet_header
  TABLES
    entrysheet_services = lt_entrysheet_services
    entrysheet_account_assignment = lt_entrysheet_account_assignment
    entrysheet_srv_accass_values = lt_entrysheet_srv_accass_values
    entrysheet_header_text = lt_entrysheet_header_text
    entrysheet_services_texts = lt_entrysheet_services_texts
    return = lt_return.
```

## Related tables

ESKL, ESKN, ESLL, ESSR

