Disable approval using DI API
Is it possible to disable approvaI and then enable it again after posting using DI? Please help me. I'm trying to post some data on SAP using my third party program and I'm using DI but the problem is I can't post the data directly to SAP it needs first to go to Approval stage. So the only solution for me is to disable the approval then enable it again.
Edy Simon replied
The approval for DI has its own switch.
If you dont want approval triggered from DI then you should turn off under
SBO Application :
Administration-System Initialization-BP : Activate Approval Procedure in DI.
'Enable Approval Procedure flags
Dim oAdminInfo As SAPbobsCOM.AdminInfo = oCompany.GetCompanyService().GetAdminInfo()
oAdminInfo.EnableApprovalProcedureInDI = SAPbobsCOM.BoYesNoEnum.tNo
oAdminInfo.DocConfirmation = SAPbobsCOM.BoYesNoEnum.tNo