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 GRID Display Column Width problem when filtering

Former Member
0 Likes
2,878

Hello All,

When i displaying ALV Grid Display ,i selected one column and set filter for that.

the problem is column width at display is 12 charecters but in filter it is allowing only 10 charecters to enter which is wrong. i am unable to set filter.please give solution.

Thanks

Sandeep.G

12 REPLIES 12
Read only

Former Member
0 Likes
1,669

Hello,

Yes it allows only 10 characters in filter. I suggest you to enter first 9 characters and then ' * 'and then execute. It will give you the desired results.

Hope your problem is solved.

Regards,

Mansi.

Read only

0 Likes
1,669

i need to set filter for one number which i need to provide entire number

Read only

0 Likes
1,669

Hi,

Just try to change the output length of this particular field in fieldcatalog and try again

wa_fieldcat-outputlen = 15. " Give a higher value here more than the actual length of the field
 APPEND wa_fieldcat TO it_fieldcat.

Regards

Read only

0 Likes
1,669

hello i am calling perform, i need to set OUTPUTLEN according to field length how can i do that.

FORM fill_fieldcat USING p_field TYPE slis_fieldcat_alv-fieldname

p_text TYPE slis_fieldcat_alv-seltext_l

p_flag TYPE c.

wa_fieldcat-fieldname = p_field.

wa_fieldcat-seltext_l = p_text.

wa_fieldcat-no_out = p_flag.

wa_fieldcat-outputlen = 20.

APPEND wa_fieldcat TO i_fieldcat.

CLEAR wa_fieldcat.

Read only

Former Member
0 Likes
1,669

Hi,

Use OUTPUTLEN parameter for the desired field in field catalog.

It will solve ur problem

Regards,

Sunny

Read only

0 Likes
1,669

i need it for all the fields

Read only

0 Likes
1,669

You can put this parameter for all the fields one by one.

Regards,

Sunny

Read only

0 Likes
1,669

hello i am calling perform, ineed to set OUTPUTLEN according to field length how can i do that.

FORM fill_fieldcat USING p_field TYPE slis_fieldcat_alv-fieldname

p_text TYPE slis_fieldcat_alv-seltext_l

p_flag TYPE c.

wa_fieldcat-fieldname = p_field.

wa_fieldcat-seltext_l = p_text.

wa_fieldcat-no_out = p_flag.

wa_fieldcat-outputlen = 20.

APPEND wa_fieldcat TO i_fieldcat.

CLEAR wa_fieldcat.

Read only

0 Likes
1,669

yes it is ok.

Read only

0 Likes
1,669

no no i need to set OUTPUTLEN according field length,means if that field 3 charecters it should give 3 charecters like that,if it is 10 it should display 10 .

Read only

0 Likes
1,669

Hi,

then please set the filed length for individula fileds,

other wise create a structure with all the fields in se11 and then call the FM REUSE_ALV_FIELDCATALOG_MERGE , which will give the field catalog and then directly pass it to the REUSE_ALV_GRID_DISPLAY.

Bye

sasi

Read only

0 Likes
1,669

You can set this value manually by checking fields' total length.