Application Development 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: 

Editable ALV Grid

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

anversha_s
Active Contributor
0 Kudos

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

4 REPLIES 4

anversha_s
Active Contributor
0 Kudos

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

0 Kudos

try with declare variable of type n.and use it in alv

ex-

data: gv_matnr(18) type n.

0 Kudos

Hi Anver,

As u suggested, I made the changes but still it is not working.

Regards,

Jeetu

Former Member
0 Kudos

U need to output length in properties of the ALV display output....While putting header select edit = 'X' & output = 18 & type = 'CURR".