Hello experts,
Does anybody know if it is possible to stop behavior execution and return the error back to API caller from the FOR DETERMINE method? I am using this method to call a BAPI and change my currently processed entity with a transaction ID returned from the BAPI. However, if the BAPI fails for any reason – I would like to return the error message back to API caller. I have tried populating REPORTED itab, but that doesn’t stop the execution and save is eventually executed.
I know that this is possible via FOR VALIDATE methods and with FAILED itab, however I need to use the MODIFY ENTITIES statement (to update currently processed entity) which I cannot use in FOR VALIDATE method (hard error).
Any suggestions