SAP BAPI_PRODORD_GET_LIST Function Module for BAPI: Output Production Order Header Data in a List
BAPI_PRODORD_GET_LIST is a standard bapi prodord get list SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BAPI: Output Production Order Header Data in a List processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for bapi prodord get list FM, simply by entering the name BAPI_PRODORD_GET_LIST into the relevant SAP transaction such as SE37 or SE38.
Function Group: 2005_BAPI
Program Name: SAPL2005_BAPI
Main Program: SAPL2005_BAPI
Appliation area:
Release date: 25-Feb-2004
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_PRODORD_GET_LIST pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'BAPI_PRODORD_GET_LIST'"BAPI: Output Production Order Header Data in a List.
EXPORTING
* COLLECTIVE_ORDER = "Display complete collective order
IMPORTING
RETURN = "Return Parameters
TABLES
* ORDER_NUMBER_RANGE = "BAPI Interface Structure for Ranges of the Production Orders
* WBS_ELEMENT_RANGE = "WBS Elements for Order Selection
* SEQ_NO_RANGE = "Sequence Numbers for Order Selection
* ORDER_PRIO_RANGE = "Order Priority for Order Selection
* ORDER_HEADER = "Order header data
* MATERIAL_RANGE = "Header Materials for Order Selection
* PRODPLANT_RANGE = "Production Plants for Order Selection
* PLANPLANT_RANGE = "Planning Plants for Order Selection
* ORDER_TYPE_RANGE = "Order Types for Order Selection
* MRP_CNTRL_RANGE = "MRP Controllers for Order Selection
* PROD_SCHED_RANGE = "Production Schedulers for Order Selection
* SALES_ORD_RANGE = "Sales Orders for Order Selection
* SALES_ORD_ITM_RANGE = "Sales Order Items for Order Selection
IMPORTING Parameters details for BAPI_PRODORD_GET_LIST
COLLECTIVE_ORDER - Display complete collective order
Data type: BAPI_ORDER_FUNC_CNTRL-COLLECTIVE_ORDEROptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_PRODORD_GET_LIST
RETURN - Return Parameters
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_PRODORD_GET_LIST
ORDER_NUMBER_RANGE - BAPI Interface Structure for Ranges of the Production Orders
Data type: BAPI_PP_ORDERRANGEOptional: Yes
Call by Reference: Yes
WBS_ELEMENT_RANGE - WBS Elements for Order Selection
Data type: BAPI_ORDER_WBS_ELEMENT_RANGEOptional: Yes
Call by Reference: Yes
SEQ_NO_RANGE - Sequence Numbers for Order Selection
Data type: BAPI_ORDER_SEQ_NO_RANGEOptional: Yes
Call by Reference: Yes
ORDER_PRIO_RANGE - Order Priority for Order Selection
Data type: BAPI_ORDER_PRIO_RANGEOptional: Yes
Call by Reference: Yes
ORDER_HEADER - Order header data
Data type: BAPI_ORDER_HEADER1Optional: Yes
Call by Reference: Yes
MATERIAL_RANGE - Header Materials for Order Selection
Data type: BAPI_ORDER_MATERIAL_RANGEOptional: Yes
Call by Reference: Yes
PRODPLANT_RANGE - Production Plants for Order Selection
Data type: BAPI_ORDER_PRODPLANT_RANGEOptional: Yes
Call by Reference: Yes
PLANPLANT_RANGE - Planning Plants for Order Selection
Data type: BAPI_ORDER_PLANPLANT_RANGEOptional: Yes
Call by Reference: Yes
ORDER_TYPE_RANGE - Order Types for Order Selection
Data type: BAPI_ORDER_ORDER_TYPE_RANGEOptional: Yes
Call by Reference: Yes
MRP_CNTRL_RANGE - MRP Controllers for Order Selection
Data type: BAPI_ORDER_MRP_CNTRL_RANGEOptional: Yes
Call by Reference: Yes
PROD_SCHED_RANGE - Production Schedulers for Order Selection
Data type: BAPI_ORDER_PROD_SCHED_RANGEOptional: Yes
Call by Reference: Yes
SALES_ORD_RANGE - Sales Orders for Order Selection
Data type: BAPI_ORDER_SALES_ORD_RANGEOptional: Yes
Call by Reference: Yes
SALES_ORD_ITM_RANGE - Sales Order Items for Order Selection
Data type: BAPI_ORDER_SALES_ORD_ITM_RANGEOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_PRODORD_GET_LIST Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_return | TYPE BAPIRET2, " | |||
| lv_collective_order | TYPE BAPI_ORDER_FUNC_CNTRL-COLLECTIVE_ORDER, " | |||
| lt_order_number_range | TYPE STANDARD TABLE OF BAPI_PP_ORDERRANGE, " | |||
| lt_wbs_element_range | TYPE STANDARD TABLE OF BAPI_ORDER_WBS_ELEMENT_RANGE, " | |||
| lt_seq_no_range | TYPE STANDARD TABLE OF BAPI_ORDER_SEQ_NO_RANGE, " | |||
| lt_order_prio_range | TYPE STANDARD TABLE OF BAPI_ORDER_PRIO_RANGE, " | |||
| lt_order_header | TYPE STANDARD TABLE OF BAPI_ORDER_HEADER1, " | |||
| lt_material_range | TYPE STANDARD TABLE OF BAPI_ORDER_MATERIAL_RANGE, " | |||
| lt_prodplant_range | TYPE STANDARD TABLE OF BAPI_ORDER_PRODPLANT_RANGE, " | |||
| lt_planplant_range | TYPE STANDARD TABLE OF BAPI_ORDER_PLANPLANT_RANGE, " | |||
| lt_order_type_range | TYPE STANDARD TABLE OF BAPI_ORDER_ORDER_TYPE_RANGE, " | |||
| lt_mrp_cntrl_range | TYPE STANDARD TABLE OF BAPI_ORDER_MRP_CNTRL_RANGE, " | |||
| lt_prod_sched_range | TYPE STANDARD TABLE OF BAPI_ORDER_PROD_SCHED_RANGE, " | |||
| lt_sales_ord_range | TYPE STANDARD TABLE OF BAPI_ORDER_SALES_ORD_RANGE, " | |||
| lt_sales_ord_itm_range | TYPE STANDARD TABLE OF BAPI_ORDER_SALES_ORD_ITM_RANGE. " |
|   CALL FUNCTION 'BAPI_PRODORD_GET_LIST' "BAPI: Output Production Order Header Data in a List |
| EXPORTING | ||
| COLLECTIVE_ORDER | = lv_collective_order | |
| IMPORTING | ||
| RETURN | = lv_return | |
| TABLES | ||
| ORDER_NUMBER_RANGE | = lt_order_number_range | |
| WBS_ELEMENT_RANGE | = lt_wbs_element_range | |
| SEQ_NO_RANGE | = lt_seq_no_range | |
| ORDER_PRIO_RANGE | = lt_order_prio_range | |
| ORDER_HEADER | = lt_order_header | |
| 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 | |
| SALES_ORD_ITM_RANGE | = lt_sales_ord_itm_range | |
| . " BAPI_PRODORD_GET_LIST | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_PRODORD_GET_LIST
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single COLLECTIVE_ORDER FROM BAPI_ORDER_FUNC_CNTRL INTO @DATA(ld_collective_order). | ||||
Search for further information about these or an SAP related objects