‎2021 Feb 04 10:06 PM
Hello,
I have a basic question, I am not a developper. I have an ABAP program that searches for a file in a folder. If the file does not exist, the program is interrupted. I would like to handle the job status by having a Finished status instead of an Interrupted status.
IF sy-subrc <> 0.
MESSAGE E005(ZINV) with P_FILE_N.
ELSE.
...
...
The job is always in status Interrupted if the file does not exist. How can I finish the job normally ?
If I use LEAVE PROGRAM, what whould be the status ?
Thank you for your help.
‎2021 Feb 04 10:11 PM
Hello admin.audioptic
The report is ended and the job has status "Interrupted" because there is an error (E) message issued. If the message is information (I) or success (S) the status would not be "Interrupted".
Kind regards,‎2021 Feb 04 10:11 PM
Hello admin.audioptic
The report is ended and the job has status "Interrupted" because there is an error (E) message issued. If the message is information (I) or success (S) the status would not be "Interrupted".
Kind regards,‎2021 Feb 04 10:41 PM
Hi Mateusz, thank you for this quick reply. Didn't even remark that the E before 005 was for the message type. And I thought that if I changed the message type, the program would have continued but there are no instructions defined in the program if the file does not exist, which makes sense. I will try to change the E by and let you know, thanks again. Still a lot to learn in ABAP programming 🙂