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 columns in ALV

Former Member
0 Likes
891

Hai friends,

I have developed an ALV report. i want to add two more columns in the report which should be editable. how can i do this?.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
853

HI,

If you are using classes then set the property of the fieldcatalog for which you want to set the field editable by

ls_fcat-edit = 'X'.

where ls_fcat is of type lvc_s_fcat

If you are using the function module then in the field catalog set the property edit = 'X' for the field you want ot make editable.

Regards,

Sachin

5 REPLIES 5
Read only

Former Member
0 Likes
854

HI,

If you are using classes then set the property of the fieldcatalog for which you want to set the field editable by

ls_fcat-edit = 'X'.

where ls_fcat is of type lvc_s_fcat

If you are using the function module then in the field catalog set the property edit = 'X' for the field you want ot make editable.

Regards,

Sachin

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
853

Hi,

Just add the 2 new fields in the internal table while creating the field catalogs, use the property EDIT and set it as 'X' for these 2 new fields which will make them editable.

Hope this helps you.

Regards,

Tarun

Read only

Former Member
0 Likes
853

Hi Venilla,

if you are using field catalog then try like this,

wa_fieldcat-edit = 'X'.

Read only

Former Member
0 Likes
853

HI,

If you are using Function Module. then you can use the edit command which is in bold

READ TABLE IT_FCAT INTO WA_FCAT WITH KEY FIELDNAME = 'GNO'.

WA_FCAT-SELTEXT_L = 'Gate Pass No.'.

WA_FCAT-SELTEXT_M = 'Gate Pass No.'.

WA_FCAT-SELTEXT_S = 'Gate Pass No.'.

WA_FCAT-EDIT = 'X'.

MODIFY IT_FCAT FROM WA_FCAT INDEX SY-TABIX.

Read only

Former Member
0 Likes
853

Hi,

See to this link. Hope it may help you.

Regards,

Revathi Bhoopal.