Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Disable approval using DI API

Hi Experts,

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.

Regards,

Phoenix

Tags:
Former Member
replied

Hi Phoenix,

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.

or DI

'Enable Approval Procedure flags
Dim oAdminInfo As SAPbobsCOM.AdminInfo = oCompany.GetCompanyService().GetAdminInfo()

oAdminInfo.EnableApprovalProcedureInDI = SAPbobsCOM.BoYesNoEnum.tNo
oAdminInfo.DocConfirmation = SAPbobsCOM.BoYesNoEnum.tNo
oCompany.GetCompanyService().UpdateAdminInfo(oAdminInfo)

Regards

Edy


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question