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

BAPI_ALM_ORDER_GET_DETAIL Read Maintenance Order Details

Reads one maintenance or service order with header, operations, components, partners, object list, texts and costs. It is used in custom reports, order printouts and interfaces that pass order data to external systems. Pass the order number with leading zeros (conversion exit ALPHA) and check RETURN for errors.

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

Importing parameters

ParameterTypeDescriptionRequired
NUMBERBAPI_ALM_ORDER_HEADER_E-ORDERIDOrder numberYes

Exporting parameters

ParameterTypeDescription
ES_HEADERBAPI_ALM_ORDER_HEADER_EOrder header data
ES_SRVDATABAPI_ALM_ORDER_SRVDAT_EService data
ES_REFORDER_ITEMBAPI_REFORDER_ITEMRefurbishment order item

Tables parameters

ParameterTypeDescriptionRequired
ET_PARTNERBAPI_ALM_ORDER_PARTNERPartners—
ET_OPERATIONSBAPI_ALM_ORDER_OPERATION_EOperations—
ET_COMPONENTSBAPI_ALM_ORDER_COMPONENT_EComponents—
ET_RELATIONSBAPI_ALM_ORDER_RELATION_EXPORTOperation relationships—
ET_SRULESBAPI_ALM_ORDER_SRULE_ESettlement rules—
ET_OLISTBAPI_ALM_ORDER_OBJECTLISTObject list—
ET_TEXTSBAPI_ALM_TEXTLong text headers—
ET_TEXT_LINESBAPI_ALM_TEXT_LINESLong text lines—
ET_COSTS_SUMBAPI_ALM_ORDER_COSTS_SUM_ECost totals—
ET_COSTS_DETAILSBAPI_ALM_ORDER_COSTS_DETAIL_ECost details—
ET_PRTSBAPI_ALM_ORDER_PRT_EProduction resources/tools—
EXTENSION_OUTBAPIPAREXCustomer extension (output)—
RETURNBAPIRET2Return messagesYes

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_GET_DETAIL'
  EXPORTING
    number = lv_number
  IMPORTING
    es_header = lv_es_header
    es_srvdata = lv_es_srvdata
    es_reforder_item = lv_es_reforder_item
  TABLES
    et_partner = lt_et_partner
    et_operations = lt_et_operations
    et_components = lt_et_components
    et_relations = lt_et_relations
    et_srules = lt_et_srules
    et_olist = lt_et_olist
    et_texts = lt_et_texts
    et_text_lines = lt_et_text_lines
    et_costs_sum = lt_et_costs_sum
    et_costs_details = lt_et_costs_details.

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