Skip to Content
avatar image
Former Member

Goods Receipt Cluster "chile"

Hi,

hi want create a goods receipt in a chile - database

(code-fragment)

...

odocument.getbusinessobject(oInventoryGenEntry )

oducument.docentry=2008/10/01

odocument.line.itemcode='9008100021'

odocument.line.price=3.44

odocument.line.quantity=5

odocument.add

...

in all other database is no error. Only in a chile-database (new database, template 'chile')

regards

Martin Heigl

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 01, 2008 at 07:13 AM

    Martin ,

    I think you did a typo here, docentry can't be odocument.docentry=2008/10/01. and you need not specify docentry anyway. one more thing. return your odocument.add as some integar. like

    dim RetVal  as integar
    RetVal = odocument.Add
                        If RetVal <> 0 Then
                            oCompany.GetLastError(ErrCode, ErrMsg)
                            MsgBox(ErrMsg)
                        End If
    

    you will get to know the exact error message.

    HTH,

    Binita

    Edited by: Binita Joshi on Oct 1, 2008 9:14 AM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 01, 2008 at 07:10 AM

    Whats the error that ur getting.. ?

    Vasu Natari.

    Add comment
    10|10000 characters needed characters exceeded