Transaction Handling
If you want to perform a consistent transaction that contains changes to more than one business object ,you have to specify the start and end of the transaction using the company object methods :start transaction and end transaction (endtype as SAPbobsCOM.BoWTransOpt)
If you call start transaction ,all business object changes,which are issued after this call and before a following call of the method end transaction,belong to one logical unit of work.
EndTransaction(endtype as SAPbobsCOM.BoWTransOpt)
Possible value of the endtype
SAPbobsCOM.wf_commit: changes should be committed;
SAPbobsCOM.wf_rollback: all changes contained in the transaction will be discarded
If you want to perform a consistent transaction that contains changes to more than one business object ,you have to specify the start and end of the transaction using the company object methods :start transaction and end transaction (endtype as SAPbobsCOM.BoWTransOpt)
If you call start transaction ,all business object changes,which are issued after this call and before a following call of the method end transaction,belong to one logical unit of work.
EndTransaction(endtype as SAPbobsCOM.BoWTransOpt)
Possible value of the endtype
SAPbobsCOM.wf_commit: changes should be committed;
SAPbobsCOM.wf_rollback: all changes contained in the transaction will be discarded