Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with MP_MOD_ROWS during event DATA_CHANGED

Former Member
0 Likes
3,479

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.

3 REPLIES 3
Read only

ssimsekler
Product and Topic Expert
Product and Topic Expert
0 Likes
1,313

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>

Read only

0 Likes
1,313

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

Read only

Former Member
0 Likes
1,313

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>.