SAP QELA_START_SELECTION_OF_LOTS Function Module for NOTRANSL: Fkt. Baustein zum Start der Prüflos-Selektion
QELA_START_SELECTION_OF_LOTS is a standard qela start selection of lots 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: Fkt. Baustein zum Start der Prüflos-Selektion 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 qela start selection of lots FM, simply by entering the name QELA_START_SELECTION_OF_LOTS into the relevant SAP transaction such as SE37 or SE38.
Function Group: QELA
Program Name: SAPLQELA
Main Program: SAPLQELA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function QELA_START_SELECTION_OF_LOTS 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 'QELA_START_SELECTION_OF_LOTS'"NOTRANSL: Fkt. Baustein zum Start der Prüflos-Selektion.
EXPORTING
* I_SELID = ' ' "Status Selection Profile
* I_STAT_AENDERUNG = ' ' "Indicator: status requirements can be changed
* I_STAT_ERO = 'X' "Indicator: Only use created lots
* I_STAT_FREI = 'X' "Indicator: Only use released lots
* I_STAT_VE = 'X' "Indicator: use only inspection lots with usage decision
* I_VORG = ' ' "Status operation for lot operation
* I_F4_HELP_FLAG = "
* I_MAX_RECORDS = RQELA-MAX_FETCHS "Maximum Number of Access Options for Selection
IMPORTING
E_PRUEFLOS = "Selected inspection lot number
E_MAX_EXCEED = "
TABLES
* E_QALS_TAB = "Work area for selection list
EXCEPTIONS
NO_ENTRY = 1 NO_SELECTED = 2
IMPORTING Parameters details for QELA_START_SELECTION_OF_LOTS
I_SELID - Status Selection Profile
Data type: TJ48-SELIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_STAT_AENDERUNG - Indicator: status requirements can be changed
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_STAT_ERO - Indicator: Only use created lots
Data type: RQELA-STAT_ERODefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_STAT_FREI - Indicator: Only use released lots
Data type: RQELA-STAT_FREIDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_STAT_VE - Indicator: use only inspection lots with usage decision
Data type: RQELA-STAT_VEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_VORG - Status operation for lot operation
Data type: TJ01-VRGNGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_F4_HELP_FLAG -
Data type: QKZOptional: Yes
Call by Reference: No ( called with pass by value option)
I_MAX_RECORDS - Maximum Number of Access Options for Selection
Data type: RQELA-MAX_FETCHSDefault: RQELA-MAX_FETCHS
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for QELA_START_SELECTION_OF_LOTS
E_PRUEFLOS - Selected inspection lot number
Data type: QALS-PRUEFLOSOptional: No
Call by Reference: No ( called with pass by value option)
E_MAX_EXCEED -
Data type: QKZOptional: No
Call by Reference: Yes
TABLES Parameters details for QELA_START_SELECTION_OF_LOTS
E_QALS_TAB - Work area for selection list
Data type: QALS_SELOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_ENTRY - No entry found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_SELECTED - No entry selected
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for QELA_START_SELECTION_OF_LOTS 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_selid | TYPE TJ48-SELID, " SPACE | |||
| lv_no_entry | TYPE TJ48, " | |||
| lv_e_prueflos | TYPE QALS-PRUEFLOS, " | |||
| lt_e_qals_tab | TYPE STANDARD TABLE OF QALS_SEL, " | |||
| lv_no_selected | TYPE QALS_SEL, " | |||
| lv_e_max_exceed | TYPE QKZ, " | |||
| lv_i_stat_aenderung | TYPE QKZ, " SPACE | |||
| lv_i_stat_ero | TYPE RQELA-STAT_ERO, " 'X' | |||
| lv_i_stat_frei | TYPE RQELA-STAT_FREI, " 'X' | |||
| lv_i_stat_ve | TYPE RQELA-STAT_VE, " 'X' | |||
| lv_i_vorg | TYPE TJ01-VRGNG, " SPACE | |||
| lv_i_f4_help_flag | TYPE QKZ, " | |||
| lv_i_max_records | TYPE RQELA-MAX_FETCHS. " RQELA-MAX_FETCHS |
|   CALL FUNCTION 'QELA_START_SELECTION_OF_LOTS' "NOTRANSL: Fkt. Baustein zum Start der Prüflos-Selektion |
| EXPORTING | ||
| I_SELID | = lv_i_selid | |
| I_STAT_AENDERUNG | = lv_i_stat_aenderung | |
| I_STAT_ERO | = lv_i_stat_ero | |
| I_STAT_FREI | = lv_i_stat_frei | |
| I_STAT_VE | = lv_i_stat_ve | |
| I_VORG | = lv_i_vorg | |
| I_F4_HELP_FLAG | = lv_i_f4_help_flag | |
| I_MAX_RECORDS | = lv_i_max_records | |
| IMPORTING | ||
| E_PRUEFLOS | = lv_e_prueflos | |
| E_MAX_EXCEED | = lv_e_max_exceed | |
| TABLES | ||
| E_QALS_TAB | = lt_e_qals_tab | |
| EXCEPTIONS | ||
| NO_ENTRY = 1 | ||
| NO_SELECTED = 2 | ||
| . " QELA_START_SELECTION_OF_LOTS | ||
ABAP code using 7.40 inline data declarations to call FM QELA_START_SELECTION_OF_LOTS
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 SELID FROM TJ48 INTO @DATA(ld_i_selid). | ||||
| DATA(ld_i_selid) | = ' '. | |||
| "SELECT single PRUEFLOS FROM QALS INTO @DATA(ld_e_prueflos). | ||||
| DATA(ld_i_stat_aenderung) | = ' '. | |||
| "SELECT single STAT_ERO FROM RQELA INTO @DATA(ld_i_stat_ero). | ||||
| DATA(ld_i_stat_ero) | = 'X'. | |||
| "SELECT single STAT_FREI FROM RQELA INTO @DATA(ld_i_stat_frei). | ||||
| DATA(ld_i_stat_frei) | = 'X'. | |||
| "SELECT single STAT_VE FROM RQELA INTO @DATA(ld_i_stat_ve). | ||||
| DATA(ld_i_stat_ve) | = 'X'. | |||
| "SELECT single VRGNG FROM TJ01 INTO @DATA(ld_i_vorg). | ||||
| DATA(ld_i_vorg) | = ' '. | |||
| "SELECT single MAX_FETCHS FROM RQELA INTO @DATA(ld_i_max_records). | ||||
| DATA(ld_i_max_records) | = RQELA-MAX_FETCHS. | |||
Search for further information about these or an SAP related objects