on ‎2025 Jan 08 2:45 PM
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.
Request clarification before answering.
| User | Count |
|---|---|
| 11 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.