on 08-04-2004 3:59 PM
Hi, I'm trying to use oInventoryGenExit & oInventoryGenEntry to perform Goods issue & Goods Receipt.
While Goods receipt works, Goods issue doesn't go thru.
I'm getting -5003 when i add the oInventoryGenExit document.
=====================================================
Set GIHeader = oCompany.GetBusinessObject(oInventoryGenExit)
GIHeader.Lines.AccountCode = "_SYS00000000094"
GIHeader.Lines.ItemCode = strGI
GIHeader.Lines.Quantity = 2
GIHeader.Lines.Price = 20
GIHeader.Lines.Add
retVal = GIHeader.Add
( retVal is -5003 )
=====================================================
Please advise...
Ravi.
You can normally get more information on errors by using the GetLastError function. This returns a description of the error that might help you track down the problem.
Try adding the following to the end of your code:-
If (0 <> retVal) Then
Call oCompany.GetLastError(lngErr, strMsg)
MsgBox ("Found error:" + Str(lngErr) + "," + strMsg)
End If
If the message it returns doesn't make much sense to you, try posting it here.
Regards,
John
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
102 | |
12 | |
11 | |
6 | |
5 | |
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.