SAP CO_EX_DATA_SELECT_RESB Function Module for NOTRANSL: Selektion von Reservierungssätzen für Materialbereitstellung
CO_EX_DATA_SELECT_RESB is a standard co ex data select resb SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Selektion von Reservierungssätzen für Materialbereitstellung 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 co ex data select resb FM, simply by entering the name CO_EX_DATA_SELECT_RESB into the relevant SAP transaction such as SE37 or SE38.
Function Group: COEX
Program Name: SAPLCOEX
Main Program: SAPLCOEX
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CO_EX_DATA_SELECT_RESB 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 'CO_EX_DATA_SELECT_RESB'"NOTRANSL: Selektion von Reservierungssätzen für Materialbereitstellung.
EXPORTING
* WERKS_IMP = "Plant
* RA_PSPEL = "
* BDTER_VON = "Requirement Date for the Component
* BDTER_BIS = "Requirement Date for the Component
* PRODT_VON = "Scheduled finish
* PRODT_BIS = "Scheduled finish
* KDAUF_IMP = "Sales Order Number
* KDPOS_IMP = "Sales order item
* PRODNET_IMP = "Selection indicator
* REWORK_IMP = "Selection indicator
TABLES
* T_AUFNR = "Structure of a range table for order numbers
T_RESB = "Data structure for RESB material staging
* T_ARBPL = "Structure of a Range Table for Work Centers
* T_DISPO = "Structure of a Range Table for MRP Controllers
* T_FEVOR = "Structure of a Range Table for Production Schedulers
* T_MATNR = "Structure of a range table for order numbers
* T_KOMP = "Structure of a range table for order numbers
* T_PRVBE = "Structure of a Range Table for Supply Area
* T_LGORT = "Structure of a range table for order numbers
* T_SCHGT = "Structure of a range table for scrap indicator
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLCOEXT_001 Check Exit for Production Order Change from Assembly Order
IMPORTING Parameters details for CO_EX_DATA_SELECT_RESB
WERKS_IMP - Plant
Data type: AUFK-WERKSOptional: Yes
Call by Reference: No ( called with pass by value option)
RA_PSPEL -
Data type: RMPU_RA_PSPELOptional: Yes
Call by Reference: No ( called with pass by value option)
BDTER_VON - Requirement Date for the Component
Data type: RESB-BDTEROptional: Yes
Call by Reference: No ( called with pass by value option)
BDTER_BIS - Requirement Date for the Component
Data type: RESB-BDTEROptional: Yes
Call by Reference: No ( called with pass by value option)
PRODT_VON - Scheduled finish
Data type: AFKO-GLTRSOptional: Yes
Call by Reference: No ( called with pass by value option)
PRODT_BIS - Scheduled finish
Data type: AFKO-GLTRSOptional: Yes
Call by Reference: No ( called with pass by value option)
KDAUF_IMP - Sales Order Number
Data type: AFPO-KDAUFOptional: Yes
Call by Reference: No ( called with pass by value option)
KDPOS_IMP - Sales order item
Data type: AFPO-KDPOSOptional: Yes
Call by Reference: No ( called with pass by value option)
PRODNET_IMP - Selection indicator
Data type: RC27X-FLG_SELOptional: Yes
Call by Reference: No ( called with pass by value option)
REWORK_IMP - Selection indicator
Data type: RC27X-FLG_SELOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CO_EX_DATA_SELECT_RESB
T_AUFNR - Structure of a range table for order numbers
Data type: RANGE_AUFOptional: Yes
Call by Reference: No ( called with pass by value option)
T_RESB - Data structure for RESB material staging
Data type: ISCOMPDOptional: No
Call by Reference: No ( called with pass by value option)
T_ARBPL - Structure of a Range Table for Work Centers
Data type: RANGE_ARBOptional: Yes
Call by Reference: No ( called with pass by value option)
T_DISPO - Structure of a Range Table for MRP Controllers
Data type: RANGE_DISPOptional: Yes
Call by Reference: No ( called with pass by value option)
T_FEVOR - Structure of a Range Table for Production Schedulers
Data type: RANGE_FEVOptional: Yes
Call by Reference: No ( called with pass by value option)
T_MATNR - Structure of a range table for order numbers
Data type: RANGE_MATOptional: Yes
Call by Reference: No ( called with pass by value option)
T_KOMP - Structure of a range table for order numbers
Data type: RANGE_KOMPOptional: Yes
Call by Reference: No ( called with pass by value option)
T_PRVBE - Structure of a Range Table for Supply Area
Data type: RANGE_PVBOptional: Yes
Call by Reference: No ( called with pass by value option)
T_LGORT - Structure of a range table for order numbers
Data type: RANGE_LGOOptional: Yes
Call by Reference: No ( called with pass by value option)
T_SCHGT - Structure of a range table for scrap indicator
Data type: RANGE_SCHGOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CO_EX_DATA_SELECT_RESB 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: | ||||
| lt_t_aufnr | TYPE STANDARD TABLE OF RANGE_AUF, " | |||
| lv_werks_imp | TYPE AUFK-WERKS, " | |||
| lt_t_resb | TYPE STANDARD TABLE OF ISCOMPD, " | |||
| lv_ra_pspel | TYPE RMPU_RA_PSPEL, " | |||
| lt_t_arbpl | TYPE STANDARD TABLE OF RANGE_ARB, " | |||
| lv_bdter_von | TYPE RESB-BDTER, " | |||
| lt_t_dispo | TYPE STANDARD TABLE OF RANGE_DISP, " | |||
| lv_bdter_bis | TYPE RESB-BDTER, " | |||
| lt_t_fevor | TYPE STANDARD TABLE OF RANGE_FEV, " | |||
| lv_prodt_von | TYPE AFKO-GLTRS, " | |||
| lt_t_matnr | TYPE STANDARD TABLE OF RANGE_MAT, " | |||
| lv_prodt_bis | TYPE AFKO-GLTRS, " | |||
| lt_t_komp | TYPE STANDARD TABLE OF RANGE_KOMP, " | |||
| lv_kdauf_imp | TYPE AFPO-KDAUF, " | |||
| lt_t_prvbe | TYPE STANDARD TABLE OF RANGE_PVB, " | |||
| lv_kdpos_imp | TYPE AFPO-KDPOS, " | |||
| lt_t_lgort | TYPE STANDARD TABLE OF RANGE_LGO, " | |||
| lv_prodnet_imp | TYPE RC27X-FLG_SEL, " | |||
| lt_t_schgt | TYPE STANDARD TABLE OF RANGE_SCHG, " | |||
| lv_rework_imp | TYPE RC27X-FLG_SEL. " |
|   CALL FUNCTION 'CO_EX_DATA_SELECT_RESB' "NOTRANSL: Selektion von Reservierungssätzen für Materialbereitstellung |
| EXPORTING | ||
| WERKS_IMP | = lv_werks_imp | |
| RA_PSPEL | = lv_ra_pspel | |
| BDTER_VON | = lv_bdter_von | |
| BDTER_BIS | = lv_bdter_bis | |
| PRODT_VON | = lv_prodt_von | |
| PRODT_BIS | = lv_prodt_bis | |
| KDAUF_IMP | = lv_kdauf_imp | |
| KDPOS_IMP | = lv_kdpos_imp | |
| PRODNET_IMP | = lv_prodnet_imp | |
| REWORK_IMP | = lv_rework_imp | |
| TABLES | ||
| T_AUFNR | = lt_t_aufnr | |
| T_RESB | = lt_t_resb | |
| T_ARBPL | = lt_t_arbpl | |
| T_DISPO | = lt_t_dispo | |
| T_FEVOR | = lt_t_fevor | |
| T_MATNR | = lt_t_matnr | |
| T_KOMP | = lt_t_komp | |
| T_PRVBE | = lt_t_prvbe | |
| T_LGORT | = lt_t_lgort | |
| T_SCHGT | = lt_t_schgt | |
| . " CO_EX_DATA_SELECT_RESB | ||
ABAP code using 7.40 inline data declarations to call FM CO_EX_DATA_SELECT_RESB
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 WERKS FROM AUFK INTO @DATA(ld_werks_imp). | ||||
| "SELECT single BDTER FROM RESB INTO @DATA(ld_bdter_von). | ||||
| "SELECT single BDTER FROM RESB INTO @DATA(ld_bdter_bis). | ||||
| "SELECT single GLTRS FROM AFKO INTO @DATA(ld_prodt_von). | ||||
| "SELECT single GLTRS FROM AFKO INTO @DATA(ld_prodt_bis). | ||||
| "SELECT single KDAUF FROM AFPO INTO @DATA(ld_kdauf_imp). | ||||
| "SELECT single KDPOS FROM AFPO INTO @DATA(ld_kdpos_imp). | ||||
| "SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_prodnet_imp). | ||||
| "SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_rework_imp). | ||||
Search for further information about these or an SAP related objects