SAP QLIB_AU_LOT_KQD Function Module for
QLIB_AU_LOT_KQD is a standard qlib au lot kqd SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 qlib au lot kqd FM, simply by entering the name QLIB_AU_LOT_KQD into the relevant SAP transaction such as SE37 or SE38.
Function Group: QLIB
Program Name: SAPLQLIB
Main Program:
Appliation area: Q
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function QLIB_AU_LOT_KQD 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 'QLIB_AU_LOT_KQD'".
EXPORTING
I_DATUV = "Lot creation date
I_QAUDI = "
I_EKORG = "Purchasing organization for vendor evaluation
I_LIFNR = "Vendor for vendor evaluation
* I_INITIALIZE = ' ' "Data should be read from database
TABLES
T_QSS_ML = "Table of Q-scores for each material
EXCEPTIONS
NO_VAL_POSSIBLE = 1
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_SAPLQLIB_001 Customer Function for Selecting Lots for Vendor Evaluation
EXIT_SAPLQLIB_002 Customer Function for Calculating Q-Scores
EXIT_SAPLQLIB_003 Customer Exit: Notification Selection for Vendor Evaluation
EXIT_SAPLQLIB_004 Customer Exit: Calculation of Complaint Score
IMPORTING Parameters details for QLIB_AU_LOT_KQD
I_DATUV - Lot creation date
Data type: QALS-ENSTEHDATOptional: No
Call by Reference: No ( called with pass by value option)
I_QAUDI -
Data type: T147-QAUDIOptional: No
Call by Reference: No ( called with pass by value option)
I_EKORG - Purchasing organization for vendor evaluation
Data type: QALS-EKORGOptional: No
Call by Reference: No ( called with pass by value option)
I_LIFNR - Vendor for vendor evaluation
Data type: QALS-LIFNROptional: No
Call by Reference: No ( called with pass by value option)
I_INITIALIZE - Data should be read from database
Data type: QM00-QKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for QLIB_AU_LOT_KQD
T_QSS_ML - Table of Q-scores for each material
Data type: QSS_MLOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_VAL_POSSIBLE - No inspection lot found for entry
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for QLIB_AU_LOT_KQD 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_datuv | TYPE QALS-ENSTEHDAT, " | |||
| lt_t_qss_ml | TYPE STANDARD TABLE OF QSS_ML, " | |||
| lv_no_val_possible | TYPE QSS_ML, " | |||
| lv_i_qaudi | TYPE T147-QAUDI, " | |||
| lv_i_ekorg | TYPE QALS-EKORG, " | |||
| lv_i_lifnr | TYPE QALS-LIFNR, " | |||
| lv_i_initialize | TYPE QM00-QKZ. " SPACE |
|   CALL FUNCTION 'QLIB_AU_LOT_KQD' " |
| EXPORTING | ||
| I_DATUV | = lv_i_datuv | |
| I_QAUDI | = lv_i_qaudi | |
| I_EKORG | = lv_i_ekorg | |
| I_LIFNR | = lv_i_lifnr | |
| I_INITIALIZE | = lv_i_initialize | |
| TABLES | ||
| T_QSS_ML | = lt_t_qss_ml | |
| EXCEPTIONS | ||
| NO_VAL_POSSIBLE = 1 | ||
| . " QLIB_AU_LOT_KQD | ||
ABAP code using 7.40 inline data declarations to call FM QLIB_AU_LOT_KQD
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 ENSTEHDAT FROM QALS INTO @DATA(ld_i_datuv). | ||||
| "SELECT single QAUDI FROM T147 INTO @DATA(ld_i_qaudi). | ||||
| "SELECT single EKORG FROM QALS INTO @DATA(ld_i_ekorg). | ||||
| "SELECT single LIFNR FROM QALS INTO @DATA(ld_i_lifnr). | ||||
| "SELECT single QKZ FROM QM00 INTO @DATA(ld_i_initialize). | ||||
| DATA(ld_i_initialize) | = ' '. | |||
Search for further information about these or an SAP related objects