cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

I want to stay on the same screen when I close the error message

RabiaNurSarikaya
Discoverer
0 Likes
669

Hello, I want to get error message in Abap but after closing the error message I want to stay in the same program. When I run this code and give the value as in the condition, it gives an error message, but when I press exit, the program exits and comes to the handle screen. The transaction flow needs to stop, so I have to give an error message. Can you help me, please?

 

 

  DATA lv_iadefat TYPE zfid_iadtut.

  CLEAR lv_iadefat.

  IF sy-ucomm EQ 'SAVE' .

    LOOP AT lt_iade INTO DATA(ls_iade).

      lv_iadefat ls_iade-iadtut + lv_iadefat .

    ENDLOOP.

  ENDIF.

  IF lv_iadefat > gl_tem-mektut.

MESSAGE 'The refund amount cannot be greater than the Letter of Guarantee amount.!' TYPE 'E'.

    SET SCREEN sy-dynnr.

    LEAVE TO SCREEN sy-dynnr.

  ELSE.

    gl_tem-kalan gl_tem-mektut gl_tem-iadtut.

  ENDIF.

 

Accepted Solutions (0)

Answers (0)