Hi Experts,
In a report program I am using an INSERT statement to add a new row to a Ztable.
After the insert statement I am checking for the value of a flag and if it is set to 'X', I am using BAPI_TRANSACTION_COMMIT to commit the statement else BAPI_TRANSACTION_ROLLBACK to rollback the same.
I am facing an issue that even if the flag is not set the rollback is not taking place and a row is added to the Ztable.
Is it that we do not need a commit / rollback statement when making a direct database update?
Else suggest a possible solution for the same. Any pointers towards the solution would be highly appreciated.
Regards,
Saumya