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

Editable ALV Grid

Former Member
0 Likes
496

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
Read only

anversha_s
Active Contributor
0 Likes
468

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
Read only

anversha_s
Active Contributor
0 Likes
469

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

Read only

0 Likes
468

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

ex-

data: gv_matnr(18) type n.

Read only

0 Likes
468

Hi Anver,

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

Regards,

Jeetu

Read only

Former Member
0 Likes
468

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