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

SDK-DI --> Create Draft of Goods Receipt PO

Hello all,

we are trying to create a document draft of a Goods Receipt PO. Our problem appears when we save the document the system generates the following error:

[OSRI], 'Error (-2007) encountered'

It seems to be an error of Serial Numbers but our item doesn't use serial numbers.

The following code is the declaration of the object:

Set vPurDel = vCmp.GetBusinessObject(oDrafts)

vPurDel.DocObjectCode = oPurchaseDeliveryNotes

Thank you for you help and your time...

Albert

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Mar 04, 2004 at 07:55 PM

    Hi Albert,

    I have never tested my coding to create purchase orders with object 'oDrafts' - but I do have this additional line in my coding:

    vPurDel.DocType = dDocument_Items

    Maybe...

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I have seen patch 12 out on the site. I have not tested this function, but there were a few parts to this fix, some came after patch 8, if I am not mistaken.