cancel
Showing results for 
Search instead for 
Did you mean: 

CO_ZV_ORDER_POST

szago73
Discoverer
0 Kudos
456

Hi there, I'm wondering why in the fm CO_ZV_ORDER_POST at a certain point there is this code. "PERFORM order_post ON COMMIT"

and the program doesn't call ever "PERFORM order_post".

Why is it? This commit in the instruction doesn't allow me to execute a rollback after this command.

Accepted Solutions (0)

Answers (1)

Answers (1)

yogananda
Product and Topic Expert
Product and Topic Expert
0 Kudos

szago73

The PERFORM order_post ON COMMIT statement is used to ensure that the order_post routine is executed when the current transaction is committed. This is necessary to ensure that the order data is saved to the database and any necessary updates are made. The PERFORM order_post statement is not actually called, as it is only executed when the transaction is committed.

szago73
Discoverer
0 Kudos

Thanks for the info.

A question: I want to check the position after the commit, but I noticed that order_post has called only after commit and it's too late for me. How can I avoid the commit if something is wrong in the position?