Quantcast
Viewing all articles
Browse latest Browse all 3273

COMMIT WORK in BADI

Hi there,

 

I have been working on one issues, which is - In the BADI, we have one check, if that check fails then create a log in the table and raise an error message to stop the transaction.

 

IF Variable NE <Value>.

     CALL FM <fm1> which have UPDATES statements and FMs. ( And require COMMIT statement.)

 

     MESSAGE <> RAISE error_occurred.

ENDIF.

 

1. If i keep COMMIT statement after FM, there could be chance of unnecessary updates to DB.

2.There would be no use of 'IN UPDATE TASK' to the FM as this will not go to the update task since we are raising error message. Still i tried but no use.

 

Is there a way to handle this issue? Appreciate if someone could give me a way to handle this issue.

 

-Thanks


Viewing all articles
Browse latest Browse all 3273

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>