SAP QEEM_FETCH_LAST_QASETAB Function Module for NOTRANSL: Holen der Einzelwerttabelle









QEEM_FETCH_LAST_QASETAB is a standard qeem fetch last qasetab 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: Holen der Einzelwerttabelle 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 qeem fetch last qasetab FM, simply by entering the name QEEM_FETCH_LAST_QASETAB into the relevant SAP transaction such as SE37 or SE38.

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



Function QEEM_FETCH_LAST_QASETAB 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 'QEEM_FETCH_LAST_QASETAB'"NOTRANSL: Holen der Einzelwerttabelle
EXPORTING
I_PRUEFLOS = "Inspection Lot Number
* I_VORGLFNR = '00000000' "
I_MERKNR = "Characteristic Number
I_PROBENR = "Sample Number
* I_STUECKNR = '0000' "Counter for Inspection Unit Number
* I_NODBREAD = ' ' "

IMPORTING
E_QASER = "

TABLES
* T_QASETAB = "

EXCEPTIONS
NO_INSPECTION_LOT = 1 QAMKTAB_EMPTY = 2 QASETAB_EMPTY = 3
.




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_SAPLQEEM_001 Customer Function for Calculating Formulas in Results Recording
EXIT_SAPLQEEM_002 Customer Function: Add. Fns for Importing Insp. Chars in Results Recording
EXIT_SAPLQEEM_003 Customer Function: Add. Functions After Valuating Insp. Characteristics
EXIT_SAPLQEEM_004 Customer Function: Add. Functions After Valuating Partial Samples
EXIT_SAPLQEEM_006 Customer Function: Add. Functions After Closing Insp. Characteristics
EXIT_SAPLQEEM_007 Customer Exit: Additional Functions After Closing Partial Samples
EXIT_SAPLQEEM_011 Customer Function: Add. Functions Before Valuating Insp. Characteristics
EXIT_SAPLQEEM_012 Customer Function: Additional Functions Before Valuating Partial Samples
EXIT_SAPLQEEM_015 Customer Function: Add. Functions After Entering Individual Results
EXIT_SAPLQEEM_020 Customer Function: Additional Functions After Entering Inspector
EXIT_SAPLQEEM_021 Customer Function: Add. Functions for User Key +US1 (Char. Single Screen)
EXIT_SAPLQEEM_022 Customer Function: Add. Functions for User Key +US2 (Char. Single Screen)
EXIT_SAPLQEEM_023 Customer Function: Add. Functions for User Key +US3 (Char. Single Screen)
EXIT_SAPLQEEM_024 Customer Function: Add. Functions for User Key +US4 (Char. Single Screen)
EXIT_SAPLQEEM_025 Customer Function: Add. Functions for User Key +US1 as Pushbutton
EXIT_SAPLQEEM_026 Customer Function: Add. Functions for User Key +US2 as Pushbutton
EXIT_SAPLQEEM_027 Customer Function: Add. Functions for User Key +US3 as Pushbutton
EXIT_SAPLQEEM_028 Customer Function: Add. Functions for User Key +US4 as Pushbutton
EXIT_SAPLQEEM_029 Customer-Function for Subscreen Characteristic Overview
EXIT_SAPLQEEM_030 Customer Function for Subscreen Characteristic Single Screen
EXIT_SAPLQEEM_031 Customer Function Creating Table with External Numbers
EXIT_SAPLQEEM_032 Customer Function Characteristic Text in Logon Language

IMPORTING Parameters details for QEEM_FETCH_LAST_QASETAB

I_PRUEFLOS - Inspection Lot Number

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

I_VORGLFNR -

Data type: QAPO-VORGLFNR
Default: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MERKNR - Characteristic Number

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

I_PROBENR - Sample Number

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

I_STUECKNR - Counter for Inspection Unit Number

Data type: QASER-STUECKNR
Default: '0000'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NODBREAD -

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

EXPORTING Parameters details for QEEM_FETCH_LAST_QASETAB

E_QASER -

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

TABLES Parameters details for QEEM_FETCH_LAST_QASETAB

T_QASETAB -

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

EXCEPTIONS details

NO_INSPECTION_LOT - Inspection Lot Does Not Exist

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

QAMKTAB_EMPTY -

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

QASETAB_EMPTY -

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

Copy and paste ABAP code example for QEEM_FETCH_LAST_QASETAB 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_e_qaser  TYPE QASER, "   
lt_t_qasetab  TYPE STANDARD TABLE OF QASER, "   
lv_i_prueflos  TYPE QALS-PRUEFLOS, "   
lv_no_inspection_lot  TYPE QALS, "   
lv_i_vorglfnr  TYPE QAPO-VORGLFNR, "   '00000000'
lv_qamktab_empty  TYPE QAPO, "   
lv_i_merknr  TYPE QAMKR-MERKNR, "   
lv_qasetab_empty  TYPE QAMKR, "   
lv_i_probenr  TYPE QASER-PROBENR, "   
lv_i_stuecknr  TYPE QASER-STUECKNR, "   '0000'
lv_i_nodbread  TYPE QM00-QKZ. "   SPACE

  CALL FUNCTION 'QEEM_FETCH_LAST_QASETAB'  "NOTRANSL: Holen der Einzelwerttabelle
    EXPORTING
         I_PRUEFLOS = lv_i_prueflos
         I_VORGLFNR = lv_i_vorglfnr
         I_MERKNR = lv_i_merknr
         I_PROBENR = lv_i_probenr
         I_STUECKNR = lv_i_stuecknr
         I_NODBREAD = lv_i_nodbread
    IMPORTING
         E_QASER = lv_e_qaser
    TABLES
         T_QASETAB = lt_t_qasetab
    EXCEPTIONS
        NO_INSPECTION_LOT = 1
        QAMKTAB_EMPTY = 2
        QASETAB_EMPTY = 3
. " QEEM_FETCH_LAST_QASETAB




ABAP code using 7.40 inline data declarations to call FM QEEM_FETCH_LAST_QASETAB

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 PRUEFLOS FROM QALS INTO @DATA(ld_i_prueflos).
 
 
"SELECT single VORGLFNR FROM QAPO INTO @DATA(ld_i_vorglfnr).
DATA(ld_i_vorglfnr) = '00000000'.
 
 
"SELECT single MERKNR FROM QAMKR INTO @DATA(ld_i_merknr).
 
 
"SELECT single PROBENR FROM QASER INTO @DATA(ld_i_probenr).
 
"SELECT single STUECKNR FROM QASER INTO @DATA(ld_i_stuecknr).
DATA(ld_i_stuecknr) = '0000'.
 
"SELECT single QKZ FROM QM00 INTO @DATA(ld_i_nodbread).
DATA(ld_i_nodbread) = ' '.
 


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!