Skip to Content
2
Former Member
Jul 11, 2007 at 09:29 PM

oReturns based on oDeliveryNotes

22 Views

Hi, I'm try create a new oReturns based on oDeliveryNotes, but I have not had good results.

I work with DI-Server version 2007

I try with "AddObjectWithLines" operator

somebody has an example that works with DI-API ?

this is my code:

-


objectcode: oReturns

strXml:

<Documents>

<row>

<DocObjectCode>16</DocObjectCode>

<CardCode>86.740.500-3</CardCode>

<DocDueDate>20070706</DocDueDate>

</row>

</Documents>

strLinesXml:

<Document_Lines>

<row>

<ItemCode>Q3961A</ItemCode>

<BaseEntry>5594</BaseEntry>

<BaseLine>0</BaseLine>

<Basetype>15</Basetype>

</row>

</Document_Lines>

responses:

  • Property 'Basetype' of 'DocumentLine' is invalid

  • Internal error (-5002) occurred

when adding a oReturns WITHOUT making reference to a oDeliveryNotes, records successfully.

thanks in advance.

Jorge