SAP QINT_EXAMPLE_USER_EXIT Function Module for Example: transferring measured values to results recording via a user exit









QINT_EXAMPLE_USER_EXIT is a standard qint example user exit SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Example: transferring measured values to results recording via a user exit 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 qint example user exit FM, simply by entering the name QINT_EXAMPLE_USER_EXIT into the relevant SAP transaction such as SE37 or SE38.

Function Group: QINT
Program Name: SAPLQINT
Main Program: SAPLQINT
Appliation area: Q
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function QINT_EXAMPLE_USER_EXIT 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 'QINT_EXAMPLE_USER_EXIT'"Example: transferring measured values to results recording via a user exit
EXPORTING
I_STUECKNR = "Item number (input)
I_PROBENR = "Sample number (input)
I_SERIALNR = "Serial number (input)
* I_QAKLR = ' ' "Current class (input)
I_QALS = "Inspection lot (input)
I_QAMKR = "Current characteristic (input)
I_QAPO = "Operation (input)
* I_QASER = ' ' "Current individual result (input)
* I_QASPR = ' ' "Current sample (input)

TABLES
* T_QAKLTAB = "Table of all class confirmations (input)
T_QAMKRTAB = "Table of all characteristic confirmations (input)
* T_QASETAB = "Table of all individual results (input)
* T_QASPTAB = "Table of all sample confirmations (input)
.



IMPORTING Parameters details for QINT_EXAMPLE_USER_EXIT

I_STUECKNR - Item number (input)

Data type: QAISE-STUECKNR
Optional: No
Call by Reference: No ( called with pass by value option)

I_PROBENR - Sample number (input)

Data type: QAISE-PROBENR
Optional: No
Call by Reference: No ( called with pass by value option)

I_SERIALNR - Serial number (input)

Data type: QAISE-SERIALNR
Optional: No
Call by Reference: No ( called with pass by value option)

I_QAKLR - Current class (input)

Data type: QAKLR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_QALS - Inspection lot (input)

Data type: QALS
Optional: No
Call by Reference: No ( called with pass by value option)

I_QAMKR - Current characteristic (input)

Data type: QAMKR
Optional: No
Call by Reference: No ( called with pass by value option)

I_QAPO - Operation (input)

Data type: QAPO
Optional: No
Call by Reference: No ( called with pass by value option)

I_QASER - Current individual result (input)

Data type: QASER
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_QASPR - Current sample (input)

Data type: QASPR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for QINT_EXAMPLE_USER_EXIT

T_QAKLTAB - Table of all class confirmations (input)

Data type: QAKLR
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_QAMKRTAB - Table of all characteristic confirmations (input)

Data type: QAMKR
Optional: No
Call by Reference: No ( called with pass by value option)

T_QASETAB - Table of all individual results (input)

Data type: QASER
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_QASPTAB - Table of all sample confirmations (input)

Data type: QASPR
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for QINT_EXAMPLE_USER_EXIT 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_qakltab  TYPE STANDARD TABLE OF QAKLR, "   
lv_i_stuecknr  TYPE QAISE-STUECKNR, "   
lv_i_probenr  TYPE QAISE-PROBENR, "   
lt_t_qamkrtab  TYPE STANDARD TABLE OF QAMKR, "   
lt_t_qasetab  TYPE STANDARD TABLE OF QASER, "   
lv_i_serialnr  TYPE QAISE-SERIALNR, "   
lv_i_qaklr  TYPE QAKLR, "   SPACE
lt_t_qasptab  TYPE STANDARD TABLE OF QASPR, "   
lv_i_qals  TYPE QALS, "   
lv_i_qamkr  TYPE QAMKR, "   
lv_i_qapo  TYPE QAPO, "   
lv_i_qaser  TYPE QASER, "   SPACE
lv_i_qaspr  TYPE QASPR. "   SPACE

  CALL FUNCTION 'QINT_EXAMPLE_USER_EXIT'  "Example: transferring measured values to results recording via a user exit
    EXPORTING
         I_STUECKNR = lv_i_stuecknr
         I_PROBENR = lv_i_probenr
         I_SERIALNR = lv_i_serialnr
         I_QAKLR = lv_i_qaklr
         I_QALS = lv_i_qals
         I_QAMKR = lv_i_qamkr
         I_QAPO = lv_i_qapo
         I_QASER = lv_i_qaser
         I_QASPR = lv_i_qaspr
    TABLES
         T_QAKLTAB = lt_t_qakltab
         T_QAMKRTAB = lt_t_qamkrtab
         T_QASETAB = lt_t_qasetab
         T_QASPTAB = lt_t_qasptab
. " QINT_EXAMPLE_USER_EXIT




ABAP code using 7.40 inline data declarations to call FM QINT_EXAMPLE_USER_EXIT

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 STUECKNR FROM QAISE INTO @DATA(ld_i_stuecknr).
 
"SELECT single PROBENR FROM QAISE INTO @DATA(ld_i_probenr).
 
 
 
"SELECT single SERIALNR FROM QAISE INTO @DATA(ld_i_serialnr).
 
DATA(ld_i_qaklr) = ' '.
 
 
 
 
 
DATA(ld_i_qaser) = ' '.
 
DATA(ld_i_qaspr) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!