11-14-2006 5:16 AM
Hi All,
I am displaying an editable ALV Grid. One of the field length is 18 character long. It is also showing 18 characters. But when I want enter some value after deleting the original value, it is only allowing me to enter 10 characters. Please help.
Regards,
Jeetu
11-14-2006 5:20 AM
hi,
specify the field length in the catlog, that will solve the issue.
eg:
wa_fieldcat-fieldname = 'NETPR'.
wa_fieldcat-scrtext_m = 'Net Price'.
<b>wa_fieldcat-edit = 'X'. "sets whole column to be editable</b>
wa_fieldcat-col_pos = 7.
<b> wa_fieldcat-outputlen = 18.</b>
wa_fieldcat-datatype = 'CURR'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat
rgds
Anver
11-14-2006 5:20 AM
hi,
specify the field length in the catlog, that will solve the issue.
eg:
wa_fieldcat-fieldname = 'NETPR'.
wa_fieldcat-scrtext_m = 'Net Price'.
<b>wa_fieldcat-edit = 'X'. "sets whole column to be editable</b>
wa_fieldcat-col_pos = 7.
<b> wa_fieldcat-outputlen = 18.</b>
wa_fieldcat-datatype = 'CURR'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat
rgds
Anver
11-14-2006 5:21 AM
try with declare variable of type n.and use it in alv
ex-
data: gv_matnr(18) type n.
11-14-2006 5:28 AM
Hi Anver,
As u suggested, I made the changes but still it is not working.
Regards,
Jeetu
11-14-2006 5:23 AM
U need to output length in properties of the ALV display output....While putting header select edit = 'X' & output = 18 & type = 'CURR".