Skip to Content
0
Former Member
Nov 02, 2005 at 08:08 PM

Error code: -5002 ErrorMessage: Item no. is missing [OPOR.ObjType]

137 Views

Hi,

I am trying to create a Service Purchase Order using DI API. I am using SAP-BO 2004

When I create Item Purchase Order I don't have problems.

This is the code:

After create all object an conect to de Company....

I set the docuemnt lines like this:

oOrderDoc.Lines.ItemDescription = "Technical Service"

oOrderDoc.Lines.Quantity = 1

oOrderDoc.Lines.AccountCode = "_SYS00000000021"

oOrderDoc.Lines.Price = 250.00

Then I try to create the document with

oOrderDoc.Add

I am gettig the following message:

Item no. is missing [OPOR.ObjType]