I created Table maintenance Generator using SM30.
And also I created the events to check the entries based on CREATION -- event 5 and changing the existing entry ...event--1.
Logic is working fine in both cases.
But I am facing the issue when I was trying to change the multiple entries in SM30 and clicked on SAVE Icon.
The cursor always showing at one place. The cursor is not moving where the error entry exists.
I put the SET CURSOR Field LINE number statement also.Still is not working.
DATA : lwa_row TYPE zvpeng_verfueg.
LOOP AT total.
CLEAR : lwa_row.
IF <vim_total_struc> IS ASSIGNED.
MOVE-corresponding <vim_total_struc> to lwa_row.
IF <action> NE 'D' AND <action> IS NOT INITIAL AND <action> NE 'X'.
IF lwa_row-datab IS NOT INITIAL AND
lwa_row-datbi IS NOT INITIAL.
IF lwa_row-datbi LT lwa_row-datab.
SET CURSOR FIELD lwa_row-datbi LINE sy-tabix.
MESSAGE 'Please enter TO DATE Greater than FROM DATE'(003) TYPE 'S' DISPLAY LIKE 'E'.
vim_abort_saving = 'X'.
Please give me the exact solution for this.
I know this has been a long time, but did you find a solution for this? I have event 5 (new entry) only in my TMG, and SET CURSOR FIELD seems to have no effect on mine either.
Login to follow, like, comment, share and bookmark content.