on 10-07-2005 10:01 AM
Hi, I'm getting a error message when I try to update the StandardAveragePrice field in the ItemWarehouseInfo document. Error msg is: [OITW] , 'Field cannot be updated (ODBC -1029)'. Below is my code.
If ConnectDICompany(oCompany, strErrMsg) <> RTN_SUCCESS Then GoTo Err_
Set oDocItem = oCompany.GetBusinessObject(oItems)
oDocItem.WhsInfo.SetCurrentLine (intIndex2)
oDocItem.WhsInfo.StandardAveragePrice = CDbl("234.00")
lngErr = oDocItem.Update
if lngErr <> 0 Then
oCompany.GetLastError lRet, strErrMsg
GoTo Err_
End If
This field can not be updated - it uses system calculations from SBO to calculate this field (when the invoice for the item is created). You can thus only read this field - BSO will not allow you to update this...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the DIAPI it mentioned that this field is a read-write field. Is there a error in the documentation?
If what you said is right, is there any other way to temporary change the value of the Item cost before a DO or a AR Invoice is submitted. Reason is we have some items that required to use the purchased price tagged to the serial number and not the Moving Average, FIFO, etc.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.