SAP QFFE_ENQUEUE_DEFECT_RECORDING Function Module for NOTRANSL: Setzen Sperre zentral für Fehlererfassung









QFFE_ENQUEUE_DEFECT_RECORDING is a standard qffe enqueue defect recording 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: Setzen Sperre zentral für Fehlererfassung 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 qffe enqueue defect recording FM, simply by entering the name QFFE_ENQUEUE_DEFECT_RECORDING into the relevant SAP transaction such as SE37 or SE38.

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



Function QFFE_ENQUEUE_DEFECT_RECORDING 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 'QFFE_ENQUEUE_DEFECT_RECORDING'"NOTRANSL: Setzen Sperre zentral für Fehlererfassung
EXPORTING
I_PRUEFLOS = "
* I_FLG_ONE_NOTIFICATION = "
* I_FLG_NO_DIALOG = "No dialog
* I_OBJNR = "
* I_VORGLFNR = "
* I_VORNR = "
* I_FLG_LOS = "
* I_FLG_PVO = "
* I_FLG_MK = "
* I_FLG_SERIALNUMBER = "
* I_FLG_CHANGE_ACTIVITY = "

IMPORTING
E_FLG_NEW_NOTIFICATION = "

CHANGING
* P_ACTIVITY = "

EXCEPTIONS
CANCEL = 1 LOT_BLOCKED = 2 DEFECTS_RECORDING_BLOCKED = 3 OPERATION_BLOCKED = 4
.



IMPORTING Parameters details for QFFE_ENQUEUE_DEFECT_RECORDING

I_PRUEFLOS -

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

I_FLG_ONE_NOTIFICATION -

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

I_FLG_NO_DIALOG - No dialog

Data type: QM00-QKZ
Optional: Yes
Call by Reference: Yes

I_OBJNR -

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

I_VORGLFNR -

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

I_VORNR -

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

I_FLG_LOS -

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

I_FLG_PVO -

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

I_FLG_MK -

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

I_FLG_SERIALNUMBER -

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

I_FLG_CHANGE_ACTIVITY -

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

EXPORTING Parameters details for QFFE_ENQUEUE_DEFECT_RECORDING

E_FLG_NEW_NOTIFICATION -

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

CHANGING Parameters details for QFFE_ENQUEUE_DEFECT_RECORDING

P_ACTIVITY -

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

EXCEPTIONS details

CANCEL -

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

LOT_BLOCKED -

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

DEFECTS_RECORDING_BLOCKED -

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

OPERATION_BLOCKED -

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

Copy and paste ABAP code example for QFFE_ENQUEUE_DEFECT_RECORDING 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_cancel  TYPE STRING, "   
lv_i_prueflos  TYPE QALS-PRUEFLOS, "   
lv_p_activity  TYPE TQ01-AKTIVITAET, "   
lv_e_flg_new_notification  TYPE QM00-QKZ, "   
lv_i_flg_one_notification  TYPE QM00-QKZ, "   
lv_i_flg_no_dialog  TYPE QM00-QKZ, "   
lv_i_objnr  TYPE QALS-OBJNR, "   
lv_lot_blocked  TYPE QALS, "   
lv_i_vorglfnr  TYPE QAMV-VORGLFNR, "   
lv_defects_recording_blocked  TYPE QAMV, "   
lv_i_vornr  TYPE QAPO-VORNR, "   
lv_operation_blocked  TYPE QAPO, "   
lv_i_flg_los  TYPE QM00-QKZ, "   
lv_i_flg_pvo  TYPE QM00-QKZ, "   
lv_i_flg_mk  TYPE QM00-QKZ, "   
lv_i_flg_serialnumber  TYPE QM00-QKZ, "   
lv_i_flg_change_activity  TYPE QM00-QKZ. "   

  CALL FUNCTION 'QFFE_ENQUEUE_DEFECT_RECORDING'  "NOTRANSL: Setzen Sperre zentral für Fehlererfassung
    EXPORTING
         I_PRUEFLOS = lv_i_prueflos
         I_FLG_ONE_NOTIFICATION = lv_i_flg_one_notification
         I_FLG_NO_DIALOG = lv_i_flg_no_dialog
         I_OBJNR = lv_i_objnr
         I_VORGLFNR = lv_i_vorglfnr
         I_VORNR = lv_i_vornr
         I_FLG_LOS = lv_i_flg_los
         I_FLG_PVO = lv_i_flg_pvo
         I_FLG_MK = lv_i_flg_mk
         I_FLG_SERIALNUMBER = lv_i_flg_serialnumber
         I_FLG_CHANGE_ACTIVITY = lv_i_flg_change_activity
    IMPORTING
         E_FLG_NEW_NOTIFICATION = lv_e_flg_new_notification
    CHANGING
         P_ACTIVITY = lv_p_activity
    EXCEPTIONS
        CANCEL = 1
        LOT_BLOCKED = 2
        DEFECTS_RECORDING_BLOCKED = 3
        OPERATION_BLOCKED = 4
. " QFFE_ENQUEUE_DEFECT_RECORDING




ABAP code using 7.40 inline data declarations to call FM QFFE_ENQUEUE_DEFECT_RECORDING

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 AKTIVITAET FROM TQ01 INTO @DATA(ld_p_activity).
 
"SELECT single QKZ FROM QM00 INTO @DATA(ld_e_flg_new_notification).
 
"SELECT single QKZ FROM QM00 INTO @DATA(ld_i_flg_one_notification).
 
"SELECT single QKZ FROM QM00 INTO @DATA(ld_i_flg_no_dialog).
 
"SELECT single OBJNR FROM QALS INTO @DATA(ld_i_objnr).
 
 
"SELECT single VORGLFNR FROM QAMV INTO @DATA(ld_i_vorglfnr).
 
 
"SELECT single VORNR FROM QAPO INTO @DATA(ld_i_vornr).
 
 
"SELECT single QKZ FROM QM00 INTO @DATA(ld_i_flg_los).
 
"SELECT single QKZ FROM QM00 INTO @DATA(ld_i_flg_pvo).
 
"SELECT single QKZ FROM QM00 INTO @DATA(ld_i_flg_mk).
 
"SELECT single QKZ FROM QM00 INTO @DATA(ld_i_flg_serialnumber).
 
"SELECT single QKZ FROM QM00 INTO @DATA(ld_i_flg_change_activity).
 


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!