Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to stop a Job when data not found

Hello Experts,

I have a Report which collect some data and send them via Email. Now the email will be sent whatever the data has been found or not.

Could you give me a tipp how to stop the job on the stage after sybrc != 0 when the data hasn't been found?

START-OF-SELECTION.

   SELECT vbeln fkart

     INTO CORRESPONDING FIELDS OF TABLE ta_rechnung

     FROM vbrk

     WHERE fkdat IN s_fkdat.

   IF sy-subrc <> 0.

   ENDIF.

Simple error message doesn't work

BR

Denis

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question