‎2005 Jun 02 10:02 PM
Hello,
I am unable to access modified rows in MP_MOD_ROWS (using loop at ar_data_changed->mp_mod_rows). The syntax error for this code is "Neither specified under TABLES nor defined as an internal table".
Can anyone help with how to access the modified rows from MP_MOD_ROWS?
Thanks!
Srini
Note: I am able to access the good cells ar_data_changed->mt_good_cells.
‎2005 Jun 02 11:20 PM
Hi Srini
Are you sure that MP_MOD_ROWS is a table structure?
Reagards
*--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>
‎2005 Jun 03 12:03 AM
In the debugger, MP_MOD_ROWS looks similar to an internal table with structure of the grid table (with all the rows that were changed and inserted showing in the table).
In the class CL_ALV_CHANGED_DATA_PROTOCOL the attribute MP_MOD_ROWS is declared using reference to "REF TO DATA".
Srini
‎2005 Jun 07 2:52 PM
Use the following code
FIELD-SYMBOLS: <mr> TYPE table_type,
<tr> TYPE table_row.
ASSIGN er_data_changed->mp_mod_rows->* TO <mr>.
READ TABLE <MR> assigning <tr>.