SAP QFRD_FILL_FAILURE_BASE_TABLES Function Module for NOTRANSL: Füllen der Basistabellen zur Fehlererfassung
QFRD_FILL_FAILURE_BASE_TABLES is a standard qfrd fill failure base tables 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: Füllen der Basistabellen zur 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 qfrd fill failure base tables FM, simply by entering the name QFRD_FILL_FAILURE_BASE_TABLES into the relevant SAP transaction such as SE37 or SE38.
Function Group: QFRD
Program Name: SAPLQFRD
Main Program: SAPLQFRD
Appliation area: Q
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function QFRD_FILL_FAILURE_BASE_TABLES 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 'QFRD_FILL_FAILURE_BASE_TABLES'"NOTRANSL: Füllen der Basistabellen zur Fehlererfassung.
EXPORTING
I_QFOH_WA = "Interface to defects recording
* I_FLG_MEMORY = ' ' "
* I_FLG_NEW_NOTIFICATION = ' ' "
* I_FLG_IDI_CALL = ' ' "
* I_FLG_FEART = ' ' "(=X)+check(=X) Check against report category
* I_FLG_LOS = ' ' "(=X)+check(=X) Check against lot
* I_FLG_PVO = ' ' "(=X)+check(=X) Check against operation
* I_FLG_MERKNR = ' ' "(=X)+check(=X) Check against characteristic
* I_FLG_SERIALNR = ' ' "(=X)+check(=X) Check against serial no. <> ' '
* I_FLG_CHECK = ' ' "Check and export functions active
* I_FLG_ENQUEUE = ' ' "(=X) Will be locked
* I_FLG_READ = ' ' "(=X) Read only, if locked
IMPORTING
E_ENQUEUE_ERROR = "
EXCEPTIONS
NO_ENTRY = 1
IMPORTING Parameters details for QFRD_FILL_FAILURE_BASE_TABLES
I_QFOH_WA - Interface to defects recording
Data type: QFOBEOptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_MEMORY -
Data type: QM00-QKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_NEW_NOTIFICATION -
Data type: QM00-QKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_IDI_CALL -
Data type: QM00-QKZDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_FLG_FEART - (=X)+check(=X) Check against report category
Data type: QM00-QKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_LOS - (=X)+check(=X) Check against lot
Data type: QM00-QKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_PVO - (=X)+check(=X) Check against operation
Data type: QM00-QKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_MERKNR - (=X)+check(=X) Check against characteristic
Data type: QM00-QKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_SERIALNR - (=X)+check(=X) Check against serial no. <> ' '
Data type: QM00-QKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_CHECK - Check and export functions active
Data type: QM00-QKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_ENQUEUE - (=X) Will be locked
Data type: QM00-QKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_READ - (=X) Read only, if locked
Data type: QM00-QKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for QFRD_FILL_FAILURE_BASE_TABLES
E_ENQUEUE_ERROR -
Data type: QKZOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_ENTRY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for QFRD_FILL_FAILURE_BASE_TABLES 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_no_entry | TYPE STRING, " | |||
| lv_i_qfoh_wa | TYPE QFOBE, " | |||
| lv_e_enqueue_error | TYPE QKZ, " | |||
| lv_i_flg_memory | TYPE QM00-QKZ, " SPACE | |||
| lv_i_flg_new_notification | TYPE QM00-QKZ, " SPACE | |||
| lv_i_flg_idi_call | TYPE QM00-QKZ, " SPACE | |||
| lv_i_flg_feart | TYPE QM00-QKZ, " SPACE | |||
| lv_i_flg_los | TYPE QM00-QKZ, " SPACE | |||
| lv_i_flg_pvo | TYPE QM00-QKZ, " SPACE | |||
| lv_i_flg_merknr | TYPE QM00-QKZ, " SPACE | |||
| lv_i_flg_serialnr | TYPE QM00-QKZ, " SPACE | |||
| lv_i_flg_check | TYPE QM00-QKZ, " SPACE | |||
| lv_i_flg_enqueue | TYPE QM00-QKZ, " SPACE | |||
| lv_i_flg_read | TYPE QM00-QKZ. " SPACE |
|   CALL FUNCTION 'QFRD_FILL_FAILURE_BASE_TABLES' "NOTRANSL: Füllen der Basistabellen zur Fehlererfassung |
| EXPORTING | ||
| I_QFOH_WA | = lv_i_qfoh_wa | |
| I_FLG_MEMORY | = lv_i_flg_memory | |
| I_FLG_NEW_NOTIFICATION | = lv_i_flg_new_notification | |
| I_FLG_IDI_CALL | = lv_i_flg_idi_call | |
| I_FLG_FEART | = lv_i_flg_feart | |
| I_FLG_LOS | = lv_i_flg_los | |
| I_FLG_PVO | = lv_i_flg_pvo | |
| I_FLG_MERKNR | = lv_i_flg_merknr | |
| I_FLG_SERIALNR | = lv_i_flg_serialnr | |
| I_FLG_CHECK | = lv_i_flg_check | |
| I_FLG_ENQUEUE | = lv_i_flg_enqueue | |
| I_FLG_READ | = lv_i_flg_read | |
| IMPORTING | ||
| E_ENQUEUE_ERROR | = lv_e_enqueue_error | |
| EXCEPTIONS | ||
| NO_ENTRY = 1 | ||
| . " QFRD_FILL_FAILURE_BASE_TABLES | ||
ABAP code using 7.40 inline data declarations to call FM QFRD_FILL_FAILURE_BASE_TABLES
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 QKZ FROM QM00 INTO @DATA(ld_i_flg_memory). | ||||
| DATA(ld_i_flg_memory) | = ' '. | |||
| "SELECT single QKZ FROM QM00 INTO @DATA(ld_i_flg_new_notification). | ||||
| DATA(ld_i_flg_new_notification) | = ' '. | |||
| "SELECT single QKZ FROM QM00 INTO @DATA(ld_i_flg_idi_call). | ||||
| DATA(ld_i_flg_idi_call) | = ' '. | |||
| "SELECT single QKZ FROM QM00 INTO @DATA(ld_i_flg_feart). | ||||
| DATA(ld_i_flg_feart) | = ' '. | |||
| "SELECT single QKZ FROM QM00 INTO @DATA(ld_i_flg_los). | ||||
| DATA(ld_i_flg_los) | = ' '. | |||
| "SELECT single QKZ FROM QM00 INTO @DATA(ld_i_flg_pvo). | ||||
| DATA(ld_i_flg_pvo) | = ' '. | |||
| "SELECT single QKZ FROM QM00 INTO @DATA(ld_i_flg_merknr). | ||||
| DATA(ld_i_flg_merknr) | = ' '. | |||
| "SELECT single QKZ FROM QM00 INTO @DATA(ld_i_flg_serialnr). | ||||
| DATA(ld_i_flg_serialnr) | = ' '. | |||
| "SELECT single QKZ FROM QM00 INTO @DATA(ld_i_flg_check). | ||||
| DATA(ld_i_flg_check) | = ' '. | |||
| "SELECT single QKZ FROM QM00 INTO @DATA(ld_i_flg_enqueue). | ||||
| DATA(ld_i_flg_enqueue) | = ' '. | |||
| "SELECT single QKZ FROM QM00 INTO @DATA(ld_i_flg_read). | ||||
| DATA(ld_i_flg_read) | = ' '. | |||
Search for further information about these or an SAP related objects