on ‎2025 Mar 28 5:41 PM
Hi Experts,
I'm having a problem accessing a table inside a method. I'm hoping someone can help formulate the correct syntax to accomplish this.
The scenario takes place after clicking on delete button of a custom class ALV. Through debug, I found only 1 variable (layout) accessible inside the method "Process_delete_records". I'd like to process the content of the table inside the method "Process_delete_records".
Here's the complete path of the table:
LAYOUT->FALV->CL_GUI_ALV_GRID_BASE->M_SELECTED_ROWS-ROW_ID
I attached some photos for your reference:
Hope someone can help me with this.
Thank you,
Geoff
Request clarification before answering.
Class CL_GUI_ALV_GRID_BASE has a method GET_SELECTED_ROWS_ID_BASE which will return the table ROW_TABLE which should contain all the selected rows. ROW_TABLE contains the ROW_ID you are looking for. Use the instance of CL_GUI_ALV_GRID_BASE to call this method to get the ROW_ID. Hope it helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 7 | |
| 7 | |
| 7 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.