Application Development and Automation 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: 
Read only

alv filter not working

knaveennavi
Explorer
0 Likes
2,369

alv filter not working

wa_fieldcat-fieldname = fieldname.
wa_fieldcat-seltext_m = desc.
wa_fieldcat-ref_fieldname = reffield.
wa_fieldcat-ref_tabname = reftable.
wa_fieldcat-col_pos = gv_pos.

IF p_rad2 = 'X' AND sub_tot IS NOT INITIAL.
wa_fieldcat-do_sum = sub_tot.
ENDIF.
gv_pos = gv_pos + 1.


APPEND wa_fieldcat TO git_fieldcat.
CLEAR wa_fieldcat.

pls guide me

alv filter not working

wa_fieldcat-fieldname = fieldname.
wa_fieldcat-seltext_m = desc.
wa_fieldcat-ref_fieldname = reffield.
wa_fieldcat-ref_tabname = reftable.
wa_fieldcat-col_pos = gv_pos.

IF p_rad2 = 'X' AND sub_tot IS NOT INITIAL.
wa_fieldcat-do_sum = sub_tot.
ENDIF.
gv_pos = gv_pos + 1.


APPEND wa_fieldcat TO git_fieldcat.
CLEAR wa_fieldcat.

pls guide me

7 REPLIES 7
Read only

FredericGirod
Active Contributor
2,259

There is no question, no screenshot of the issue, no explanation ......

and the code is really short to understand what you have done.

We didn't know the kind of class, FM you have used ........

Read only

knaveennavi
Explorer
0 Likes
2,259

I had one issue in filtering one particular field actually the problem is the filter not working for small letter values but working fine for caps values. That filed's Domain has a fixed values.

Read only

former_member781504
Discoverer
2,259

Hi, Naveen.

Have you set FIELDCAT-LOWERCASE = X when you create the fieldcatalogue for that field?

Read only

knaveennavi
Explorer
0 Likes
2,259

Hi Raja,

No, didn't like that.

but the domain has fixed values as given below.

Fix. Val. Short Description

MONTHLY Monthly

QUARTERLY Quarterly

in ALV output, the filter is not working when that field contains small letter values but working fine when that field contains cap values.

Read only

Sandra_Rossi
Active Contributor
2,259

Then the bug is because you have set the "lower case" flag in your domain.

Read only

knaveennavi
Explorer
0 Likes
2,259

ok thanks rossi.

Read only

Sandra_Rossi
Active Contributor
0 Likes
2,259

Didn't receive a notification, just saw your comment inadvertently. Did you solve your issue?

If you want to target someone, if this person has posted an Answer, use the button COMMENT, if this person is the Original Poster of the question he/she will be automatically informed, otherwise copy/paste their hyperlinked name so that the person receives a warning (NB: @ doesn't work/but typing this character will suggest hyperlinked names).

Example: naveennavi