SAP CNFA_FIND_VALUE_IN_TABLE Function Module for NOTRANSL: Projekt-Infosystem: Eintrag/Einträge mit bestimmtem Wert in Tabe
CNFA_FIND_VALUE_IN_TABLE is a standard cnfa find value in table 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: Projekt-Infosystem: Eintrag/Einträge mit bestimmtem Wert in Tabe 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 cnfa find value in table FM, simply by entering the name CNFA_FIND_VALUE_IN_TABLE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CNFA
Program Name: SAPLCNFA
Main Program: SAPLCNFA
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CNFA_FIND_VALUE_IN_TABLE 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 'CNFA_FIND_VALUE_IN_TABLE'"NOTRANSL: Projekt-Infosystem: Eintrag/Einträge mit bestimmtem Wert in Tabe.
EXPORTING
* I_FLG_POPUP = 'X' "Checkbox
* I_END_TABIX = "ABAP System Field: Row Index of Internal Tables
* I_FLG_MULTIPLE = "Checkbox
* I_FLG_BACKWARDS = "Indicator: Search backwards
* I_FLG_CIRCULAR = "Checkbox
* I_FIELDTEXT = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_FIELD = "Field Name
I_DDIC_TABNAME = "Table Name
I_DDIC_FIELDNAME = "Field Name
I_TITLE = "Title
* I_ACTUAL_TABIX = "ABAP System Field: Row Index of Internal Tables
* I_ACTUAL_FIELD = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_START_TABIX = '1' "ABAP System Field: Row Index of Internal Tables
IMPORTING
E_FOUND_TABIX = "DE-EN-LANG-SWITCH-NO-TRANSLATION
E_FOUND_FIELD = "DE-EN-LANG-SWITCH-NO-TRANSLATION
CHANGING
* C_FIELDVALUE = "Field Value
TABLES
T_TABLE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* T_FOUND_TABIX = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* T_FIELDS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
EXCEPTIONS
CANCEL = 1 NO_ENTRIES_EXPORTABLE = 2 NO_ENTRY_FOUND = 3 NO_FOUND_TABIX_TABIX = 4 NO_FOUND_TABIX_FIELD = 5
IMPORTING Parameters details for CNFA_FIND_VALUE_IN_TABLE
I_FLG_POPUP - Checkbox
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_END_TABIX - ABAP System Field: Row Index of Internal Tables
Data type: SY-TABIXOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_MULTIPLE - Checkbox
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_BACKWARDS - Indicator: Search backwards
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_CIRCULAR - Checkbox
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FIELDTEXT - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FIELD - Field Name
Data type: DFIES-FIELDNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DDIC_TABNAME - Table Name
Data type: DFIES-TABNAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_DDIC_FIELDNAME - Field Name
Data type: DFIES-FIELDNAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_TITLE - Title
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
I_ACTUAL_TABIX - ABAP System Field: Row Index of Internal Tables
Data type: SY-TABIXOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ACTUAL_FIELD - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
I_START_TABIX - ABAP System Field: Row Index of Internal Tables
Data type: SY-TABIXDefault: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CNFA_FIND_VALUE_IN_TABLE
E_FOUND_TABIX - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
E_FOUND_FIELD - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for CNFA_FIND_VALUE_IN_TABLE
C_FIELDVALUE - Field Value
Data type:Optional: Yes
Call by Reference: Yes
TABLES Parameters details for CNFA_FIND_VALUE_IN_TABLE
T_TABLE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
T_FOUND_TABIX - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
T_FIELDS - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CANCEL - Cancel
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ENTRIES_EXPORTABLE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ENTRY_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_FOUND_TABIX_TABIX - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_FOUND_TABIX_FIELD - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CNFA_FIND_VALUE_IN_TABLE 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, " | |||
| lt_t_table | TYPE STANDARD TABLE OF STRING, " | |||
| lv_i_flg_popup | TYPE XFELD, " 'X' | |||
| lv_c_fieldvalue | TYPE XFELD, " | |||
| lv_e_found_tabix | TYPE XFELD, " | |||
| lv_i_end_tabix | TYPE SY-TABIX, " | |||
| lv_i_flg_multiple | TYPE XFELD, " | |||
| lv_i_flg_backwards | TYPE XFELD, " | |||
| lv_i_flg_circular | TYPE XFELD, " | |||
| lv_i_fieldtext | TYPE XFELD, " | |||
| lv_e_found_field | TYPE XFELD, " | |||
| lt_t_found_tabix | TYPE STANDARD TABLE OF XFELD, " | |||
| lv_no_entries_exportable | TYPE XFELD, " | |||
| lv_i_field | TYPE DFIES-FIELDNAME, " | |||
| lt_t_fields | TYPE STANDARD TABLE OF DFIES, " | |||
| lv_no_entry_found | TYPE DFIES, " | |||
| lv_i_ddic_tabname | TYPE DFIES-TABNAME, " | |||
| lv_no_found_tabix_tabix | TYPE DFIES, " | |||
| lv_i_ddic_fieldname | TYPE DFIES-FIELDNAME, " | |||
| lv_no_found_tabix_field | TYPE DFIES, " | |||
| lv_i_title | TYPE DFIES, " | |||
| lv_i_actual_tabix | TYPE SY-TABIX, " | |||
| lv_i_actual_field | TYPE SY, " | |||
| lv_i_start_tabix | TYPE SY-TABIX. " '1' |
|   CALL FUNCTION 'CNFA_FIND_VALUE_IN_TABLE' "NOTRANSL: Projekt-Infosystem: Eintrag/Einträge mit bestimmtem Wert in Tabe |
| EXPORTING | ||
| I_FLG_POPUP | = lv_i_flg_popup | |
| I_END_TABIX | = lv_i_end_tabix | |
| I_FLG_MULTIPLE | = lv_i_flg_multiple | |
| I_FLG_BACKWARDS | = lv_i_flg_backwards | |
| I_FLG_CIRCULAR | = lv_i_flg_circular | |
| I_FIELDTEXT | = lv_i_fieldtext | |
| I_FIELD | = lv_i_field | |
| I_DDIC_TABNAME | = lv_i_ddic_tabname | |
| I_DDIC_FIELDNAME | = lv_i_ddic_fieldname | |
| I_TITLE | = lv_i_title | |
| I_ACTUAL_TABIX | = lv_i_actual_tabix | |
| I_ACTUAL_FIELD | = lv_i_actual_field | |
| I_START_TABIX | = lv_i_start_tabix | |
| IMPORTING | ||
| E_FOUND_TABIX | = lv_e_found_tabix | |
| E_FOUND_FIELD | = lv_e_found_field | |
| CHANGING | ||
| C_FIELDVALUE | = lv_c_fieldvalue | |
| TABLES | ||
| T_TABLE | = lt_t_table | |
| T_FOUND_TABIX | = lt_t_found_tabix | |
| T_FIELDS | = lt_t_fields | |
| EXCEPTIONS | ||
| CANCEL = 1 | ||
| NO_ENTRIES_EXPORTABLE = 2 | ||
| NO_ENTRY_FOUND = 3 | ||
| NO_FOUND_TABIX_TABIX = 4 | ||
| NO_FOUND_TABIX_FIELD = 5 | ||
| . " CNFA_FIND_VALUE_IN_TABLE | ||
ABAP code using 7.40 inline data declarations to call FM CNFA_FIND_VALUE_IN_TABLE
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.| DATA(ld_i_flg_popup) | = 'X'. | |||
| "SELECT single TABIX FROM SY INTO @DATA(ld_i_end_tabix). | ||||
| "SELECT single FIELDNAME FROM DFIES INTO @DATA(ld_i_field). | ||||
| "SELECT single TABNAME FROM DFIES INTO @DATA(ld_i_ddic_tabname). | ||||
| "SELECT single FIELDNAME FROM DFIES INTO @DATA(ld_i_ddic_fieldname). | ||||
| "SELECT single TABIX FROM SY INTO @DATA(ld_i_actual_tabix). | ||||
| "SELECT single TABIX FROM SY INTO @DATA(ld_i_start_tabix). | ||||
| DATA(ld_i_start_tabix) | = '1'. | |||
Search for further information about these or an SAP related objects