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

How to change warehouse code in BOM child items on marketing documents

Hi Every body!!

I need some Help.

I am importing some sales documents from an 3th party POS application to SBO.

I have several POS and each one is a warehouse on SBO. All sales items are Template BOM.

I can change through SBO-UI the child items related information, but how can it do it through DIAPI???

Thanks!

--

Enriquillo Guigni

Edited by: Enriquillo Guigni on Jun 29, 2010 12:28 AM

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 02, 2010 at 08:27 AM

    Hi

    oItems = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems)
    oPT = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductTrees)
    opt.Items.Warehouse="WarehouseCode"
    oPT.Items.Add()
    RetVal = oPT.Add
     If RetVal <> 0 Then
            oCompany.GetLastError(ErrCode, ErrMsg)
            MsgBox(ErrCode & " " & ErrMsg)
    End If

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.