on 01-10-2008 1:19 AM
Our Sales Quotation documents have 3 UDF: Contract Status, Approver1, Approver2.
when a user updates the Sales Quotation in SAP, our addon resets these fields by DI to 'Pending', "", "" , so the document needs to be approved again.
Here is the code called in AfterDataFormUpdate:
Me.oDoc.UserFields.Fields.Item("U_XX_Ap1U").Value = ""
Me.oDoc.UserFields.Fields.Item("U_XX_Ap2U").Value = ""
Me.oDoc.UserFields.Fields.Item("U_XX_ConSta").Value = "P"
fncRetVal.retCode = Me.oDoc.Update()
If fncRetVal.retCode <> AddonVars.enumReturnCodes.Success Then
oDiCompany.GetLastError(lErrCode, sErrMsg)
End If
I'm getting a retCode = -5002, and ErrMsg = "Cannot insert value in the 'Folio Number' field "
Has anyone seen this before? Any input is appreciated.
thanks,
Grace
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.