沧海笑的艺术人生

沧海一声笑, 滔滔两岸潮,浮沉随浪只记今朝
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

sbo sdk 开发(二)

Posted on 2005-07-06 18:18  沧海笑  阅读(1023)  评论(4编辑  收藏  举报
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