06-29-2007 6:44 AM
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
06-29-2007 7:03 AM
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
06-29-2007 7:19 AM
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
06-29-2007 8:24 AM
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.
06-29-2007 8:25 AM
i guess there is problem with some select
can u please paste your code over here?
thnkx
bhanu
06-29-2007 8:33 AM
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