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: 

Row Selection Disable once processed/saved

sandeepmalhotra
Participant
0 Kudos

Kindly let me know how I can disable the row selection once the user has processed/saved the row in ALV. AM using REUSE_ALV_GRID_DISPLAY FM.

Thanks a lot

5 REPLIES 5

Former Member
0 Kudos

Do you want to disable a particular row after the user input or complete ALV output row selection?

Also - why?

0 Kudos

Need to disable single row ( or multiple rows ) depending how user select row.

Following is the logic that need to be implemented.

In ALV there are 10 rows,

first column is checkbox,

user selected top 3 records

And click the button for further processing .

User command is triggered ,

ALV got refresh with success or failure message ( if any) in last column.

Now ALV must prevent the user to select already processed rows.i.e. TOP 3 Rows.

The only constraint is that ,the program is already using FM REUSE_ALV_GRID_DISPLAY not the Objected Oriented version .

Also I have tried following ways but has not gained success

1 By passing '0' , '1' & '2' value to first column for specific row . Checkbox is not disabled.

2 By using style , has added new column in final internal table. and passed the value

cl_gui_alv_grid=>mc_style_disabled for first Columns. Still user is able to select the checkbox and user command got triggered once he/she clicked the button for processing

Any pointer will be helpful

Thanks

0 Kudos

I would attack this slightly differently. when a user has successfully selected a row and that row has been processed, update a boolean field in the itab.

You then use this field is the selected rows processing. when the user selects rows, before doing the actual processing you check to see if this field is set and either issue a message or ignore the row. You could use a displayed traffic light field to highlight the processable rows and check that value instead.

Rich

0 Kudos

Thanks this what I am trying to convince the user. Just want to be sure is there any way to disable the trigger of user command once the user selected already processed rows

Thanks for you advice . I will recheck with user again .