Skip to Content
author's profile photo Former Member
Former Member

Goods issue (oInventoryGenExit) not working ...

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


retVal = GIHeader.Add

( retVal is -5003 )


Please advise...


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 04, 2004 at 03:14 PM

    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.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.