Current Position:Home > Error Add Item using DI API 2007  B

Error Add Item using DI API 2007  B

Update:10-11Source: network consolidation
Advertisement
Sirs,
     I gettin a error on add a item using a follow code:
                   If m_Item.GetByKey('100') = True Then
                        m_Item.ItemType = ItemTypeEnum.itItems
                        m_Item.ItemsGroupCode = 1
                        m_Item.ItemClass = ItemClassEnum.itcMaterial 
'This line ocorred a error 'oToBP.ItemClass = {"Property 'ItemClass' of 'Item' is invalid"}
                        lErrorCode = m_Item.Update()
                    Else
                        lErrorCode = 1
                    End If
Please,
I'm waiting a urgent response .
Great.
Fábio Nascimento

The Best Answer

Advertisement
Fabio,
In 2007 A the ItemsgroupCode start at 100 and not 1.
Perhaps this is your problem.
Christophe
  • Error Add Item using DI API 2007  B Update:10-11

    Sirs,      I gettin a error on add a item using a follow code:                    If m_Item.GetByKey('100') = True Then                         m_Item.ItemType = ItemTypeEnum.itItems                         m_Item.ItemsGroupCode = 1                  

  • Add attachments using workflow api throwing error Update:10-11

    Hi, I am getting the following error when i am trying to add attachments using worklist API.      Missing class: invokeBPEL.MetaData      Dependent class: com.evermind.io.ClassLoaderObjectInputStream      Loader: oc4j:10.1.3      Code-Source: /D:/pro

  • Error message when trying to add item in change BOM goup Update:10-11

    Hi I went to transaction cs05,and trying to add item to specific material with BOM group,an error message popped up and saying assign the item to an alternative,what does it mean? How to solve?Hi, A finished material can have multiple alternative BOM

  • Error while creating contact through API in Install Base Update:10-11

    Hello I am trying to create contacts when creating a install base through API... I tried below code as per metalink note# 215456.1 and giving the below error. I checked setup andI have 'Ship To' exists in Instnace Party Account Relationsship setup in

  • Pricing error in Item Update:10-11

    Hi all, I have got a problem regarding the posting of billing doc. to Accounting. I have created a Sales Order with five items, then deliver the items with delivery doc. and finally created Billing doc. Now, when iam going to post that Billing doc. t