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

problem with Input length in editable dynamic ALV container

Former Member
0 Likes
321

Hi,

I have created a editable container ALV and I am facing problem with the input length of the cells..

I have defined sizes as below code but still when I tries to enter data it limits upto 10 char only..

I dont knonw why there is a limit of 10 even though I have set it to upto 30,

guide me..


   data :   IT_FIELDCAT_DY TYPE   LVC_T_FCAT,
IT_TABLE TYPE REF TO DATA,.
FIELD-SYMBOLS:<FS_CAT_DY> TYPE LVC_S_FCAT,
<TABLE> TYPE TABLE,.
        ...
         ...
      <FS_CAT_DY>-DATATYPE = 'CHAR'.
      <FS_CAT_DY>-INTTYPE = 'C'.
      <FS_CAT_DY>-INTLEN =  '30'.
      <FS_CAT_DY>-OUTPUTLEN = '30'.
      <FS_CAT_DY>-DD_OUTLEN = '30'.
      APPEND <FS_CAT_DY> TO IT_FIELDCAT_DY.
  
CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
    EXPORTING
      IT_FIELDCATALOG  = IT_FIELDCAT_DY
      i_length_in_byte = 'X'
    IMPORTING
      EP_TABLE         = IT_TABLE.
  ASSIGN IT_TABLE->* TO <TABLE>.

Thanks,

Maharshi

Edited by: Maharshi Vyas on Dec 31, 2010 3:47 PM

Hi,

I have created a editable container ALV and I am facing problem with the input length of the cells..

I have defined sizes as below code but still when I tries to enter data it limits upto 10 char only..

I dont knonw why there is a limit of 10 even though I have set it to upto 30,

guide me..


   data :   IT_FIELDCAT_DY TYPE   LVC_T_FCAT,
IT_TABLE TYPE REF TO DATA,.
FIELD-SYMBOLS:<FS_CAT_DY> TYPE LVC_S_FCAT,
<TABLE> TYPE TABLE,.
        ...
         ...
      <FS_CAT_DY>-DATATYPE = 'CHAR'.
      <FS_CAT_DY>-INTTYPE = 'C'.
      <FS_CAT_DY>-INTLEN =  '30'.
      <FS_CAT_DY>-OUTPUTLEN = '30'.
      <FS_CAT_DY>-DD_OUTLEN = '30'.
      APPEND <FS_CAT_DY> TO IT_FIELDCAT_DY.
  
CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
    EXPORTING
      IT_FIELDCATALOG  = IT_FIELDCAT_DY
      i_length_in_byte = 'X'
    IMPORTING
      EP_TABLE         = IT_TABLE.
  ASSIGN IT_TABLE->* TO <TABLE>.

Thanks,

Maharshi

Edited by: Maharshi Vyas on Dec 31, 2010 3:47 PM

1 REPLY 1
Read only

Clemenss
Active Contributor
0 Likes
277

Hi Maharshi,

do not use METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE. Use an existing data dictionary type like FIELDNAME, TABNAME etc or define your own data element.

For internal table creation follow RTTS concepr as used simply [in this comment|http://wiki.sdn.sap.com/wiki/display/Snippets/CreateDynamicTable?showComments=true#comments-section].

You can create the field catalog for your grid using [this concept|http://wiki.sdn.sap.com/wiki/display/Snippets/ALVfieldcatalog-createforANYtable]

Regards,

Clemens