People,
I have a program that stop by a error message that I put after a select like this:
IF sy-subrc <> 0.
v_error2 = 'E'.
MOVE 'No data found. REGUH'(e01) TO emsg.
PERFORM call_error_function USING emsg.
PERFORM call_log_function.
MESSAGE: 'No data found. REGUH'(e01) TYPE 'E'.
ENDIF.
For example if not exist data on REGUH display a error message and the program stop but the problem is that some of this programs are executed by a job and when present the error the status of the program are presented like CANCELED and I need to change the status to FINISHED but in the log present the tables with the message that no have data or something like that.
Other thing that I need is not sent the message to XI if no have data. I made that with the error message but now I don't know how!
Help me with this please!
Thanks!