Skip to Content
-2

Row Selection Disable once processed/saved

Mar 16, 2017 at 02:52 AM

92

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

shashi kiran Mar 16, 2017 at 09:55 AM
0

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

Show 4 Share
10 |10000 characters needed characters left characters exceeded

Also - why?

1

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

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

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 .

0