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
| Parameter | Type | Description | Required |
|---|---|---|---|
| NUMBER | BAPI_ALM_ORDER_HEADER_E-ORDERID | Order number | Yes |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| ES_HEADER | BAPI_ALM_ORDER_HEADER_E | Order header data |
| ES_SRVDATA | BAPI_ALM_ORDER_SRVDAT_E | Service data |
| ES_REFORDER_ITEM | BAPI_REFORDER_ITEM | Refurbishment order item |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| ET_PARTNER | BAPI_ALM_ORDER_PARTNER | Partners | — |
| ET_OPERATIONS | BAPI_ALM_ORDER_OPERATION_E | Operations | — |
| ET_COMPONENTS | BAPI_ALM_ORDER_COMPONENT_E | Components | — |
| ET_RELATIONS | BAPI_ALM_ORDER_RELATION_EXPORT | Operation relationships | — |
| ET_SRULES | BAPI_ALM_ORDER_SRULE_E | Settlement rules | — |
| ET_OLIST | BAPI_ALM_ORDER_OBJECTLIST | Object list | — |
| ET_TEXTS | BAPI_ALM_TEXT | Long text headers | — |
| ET_TEXT_LINES | BAPI_ALM_TEXT_LINES | Long text lines | — |
| ET_COSTS_SUM | BAPI_ALM_ORDER_COSTS_SUM_E | Cost totals | — |
| ET_COSTS_DETAILS | BAPI_ALM_ORDER_COSTS_DETAIL_E | Cost details | — |
| ET_PRTS | BAPI_ALM_ORDER_PRT_E | Production resources/tools | — |
| EXTENSION_OUT | BAPIPAREX | Customer extension (output) | — |
| RETURN | BAPIRET2 | Return messages | Yes |
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.