Hi,
I am performing a validation in BEFORE_SAVE event(01) in TMG, if condition not satisified then I am displaying a Message of TYPE 'S' and DISPLAY LIKE 'E'.
Message type is 'S' to avoid aborting from screen.
Test run:
Now when I change the entries in SM30 and click on SAVE the error message is displayed but not pointing to the error record.
Hence I am tryng to explicitly point the error record by setting TCTRL_TABLE-top_line = <index of error record> in PBO, but the I am not getting the desired output. Infact the vertical scroll bar is scrolling enough to reach the error record but the record is not appearing at the first line of the screen/table control.
Please suggest how to scroll to the error record or Is there anyway I can display the error message in BEFORE SAVE event without coming out of the screen.
Regards
Karthik