Insert statement in BTE
I have a requirement to create a record in one custom table in a BTE.
The problem here is that the record should get created only when the whole process is complete and the standard process issues a database commit.
What happens is that the BTE is called somewhere in the mid of the process and I am writing an INSERT statement in the BTE. The record gets created instantly, and this is not desirable. After the whole standard process is successful, the standard program issues a COMMIT-WORK statement.
I want that this database entry gets created only with this commit.
There is no other BTE available for this process which can be used. Please suggest ways to achieve the above.
Thanks in advance,