MM BAPI RFC Used the same way in S/4HANA

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.

Function group
MLBO
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
ENTRYSHEETBAPIESSR-SHEET_NOEntry sheet numberYes
LONG_TEXTSBAPIMMPARA-SELECTIONAlso return long texts—

Exporting parameters

ParameterTypeDescription
ENTRYSHEET_HEADERBAPIESSREntry sheet header data

Tables parameters

ParameterTypeDescriptionRequired
ENTRYSHEET_SERVICESBAPIESLLService lines—
ENTRYSHEET_ACCOUNT_ASSIGNMENTBAPIESKNAccount assignments—
ENTRYSHEET_SRV_ACCASS_VALUESBAPIESKLService account assignment values/links—
ENTRYSHEET_HEADER_TEXTBAPIESSRTXHeader long text—
ENTRYSHEET_SERVICES_TEXTSBAPIESLLTXService line long texts—
RETURNBAPIRETURN1Processing errors that occurred—

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_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

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.

Request a custom report