Online Tutorials & Training Materials | STechies.com
Register Login

How to Increase the length in field catalog- ALV ?

|| || 4

How to Increase the length in field catalog- ALV ?
Stechies

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

  • 30 Nov 1999 12:00 am Best Answer

    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

  • 03 Mar 2014 11:45 am Helpful Answer

    wa_fcat-outputlen = '50'

  • 01 Jun 2008 10:38 am
    SET OUTPUTLEN TO MAXLENGH.
  • 16 Jun 2008 6:33 am
    wa_fcat-outputlength = '55'.