2011 Nov 10 6:02 AM
Hello Experts,
I had added Filter in table control. For this I am using FM 'LVC_FILTER'.
But I am getting error as "Filter Internal Error. 15"
Below is my code:
data layo type LVC_S_LAYO.
data GT_FILTER_INDEX type LVC_T_FIDX.
data itab type TABLE OF cxtab_column with HEADER LINE.
loop at tc_item-cols into itab where selected = 'X'.
append itab.
name1-fieldname = itab-screen-name+12.
append name1.
endloop.
loop at itab.
cnt = cnt + 1.
wa_fieldcat-col_pos = cnt.
wa_fieldcat-fieldname = itab-screen-name+12.
wa_fieldcat-tabname = 'GT_FABALOTI'.
APPEND wa_fieldcat TO it_fieldcat1.
CLEAR wa_fieldcat.
endloop.
layo-zebra = 'X'.
CALL FUNCTION 'LVC_FILTER'
EXPORTING
I_CALLBACK_PROGRAMM = sy-repid
it_fieldcat = it_fieldcat1
IT_SELECTED_COLS = name1[]
* IT_VALUE_UNIT =
* IT_GROUPLEVELS =
is_layout = layo
* IS_SELFIELD =
* IT_GROUPS =
* IS_FILT_LAYOUT =
* IT_EVENTS =
* I_NO_DIALOG =
* IT_EXCEPT_QINFO =
* I_IGNORING_CASE =
IMPORTING
ET_FILTER_INDEX = gt_filter_index
* ET_GROUPLEVELS_FILTER =
* ET_FILTER_INDEX_INSIDE =
* E_FILTER_FLAGNAME =
tables
it_data = gt_fabaloti[]
changing
ct_filter = filter_ranges[]
* EXCEPTIONS
* NO_CHANGE = 1
* OTHERS = 2
.How should I correct the error.
Please help.
2011 Nov 14 2:03 AM
There might problem in filling filed catalog, check you field catalog table:
FILTER INTERNAL ERROR 15.
Note that, the number 15 meant for one of the exceptions in FM FREE_SELECTIONS_INIT. so fill-out the FIELDCATALOG.
15 - no filed type ( solution: pass DATATYPE and INTYPE in field catalog structure)
Or you can use K_KKB_OUTTAB_FILTER_CRITERIA_K - serves as FILTER DIALOG as well as filter screen. (keep note of above point )
2011 Nov 14 2:03 AM
There might problem in filling filed catalog, check you field catalog table:
FILTER INTERNAL ERROR 15.
Note that, the number 15 meant for one of the exceptions in FM FREE_SELECTIONS_INIT. so fill-out the FIELDCATALOG.
15 - no filed type ( solution: pass DATATYPE and INTYPE in field catalog structure)
Or you can use K_KKB_OUTTAB_FILTER_CRITERIA_K - serves as FILTER DIALOG as well as filter screen. (keep note of above point )
2011 Nov 14 11:27 AM
Hello Rama,
Thank you for your reply.
Now I am able to generate filtered values in my table control. I am using the FM 'LVC_FILTER'.
But I am not able to find how to add search help functionality for the input fields on the screen generated by
FM 'LVC_FILTER' to enter filter values.
Please help.
2011 Nov 14 11:35 AM
Hi,
You better go ahead and replace FM, K_KKB_OUTTAB_FILTER_CRITERIA_K. 5 mins job. It does serve the purpose of FIlter as well as F4 help .
Refer to Program : BCALV_TEST_FULLSCREEN_FILTER
Tick Simple list and check.
Input to K_KKB_OUTTAB_FILTER_CRITERIA_K is almost same as LVC_FILTER.
Hope this helps. Let me know if any.
Rama
2011 Nov 15 3:17 PM
Thank you for your reply.
I had solved the issue with LVC_FILTER FM only.
In field catalog I had set 'f4avalabl' parameter as 'X'.
2012 Jun 25 7:35 AM
Hi Shubham ,
I too have the same requirement . Can you please send me the code because I am not getting these points.
IMPORTING
ET_FILTER_INDEX = gt_filter_index
* ET_GROUPLEVELS_FILTER =
* ET_FILTER_INDEX_INSIDE =
* E_FILTER_FLAGNAME =
tables
it_data = gt_fabaloti[]
changing
ct_filter = filter_ranges[]
Regards
Shek