Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SM30- cursor position on error entry when changing the entry

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.


    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.



Not what you were looking for? View more on this topic or Ask a question