Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding filter operation on ALV Grid

mahesh_jagnani
Participant
0 Kudos

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.

1 ACCEPTED SOLUTION

former_member585060
Active Contributor
0 Kudos

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

4 REPLIES 4

former_member585060
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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.

mahesh_jagnani
Participant
0 Kudos

thks