I have a requirement in which i have created one step in workflow and ABAP class and method is used,
and these step will call a method which has logic to fetch data from custom table
if data is found have to return success message
if data not found , error message has to return and stop the pipeline and next time from that specific step where it had failed have to retrigger.
Please let me know how to fail workflow step on no data found and how can i reprocess it again .
Triggering workflow and retrigger the step all have to be done through ABAP Report that user can reprocess on getting return error message.