0 Replies Latest reply: Apr 3, 2012 3:59 PM by Srinivas Rao RSS

SM30- cursor position on error entry when changing the entry

Srinivas Rao
Currently Being Moderated

Hello All,

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.

    ENDIF.

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

         EXIT.

        ENDIF.

      ENDIF.

 

Please give me the exact solution for this.

    ENDIF.

  ENDLOOP.

Actions