Skip to Content
Oct 23, 2012 at 01:10 PM

Approval request decision error


Hi all,

I have a problem with document approval by DI API. I've used sample code from refdi help file. Everything works fine except one thing. When I'm trying to set document decision to pending (earlier it was set to approved by the same user) I get error:

"'W' is not a valid value for property 'Status'. The valid values are: 'Y' - 'Yes', 'N' - 'No'."

The code is:

oApprovalRequestDecision.Status = SAPbobsCOM.BoApprovalRequestDecisionEnum.ardPending

Only Pending status appears to be a problem, two other works fine:

oApprovalRequestDecision.Status = SAPbobsCOM.BoApprovalRequestDecisionEnum.ardApproved

oApprovalRequestDecision.Status = SAPbobsCOM.BoApprovalRequestDecisionEnum.ardNotApproved

Any ideas what might be wrong here?