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: 

Problem in ALV set filter option

Former Member
0 Kudos

Hi to all

I have an issue regarding ALV report :

I have developed an ALV report and it is showing report output correctly as required.

when I further filter it on a particular field using SET FILTER OPTION , the length of the field is shorter than displayed.

Why this happens so.

BUT for the same field in a standard ALV report , it shows the same length as displayed in report.

Please advice. As this is the standard ALV functionality.

Thanks & Regards

Anubhav gupta

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Try COLWIDTH_OPTIMIZE = 'X" in the Layout options.

12 REPLIES 12

rainer_hbenthal
Active Contributor
0 Kudos

Check yout field catalog.

Former Member
0 Kudos

Try COLWIDTH_OPTIMIZE = 'X" in the Layout options.

Former Member
0 Kudos

This message was moderated.

former_member194669
Active Contributor
0 Kudos

If you use OPTIMIZE in your layout, then remove and check

Former Member
0 Kudos

>

> when I further filter it on a particular field using SET FILTER OPTION , the length of the field is shorter than displayed.

>

I didn't quite understand what you mean by this, could you elaborate a bit further ?

BR,

Advait

0 Kudos

Hi

wa_layout-colwidth_optimize = 'X'.

I have already defined the columnwidth optimize option.

But the problem is not in displaying the report output,ALV report out put is correct.

But when I further select set filter option then the field width is not same as shown in report output.

Thanks

Anubhav

Please reply....

Edited by: Anubhav Gupta on Sep 22, 2009 7:31 AM

0 Kudos

Hi MR.Anubhav, Iam facing similar problem...In my case the filtering is working for some fields and its not displaying for other fields, If you already got solution ,could you send it to me .

Thanks.

Praveenkumar.

0 Kudos

HI...!

can u tell me in which data type filtering is working and which in not.So i help u to resolve ur issue.Thanks.

Regards,

Muhammad Fawad

0 Kudos

Hi,

You can do one thing,

you can just put a star (*) like you put for F4 help at the end of the filter entry, will do your job..

Regards,

Sourav

venkat_o
Active Contributor
0 Kudos

Hi Gupta, <li>Define layout structure

data: wa_layout   TYPE slis_layout_alv.
<li>Pass value like below
wa_layout-colwidth_optimize = 'X'.
<li>Pass this structure through fm
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
         EXPORTING
              i_callback_program = program
              it_fieldcat        = it_fieldcat
              is_layout          = wa_layout
              it_events          = it_events
         TABLES
              t_outtab           = i_mard.
Thanks Venkat.O

Former Member
0 Kudos

Hi to all

wa_layout-colwidth_optimize = 'X'.

I have already defined the columnwidth optimize option.

But the problem is not in displaying the report output,ALV report out put is correct.

But when I further select set filter option then the field width is not same as shown in report output.

Thanks

Anubhav

Former Member
0 Kudos

Hi Gupta,

Define layout structure

data: wa_layout TYPE slis_layout_alv.

Pass value like below

wa_layout-colwidth_optimize = 'X'.

Pass this structure through fm

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

EXPORTING

i_callback_program = program

it_fieldcat = it_fieldcat

is_layout = wa_layout

it_events = it_events

TABLES

t_outtab = i_mard.