SAP QELB_PM_OBJECT_SELECT Function Module for Display all (QM relevant) objects from PM Order
QELB_PM_OBJECT_SELECT is a standard qelb pm object select SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Display all (QM relevant) objects from PM Order 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 qelb pm object select FM, simply by entering the name QELB_PM_OBJECT_SELECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: QELB
Program Name: SAPLQELB
Main Program: SAPLQELB
Appliation area: Q
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function QELB_PM_OBJECT_SELECT 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 'QELB_PM_OBJECT_SELECT'"Display all (QM relevant) objects from PM Order.
EXPORTING
I_QALS = "Inspection Lot
* I_WINY2_25 = "
* I_SHOW_ONLY = ' ' "
* I_FOR_INSP_POINT = 'X' "
* I_NO_LIST_IF_ONE = ' ' "
* I_CHECK_ONLY = ' ' "
* I_PM_OBJECT = "
* I_WINX1_25 = "
* I_WINX2_25 = "
* I_WINY1_25 = "
IMPORTING
E_PM_OBJECT = "
EXCEPTIONS
NO_DATA_FOUND = 1 NO_DATA_SELECTED = 2
IMPORTING Parameters details for QELB_PM_OBJECT_SELECT
I_QALS - Inspection Lot
Data type: QALSOptional: No
Call by Reference: No ( called with pass by value option)
I_WINY2_25 -
Data type: SY-WINY2Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SHOW_ONLY -
Data type: QM00-QKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FOR_INSP_POINT -
Data type: QM00-QKZDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NO_LIST_IF_ONE -
Data type: QM00-QKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CHECK_ONLY -
Data type: QM00-QKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PM_OBJECT -
Data type: IFLO-TPLNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_WINX1_25 -
Data type: SY-WINX1Optional: Yes
Call by Reference: No ( called with pass by value option)
I_WINX2_25 -
Data type: SY-WINX2Optional: Yes
Call by Reference: No ( called with pass by value option)
I_WINY1_25 -
Data type: SY-WINY1Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for QELB_PM_OBJECT_SELECT
E_PM_OBJECT -
Data type: IFLO-TPLNROptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_DATA_FOUND - No objects available
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_DATA_SELECTED - No Object Selected
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for QELB_PM_OBJECT_SELECT 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_i_qals | TYPE QALS, " | |||
| lv_e_pm_object | TYPE IFLO-TPLNR, " | |||
| lv_no_data_found | TYPE IFLO, " | |||
| lv_i_winy2_25 | TYPE SY-WINY2, " | |||
| lv_i_show_only | TYPE QM00-QKZ, " SPACE | |||
| lv_no_data_selected | TYPE QM00, " | |||
| lv_i_for_insp_point | TYPE QM00-QKZ, " 'X' | |||
| lv_i_no_list_if_one | TYPE QM00-QKZ, " SPACE | |||
| lv_i_check_only | TYPE QM00-QKZ, " SPACE | |||
| lv_i_pm_object | TYPE IFLO-TPLNR, " | |||
| lv_i_winx1_25 | TYPE SY-WINX1, " | |||
| lv_i_winx2_25 | TYPE SY-WINX2, " | |||
| lv_i_winy1_25 | TYPE SY-WINY1. " |
|   CALL FUNCTION 'QELB_PM_OBJECT_SELECT' "Display all (QM relevant) objects from PM Order |
| EXPORTING | ||
| I_QALS | = lv_i_qals | |
| I_WINY2_25 | = lv_i_winy2_25 | |
| I_SHOW_ONLY | = lv_i_show_only | |
| I_FOR_INSP_POINT | = lv_i_for_insp_point | |
| I_NO_LIST_IF_ONE | = lv_i_no_list_if_one | |
| I_CHECK_ONLY | = lv_i_check_only | |
| I_PM_OBJECT | = lv_i_pm_object | |
| I_WINX1_25 | = lv_i_winx1_25 | |
| I_WINX2_25 | = lv_i_winx2_25 | |
| I_WINY1_25 | = lv_i_winy1_25 | |
| IMPORTING | ||
| E_PM_OBJECT | = lv_e_pm_object | |
| EXCEPTIONS | ||
| NO_DATA_FOUND = 1 | ||
| NO_DATA_SELECTED = 2 | ||
| . " QELB_PM_OBJECT_SELECT | ||
ABAP code using 7.40 inline data declarations to call FM QELB_PM_OBJECT_SELECT
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 TPLNR FROM IFLO INTO @DATA(ld_e_pm_object). | ||||
| "SELECT single WINY2 FROM SY INTO @DATA(ld_i_winy2_25). | ||||
| "SELECT single QKZ FROM QM00 INTO @DATA(ld_i_show_only). | ||||
| DATA(ld_i_show_only) | = ' '. | |||
| "SELECT single QKZ FROM QM00 INTO @DATA(ld_i_for_insp_point). | ||||
| DATA(ld_i_for_insp_point) | = 'X'. | |||
| "SELECT single QKZ FROM QM00 INTO @DATA(ld_i_no_list_if_one). | ||||
| DATA(ld_i_no_list_if_one) | = ' '. | |||
| "SELECT single QKZ FROM QM00 INTO @DATA(ld_i_check_only). | ||||
| DATA(ld_i_check_only) | = ' '. | |||
| "SELECT single TPLNR FROM IFLO INTO @DATA(ld_i_pm_object). | ||||
| "SELECT single WINX1 FROM SY INTO @DATA(ld_i_winx1_25). | ||||
| "SELECT single WINX2 FROM SY INTO @DATA(ld_i_winx2_25). | ||||
| "SELECT single WINY1 FROM SY INTO @DATA(ld_i_winy1_25). | ||||
Search for further information about these or an SAP related objects