on 04-25-2006 9:12 AM
Hi folks,
Is there a way to identify in the report if the user has selected any sub-total line in an ALV grid? Both for REUSE_ALV_GRID_DISPLAY and CL_GUI_ALV_GRID.
Thanks
Sagar
I recall that we convinced the user not to have this functionality Instead the user will select all the necessary rows "manually".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sagar,
In CL_GUI_ALV_GRID,
you can get the selected row by calling method
GET_SELECTED_ROWS
Parameter ET_ROW_NO gives the index of the selected row,
based on this yiu have to put some logic to determine whether sub total row is selected or not.
Regards,
Raghavendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
When the user selects the sub-total line and presses a button (lets say 'Post'), I should process all the lines for which the sub-total has been calculated.
eg.
Line1 - 1500
Line2 - 100
Line3 - 200
Subtotal - 1800
Now, if the user selects the subtotal line then I need to process all the 3 lines.
Thanks
Sagar
Sagar,
1. I don't think its good design, if you want to process those three lines, you should ask the user to select those 3 rows and process them.
2. If you have no choice, tyr these methods, these might give you some info
GET_SORT_CRITERIA
GET_SUBTOTALS
These methods might give you the info you are looking for. Try it out.
regards,
Ravi
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.