2010 Dec 31 10:30 AM
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
2010 Dec 31 5:23 PM
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
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |