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

BAPI_INTERNALORDER_CREATE Create Internal Order

Creates an internal order from the passed master data (order type, controlling area, company code, responsible cost center, etc.). Programs that open project, event or investment orders in bulk use it instead of KO01. You can pass settlement rules in the SRULES table; if RETURN has no errors, call BAPI_TRANSACTION_COMMIT and read the new number from ORDERID.

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

Importing parameters

ParameterTypeDescriptionRequired
I_MASTER_DATABAPI2075_7Order master dataYes
TESTRUNBAPI0012_GEN-TESTRUNTest run (no update)—

Exporting parameters

ParameterTypeDescription
ORDERIDBAPI2075_2-ORDERCreated order number
E_MASTER_DATABAPI2075_2Order master data (output)
E_MASTER_DATBBAPI2075_7BAdditional order master data (output)

Tables parameters

ParameterTypeDescriptionRequired
SRULESBAPI2075_6Settlement rules—
RETURNBAPIRET2Return messages—
EXTENSIONINBAPIPAREXCustomer extension fields (input)—

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_INTERNALORDER_CREATE'
  EXPORTING
    i_master_data = lv_i_master_data
  IMPORTING
    orderid = lv_orderid
    e_master_data = lv_e_master_data
    e_master_datb = lv_e_master_datb
  TABLES
    srules = lt_srules
    return = lt_return
    extensionin = lt_extensionin.

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