Hi experts,
I wish to display 55 characters field using field catalog ' seltext_L ' , but the field is of only 40 characters as default value. How shall i increase the size while displaying the ALV output?
Thanks in advance
Updated Jun 16, 2019
Hi experts,
I wish to display 55 characters field using field catalog ' seltext_L ' , but the field is of only 40 characters as default value. How shall i increase the size while displaying the ALV output?
Thanks in advance
Comments
Hi in this case you need to specify the value of outputlen in this way
wa_fcat-fieldname = 'Name of Your Field'.
wa_fcat-tabname = 'Table Name'.
wa_fcat-ref_fieldname = 'Reference Field Name'.
wa_fcat-ref_tabname = 'Reference Table Name'.
wa_fcat-outputlen = '55'. " Give your length
wa_fcat-seltext_l = 'Text---'.
wa_fcat-seltext_m = 'Text---'.
wa_fcat-seltext_s = 'Text---'.
wa_fcat-ddictxt = 'Text---'.
APPEND wa_fcat TO p_i_fieldcat.
CLEAR wa_fcat.
This will fix the problem