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

ALV input enabled

Former Member
0 Likes
1,083

Need help frnds,

I need to know how an alv output can be made input enabled.

and My problem lies that when user selects a particular row and press the button (Say EDIT button) then that partcular row will be input enabled, not the entire column. Another problem, when in fieldcatalog the partcular column is set as Input enabled, then refresh is not working, I have to call the REUSE_ALV_LIST_DISPLAY again to view the column is input enabled.

regards,

satya

5 REPLIES 5
Read only

Former Member
0 Likes
645

any help frnds....

Read only

Former Member
0 Likes
645

chk this blog

/people/community.user/blog/2007/01/10/displaychange-mode-of-editable-fields-in-alv-using-function-modules-but-not-custom-containers

Read only

Former Member
0 Likes
645

Hello,

To make the ALV input enabled,you can try this:

DATA:is_layout type LVC_S_LAYO.

is_layout-edit = 'X'.

CALL METHOD ALV->SET_READY_FOR_INPUT

EXPORTING

I_READY_FOR_INPUT = 1

.

Pass is_layout in the SET_TABLE_FOR_FIRST_DISPLAY.This will make the entire ALV editable.

But for your requirement,you can try demo program: <b>BCALV_EDIT_02</b>

When you select a particular row,then use this program and only make the particular cells editable.

Regards,

Beejal

**reward if this helps

Read only

Former Member
0 Likes
645

Hi,

You will have one option for the selection in the internal table. If it is not there then keep one flag field in the internal table. Once a row is selected than that field will be set with 'X' for that particular row.

Now read the grid internal table and make a conditon in the field catalog and fieldcatalog-edit = 'X'.

No need of calling the Reuse_alv_list_display again. What you need to do in the User Command form you just need to set the selfield-refresh = 'X'.

Br,

Laxmi.

Read only

Former Member