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

Modify statment Error!

Dev164
Participant
0 Likes
671

Hello,

         I am using modify statment in my code within loop it is giving following dump.

Below is my code.

4 REPLIES 4
Read only

former_member194152
Contributor
0 Likes
643

gt_alvdisplay u are modifying is not available in any loop so you need to specify index number of table gt_alvdisplay on which you want to perform modify operation like:

modify gt_alvdisplay from gwa_alvdisplay index <index_variable>.

Read only

0 Likes
643

Hello Gagan,

                    Tried it before also but modify statement is not modifying i.e Sy-subrc = 4

Read only

former_member214709
Participant
0 Likes
643

Dear Mangesh,

Try the following code to modify the table:

MODIFY GT_ALVDISPLAY FROM GWA_ALVDISPLAY INDEX SY-TABIX.

Regards

Dinesh

Read only

Former Member
0 Likes
643

HI,

I feel gt_alvdisplay isnt there. So you need to use APPEND statement to insert a record in the table.

Thanks,

Best regards,

Prashant Patil