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: 

ALV grid: Filter option

Former Member
0 Kudos

Hi,

I am dynamically building internal table and displaying the data in alv grid. Now when I tried using filter option, this is not working. This is because when F4 is pressed for selecting one of the values after setting filter, it is not picking the correct values.

Ex: if row contains 000999 it is picking 999. So when user selects this, no value is selected even though value exists.

Is there any solution?

Regards,

Madhu

5 REPLIES 5

Former Member
0 Kudos

Hi,

i suppose there might be a mismatch in the data type u have used in ur Output table. I think u might have used Characte field in place of Numeric field in the field catalog. Please Check that.

Hope this might be useful to u.

Reward points if useful.

Regrds,

Vijayakumar V

0 Kudos

Thanks Vijay for replying.

The field is KUNNR. I have not specified the datatype while building fieldcatalogue.

I tried mentioning the datatype, domeinname. But did not work.

Rehards,

Madhu

Former Member
0 Kudos

Yes, Madhukeswar,

U need to change the data type of kunnr as numeric-character, at the time of declaration.

Else, before u are selecting the Kunnr number, fill the Kunnr field with '000000000'.

then move whatever the value u selected.

Hope this may help u.

Reward me if it helps u.

Former Member
0 Kudos

i guess there is problem with some select

can u please paste your code over here?

thnkx

bhanu

0 Kudos

My select statement is:

IF gt_vbrp IS NOT INITIAL.

SELECT vbeln

kunnr

audat

auart

vkorg

vtweg

spart

vkbur

zz_gsa_field2

zz_gsa_text2

zz_gsa_field3

zz_gsa_text3

knumv

vkgrp

waerk

FROM vbak

INTO TABLE gt_vbak

FOR ALL ENTRIES IN gt_vbrp

WHERE vbeln EQ gt_vbrp-aubel.

ENDIF.

After this I move this to a dynamic internal table.

For building field catalogue I supply fieldname, fieldlength and col text.

I use CL_alv_TABLE_CREATE to create dynamic internal table.

Thanks and regards,

Madhu