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

ParameterTypeDescriptionRequired
ENTRYSHEETHEADERBAPIESSRCEntry sheet header dataYes
TESTRUNBAPI2091-TESTRUNTest run (no update)—
NO_COMMITBAPIFLAG-BAPIFLAGDo not perform COMMIT WORK—

Exporting parameters

ParameterTypeDescription
ENTRYSHEETBAPIESSR-SHEET_NOEntry sheet number

Tables parameters

ParameterTypeDescriptionRequired
ENTRYSHEETSERVICESBAPIESLLCService lines—
ENTRYSHEETACCOUNTASSIGNMENTBAPIESKNCAccount assignments—
ENTRYSHEETSRVACCASSVALUESBAPIESKLCService account assignment values/links—
ENTRYSHEETHEADERTEXTBAPIESSRTXHeader long text—
ENTRYSHEETSERVICESTEXTSBAPIESLLTXService line long texts—
RETURNBAPIRET2Processing errors that occurredYes

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.

Request a custom report