03-16-2017 2:52 AM
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
03-16-2017 9:55 AM
Do you want to disable a particular row after the user input or complete ALV output row selection?
03-16-2017 9:47 PM
03-17-2017 12:21 AM
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
03-17-2017 7:55 AM
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
03-19-2017 5:00 AM
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 .