‎2009 Jun 19 7:57 AM
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
‎2009 Jun 19 8:05 AM
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.
‎2009 Jun 19 8:07 AM
i need to set filter for one number which i need to provide entire number
‎2009 Jun 19 8:11 AM
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
‎2009 Jun 19 12:17 PM
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.
‎2009 Jun 19 8:07 AM
Hi,
Use OUTPUTLEN parameter for the desired field in field catalog.
It will solve ur problem
Regards,
Sunny
‎2009 Jun 19 8:09 AM
‎2009 Jun 19 8:11 AM
You can put this parameter for all the fields one by one.
Regards,
Sunny
‎2009 Jun 19 12:02 PM
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.
‎2009 Jun 19 12:44 PM
‎2009 Jun 19 12:47 PM
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 .
‎2009 Jun 19 12:50 PM
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
‎2009 Jun 19 12:53 PM
You can set this value manually by checking fields' total length.