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: 

Filter Issue in ALV Grid

former_member188001
Active Participant
0 Kudos

I am displaying the table in ALV Grid format. I have 4 fields in the table. The filter works for the first 3 fields, but doesnot work for the last field.

Please let me know what might be the issue.

Find the table declaration and the table population as in the below code

TYPES : BEGIN OF ty_message,
          avm_nr  TYPE avm_nr,
          motiv   TYPE motiv_nr,
          text    TYPE t100-text,
          msg     TYPE merep_orderstat,
        END OF ty_message.

DATA: gt_message TYPE STANDARD TABLE OF ty_message,
          gs_message TYPE ty_message.


    gs_message-avm_nr   = gs_upload-avm_nr.
    gs_message-motiv      = gs_upload-motiv.
    gs_message-text        = 'Order Successfully Changed'.
    gs_message-msg       = 'Success'.

    APPEND gs_message TO gt_message.
    CLEAR gs_message.

Regards,

Salil

1 ACCEPTED SOLUTION

naimesh_patel
Active Contributor
0 Kudos

Since the field MSG refer to MEREP_ORDERSTAT which is CHAR10, it will convert the content to UpperCase.

So, try like:


    gs_message-avm_nr   = gs_upload-avm_nr.
    gs_message-motiv      = gs_upload-motiv.
    gs_message-text        = 'Order Successfully Changed'.
    gs_message-msg       = 'SUCCESS'.
 
    APPEND gs_message TO gt_message.
    CLEAR gs_message.

Regards,

Naimesh Patel

2 REPLIES 2

naimesh_patel
Active Contributor
0 Kudos

Since the field MSG refer to MEREP_ORDERSTAT which is CHAR10, it will convert the content to UpperCase.

So, try like:


    gs_message-avm_nr   = gs_upload-avm_nr.
    gs_message-motiv      = gs_upload-motiv.
    gs_message-text        = 'Order Successfully Changed'.
    gs_message-msg       = 'SUCCESS'.
 
    APPEND gs_message TO gt_message.
    CLEAR gs_message.

Regards,

Naimesh Patel

0 Kudos

Cool !!

Thanks Naimesh. My problem got solved.