04-06-2009 8:08 AM
Hi All,
There is one field for KUNNR on the ALV Grid..We have created fieldcatlog manually.Once we get output and select this coloum for filter then we have to enter the search value like '0000012345' then it works,but if i enter '12345' then we are not getting any output after getting data filtered.
Can you plz tell how to solve this.
Tahnks in advance.
04-06-2009 8:16 AM
Hi,
Try to use this FM
CONVERSION_EXIT_ALPHA_INPUT
it automatically inputs 0 to a number
or
Use CONVERSION_EXIT_ALPHA_INPUT
to remove leading zeros for ALV output display, so that you use directly the number
Regards
Bala Krishna
Edited by: Bala Krishna on Apr 6, 2009 12:47 PM
04-06-2009 8:16 AM
Hi,
Try to use this FM
CONVERSION_EXIT_ALPHA_INPUT
it automatically inputs 0 to a number
or
Use CONVERSION_EXIT_ALPHA_INPUT
to remove leading zeros for ALV output display, so that you use directly the number
Regards
Bala Krishna
Edited by: Bala Krishna on Apr 6, 2009 12:47 PM
04-06-2009 8:19 AM
hi
there is a parameter in the ALV function module IT_FILTER.
you have to specify the field name, tab name and the convertion exit (like ALPHA) in that internal table and pass it to the FM, i guess it would solve your problem.
-srini
04-06-2009 9:13 AM
Hi ,
I am passing
DATA:WT_TAB TYPE SLIS_T_FILTER_ALV ,
ws_fieldcat1 TYPE SLIS_FILTER_ALV.
ws_fieldcat1-fieldname = 'SHIP_TO'.
ws_fieldcat1-tabname = 'WT_DATA'.
ws_fieldcat1-convexit = 'ALPHA'.
APPEND ws_fieldcat1 TO WT_TAB.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_buffer_active = wc_x
i_callback_program = wv_repid
is_layout = ws_layout
it_fieldcat = wt_fieldcat
i_save = 'A'
it_events = wt_event
IT_FILTER = WT_TAB
TABLES
t_outtab = wt_data
EXCEPTIONS
program_error = 1
OTHERS = 2.
but it is giving dump.
Can you please tell which other field we should pass.
thks.
04-09-2009 10:16 AM