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

BAPI_ALM_ORDER_MAINTAIN Maintain Maintenance/Service Order

Creates and changes maintenance and service orders, including header, operations, components, partners, texts and settlement rules, in one call. IT_METHODS controls what happens: each line names an object type, a method (CREATE, CHANGE, DELETE, RELEASE ...) and a reference key, and the list must end with a SAVE line. For changes, fill the matching _UP flag table for every field you send, then call BAPI_TRANSACTION_COMMIT when RETURN has no E or A message.

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

Importing parameters

ParameterTypeDescriptionRequired
IV_MMSRV_EXTERNAL_MAINTENACEBAPI_FLAGExternal maintenance via MM service flag—

Tables parameters

ParameterTypeDescriptionRequired
IT_METHODSBAPI_ALM_ORDER_METHODMethods (processing steps)Yes
IT_HEADERBAPI_ALM_ORDER_HEADERS_IOrder header data—
IT_HEADER_UPBAPI_ALM_ORDER_HEADERS_UPHeader change flags—
IT_HEADER_SRVBAPI_ALM_ORDER_SRVDAT_EService data for the order header—
IT_PARTNERBAPI_ALM_ORDER_PARTN_MULPartners—
IT_PARTNER_UPBAPI_ALM_ORDER_PARTN_MUL_UPPartner change flags—
IT_OBJECTLISTBAPI_ALM_ORDER_OBJECTLISTObject list—
IT_OPERATIONBAPI_ALM_ORDER_OPERATIONOperations—
IT_OPERATION_UPBAPI_ALM_ORDER_OPERATION_UPOperation change flags—
IT_RELATIONBAPI_ALM_ORDER_RELATIONOperation relationships—
IT_COMPONENTBAPI_ALM_ORDER_COMPONENTComponents (material reservations)—
IT_COMPONENT_UPBAPI_ALM_ORDER_COMPONENT_UPComponent change flags—
IT_SRULEBAPI_ALM_ORDER_SRULESettlement rules—
IT_ESTIMATED_COSTSBAPI_ALM_ORDER_COSTS_EST_IEstimated costs—
IT_TASKLISTSBAPI_ALM_ORDER_TASKLISTS_ITask lists to include—
IT_TEXTBAPI_ALM_TEXTLong text headers—
IT_TEXT_LINESBAPI_ALM_TEXT_LINESLong text lines—
IT_USERSTATUSBAPI_ALM_ORDER_USRSTATUser statuses—
EXTENSION_INBAPIPAREXCustomer extension (input)—
RETURNBAPIRET2Return messages—
ET_NUMBERSBAPI_ALM_NUMBERSNumbers of created objects—
ET_NOTIFICATION_NUMBERSBAPI_ALM_NOTIF_NUMBERSNumbers of created notifications—

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_ALM_ORDER_MAINTAIN'
  TABLES
    it_methods = lt_it_methods
    it_header = lt_it_header
    it_header_up = lt_it_header_up
    it_header_srv = lt_it_header_srv
    it_partner = lt_it_partner
    it_partner_up = lt_it_partner_up
    it_objectlist = lt_it_objectlist
    it_operation = lt_it_operation
    it_operation_up = lt_it_operation_up
    it_relation = lt_it_relation.

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