cancel
Showing results for 
Search instead for 
Did you mean: 

Disable approval using DI API

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

edy_simon
Active Contributor
0 Kudos

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


Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Phoenix,

Not really understanding why the "not me" regarding approbations), but this is not the issue.

This is a property of the AdminInfo object: EnableApprovalProcedureInDI.

Regards,

Eric