PP
BAPI
RFC
Used the same way in S/4HANA
BAPI_PRODORD_GET_LIST Get Production Order List
Returns production order header data for selection ranges such as order number, material, plant, order type, MRP controller or sales order. It suits selection steps in custom reports and interfaces that collect orders before reading details. Fill the range tables in the usual SIGN/OPTION/LOW/HIGH form and keep the selection narrow for performance.
- Function group
- 2005_BAPI
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| COLLECTIVE_ORDER | BAPI_ORDER_FUNC_CNTRL-COLLECTIVE_ORDER | Include the whole collective order | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| RETURN | BAPIRET2 | Return messages |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| ORDER_NUMBER_RANGE | BAPI_PP_ORDERRANGE | Order number range | — |
| MATERIAL_RANGE | BAPI_ORDER_MATERIAL_RANGE | Header material range | — |
| PRODPLANT_RANGE | BAPI_ORDER_PRODPLANT_RANGE | Production plant range | — |
| PLANPLANT_RANGE | BAPI_ORDER_PLANPLANT_RANGE | Planning plant range | — |
| ORDER_TYPE_RANGE | BAPI_ORDER_ORDER_TYPE_RANGE | Order type range | — |
| MRP_CNTRL_RANGE | BAPI_ORDER_MRP_CNTRL_RANGE | MRP controller range | — |
| PROD_SCHED_RANGE | BAPI_ORDER_PROD_SCHED_RANGE | Production scheduler range | — |
| SALES_ORD_RANGE | BAPI_ORDER_SALES_ORD_RANGE | Sales order range | — |
| WBS_ELEMENT_RANGE | BAPI_ORDER_WBS_ELEMENT_RANGE | WBS element range | — |
| ORDER_HEADER | BAPI_ORDER_HEADER1 | Selected order headers | — |
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_PRODORD_GET_LIST'
IMPORTING
return = lv_return
TABLES
order_number_range = lt_order_number_range
material_range = lt_material_range
prodplant_range = lt_prodplant_range
planplant_range = lt_planplant_range
order_type_range = lt_order_type_range
mrp_cntrl_range = lt_mrp_cntrl_range
prod_sched_range = lt_prod_sched_range
sales_ord_range = lt_sales_ord_range
wbs_element_range = lt_wbs_element_range
order_header = lt_order_header.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.