on 10-26-2015 7:28 AM
Dear Experts,
Am trying to update Draft Document to Invoice . But am getting "Internal Error(-10)".
Here with I have attached Screenshot of my Draft Document and Source code for the same.
Kindly help us to Solve.
Am trying to change Warehouse code and UseBaseUnits in Draft, before converting to Invoice.
Dim ODrafts As SAPbobsCOM.Documents
ODrafts = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts)
If ODrafts.GetByKey(objRecset.Fields.Item("DocEntry").Value) = True Then
For i = 0 To ODrafts.Lines.Count - 1
ODrafts.Lines.SetCurrentLine(i)
ODrafts.Lines.WarehouseCode = StrBranchCode
ODrafts.Lines.UseBaseUnits = SAPbobsCOM.BoYesNoEnum.tNO
Next
Retcode = ODrafts.Update()
Thanks in Adcance.
Regards
Senthil.K
Have you tried when you removed this line? ODrafts.Lines.UseBaseUnits = SAPbobsCOM.BoYesNoEnum.tNO
Regards,
Bry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Senthil,
internal erro -10 usually means that something was not found. Since you are only changing the warehouse I would double check what value StrBranchCode has ( and try it in client aswell ). Also check if there is a base unit defined in the items.
regards,
Maik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
104 | |
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.