SAP QTLS_PARTIAL_LOT_SHOW Function Module for Display partial lot in window
QTLS_PARTIAL_LOT_SHOW is a standard qtls partial lot show 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 partial lot in window 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 qtls partial lot show FM, simply by entering the name QTLS_PARTIAL_LOT_SHOW into the relevant SAP transaction such as SE37 or SE38.
Function Group: QTLS
Program Name: SAPLQTLS
Main Program: SAPLQTLS
Appliation area: Q
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function QTLS_PARTIAL_LOT_SHOW 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 'QTLS_PARTIAL_LOT_SHOW'"Display partial lot in window.
EXPORTING
* I_STARTING_AT_X = 0 "Upper left hand corner, x-coordinate
* I_STARTING_AT_Y = 1 "Upper left hand corner, y-coordinate
I_QALS = "Inspection lot
* I_QALT_UD = "Partial lot incl. UD and sample data
I_QALT = "Partial lot
* I_QAVT = "Partial lot- UD
* I_DISPLAY_ONLY = 'X' "
IMPORTING Parameters details for QTLS_PARTIAL_LOT_SHOW
I_STARTING_AT_X - Upper left hand corner, x-coordinate
Data type: SY-WINX1Optional: Yes
Call by Reference: No ( called with pass by value option)
I_STARTING_AT_Y - Upper left hand corner, y-coordinate
Data type: SY-WINY1Default: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_QALS - Inspection lot
Data type: QALSOptional: No
Call by Reference: No ( called with pass by value option)
I_QALT_UD - Partial lot incl. UD and sample data
Data type: QALT_UDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_QALT - Partial lot
Data type: QALTOptional: No
Call by Reference: No ( called with pass by value option)
I_QAVT - Partial lot- UD
Data type: QAVTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DISPLAY_ONLY -
Data type: QALS-STAT01Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for QTLS_PARTIAL_LOT_SHOW 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_starting_at_x | TYPE SY-WINX1, " 0 | |||
| lv_i_starting_at_y | TYPE SY-WINY1, " 1 | |||
| lv_i_qals | TYPE QALS, " | |||
| lv_i_qalt_ud | TYPE QALT_UD, " | |||
| lv_i_qalt | TYPE QALT, " | |||
| lv_i_qavt | TYPE QAVT, " | |||
| lv_i_display_only | TYPE QALS-STAT01. " 'X' |
|   CALL FUNCTION 'QTLS_PARTIAL_LOT_SHOW' "Display partial lot in window |
| EXPORTING | ||
| I_STARTING_AT_X | = lv_i_starting_at_x | |
| I_STARTING_AT_Y | = lv_i_starting_at_y | |
| I_QALS | = lv_i_qals | |
| I_QALT_UD | = lv_i_qalt_ud | |
| I_QALT | = lv_i_qalt | |
| I_QAVT | = lv_i_qavt | |
| I_DISPLAY_ONLY | = lv_i_display_only | |
| . " QTLS_PARTIAL_LOT_SHOW | ||
ABAP code using 7.40 inline data declarations to call FM QTLS_PARTIAL_LOT_SHOW
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 WINX1 FROM SY INTO @DATA(ld_i_starting_at_x). | ||||
| "SELECT single WINY1 FROM SY INTO @DATA(ld_i_starting_at_y). | ||||
| DATA(ld_i_starting_at_y) | = 1. | |||
| "SELECT single STAT01 FROM QALS INTO @DATA(ld_i_display_only). | ||||
| DATA(ld_i_display_only) | = 'X'. | |||
Search for further information about these or an SAP related objects