Problem Adding BOM using Product Trees Object

Hey I am having problems with the following code:
qProductTree = (SAPbobsCOM.ProductTrees)this.m_SboAddon.SboCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductTrees);
int RetVal = 0;
qProductTree.TreeCode = "productTree1";
qProductTree.TreeType = SAPbobsCOM.BoItemTreeTypes.iProductionTree;
qProductTree.Quantity  = 5;
qProductTree.Items.ItemCode = "test1";
qProductTree.Items.Price = 20;
qProductTree.Items.Quantity = 1;
qProductTree.Items.Currency = "Eur";
qProductTree.Items.Comment = "test comment";
qProductTree.Items.IssueMethod = SAPbobsCOM.BoIssueMethod.im_Manual;
RetVal = qProductTree.Add();
string errMsg;
int errCode;
if (RetVal != 0 )
     this.m_SboAddon.SboCompany.GetLastError(out errCode, out errMsg);
     MessageBox.Show(errMsg);
I get an error message with ID 2028 which when I look it up in the SDK it states DataSource - No Data found.
Any ideas?

Hi Laura!
In DI reference you can find topic 'Add a Bill Of Material sample', hope it'll help you.
Note, that there are some lines in that sample:
    Dim vItem As SAPbobsCOM.Items
    <b>Set vItem = vCmp.GetBusinessObject(oItems)</b>
    Dim vProdTree As SAPbobsCOM.ProductTrees
    Set vProdTree = vCmp.GetBusinessObject(oProductTrees)
           'Get the Item I want to create as Product Tree
    <b>RetVal = vItem.GetByKey("MyProdTree")</b>
    'Set Values to the fields
    vProdTree.TreeCode = <b>"MyProdTree"</b>
    vProdTree.TreeType = iProductionTree
In my mind, you should find an existing Item (via GetByKey) before you create ProductTree.

Similar Messages

  • A problem with updating a production tree through the DI

    Dear all,
    I'm trying to update 2 properties of a production tree through the DI - ToWH and PriceList.
    I'm using the next code:
    SAPbobsCOM.ProductTrees tree = (SAPbobsCOM.ProductTrees)mCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductTrees);
    Then, this tree object doesn't give me the option to update the pricelist and the target warehouse, although it is possible to do so through the UI.
    Any ideas?
    Thanks!

    Hi,
    If the DI API does not expose the properties then it may not be possible at the moment. However, I have sometimes found that if you use the XML interface in the DI API that you can update properties that aren't exposed through properties in the DI API objects.
    Try something like this:
    1) Use the GetByKey method of the production tree object to get the BOM you want to update.
    2) Use the GetAsXML method to generate an XML formatted string of the BOM
    3) Load the xml string in to an XML parser such as the XMLDocument object in the .NET Framework
    4) Use the XMLDocument object to update the header fields you want to change and save the xml string as a file to disk
    5) Use the GetBusinessObjectFromXML method of the DI API company object to load the XML file back in to your production tree object
    6) Call the Update method of the production tree object
    If that doesn't work then there is no way I know of to achieve what you want through the DI API.
    Kind Regards,
    Owen

  • Problem - Adding item using wwsbr_api.add_item

    Hi, I´m using portal 10.1.2.0.2 and when I try to add an file using wwsbr_api.add_item, it returns me the following error "ORA-29532: Java call terminated by uncaught Java exception: java.lang.NullPointerException"
    But It happens only when the file name has special caracter.
    Anybody has any idea how to solve it?

    You mentioned at the top of the thread that the region type had not been defined. I have not tried this in 10.1.4, but I know in previous versions if you programmatic ally added a item to an undefined region it didn't show up until that region was manually configured as an item region. The symptoms were as you describe -- nothing showed up in edit or view mode. As soon as the region was setup as a item region, the items appeared.
    Roche's suggestion will establish if the item is even being created at all.
    Rgds/Mark M.

  • Problems adding narrations using Elements 11 on Mac

    I keep getting an error message saying I don't have any input channels and to go to the audio hardware and change it to default device to rectify this issue.  Well, I've tried...for the past hour and I keep getting an error message saying, "Ensure I have launched premiere elements in administration mode"? Whaaat???? I had my Logitech sound dock connected to my computer via usb but unplugged it.  Still, NOTHING! Premiere elements 11 has crashed on me a few times and now I wished I would have shelled out the $300 for FCP X.  At least I wouldn't be going thorugh this trouble w/ deadlines to meet.

    LightsCamAction
    Thanks for the reply. Sorry the news is not better.
    Although Windows and Mac are indeed different, I tried to reach a common ground since the Premiere Elements worksflows are similar be they based on Windows or Mac (although Mac does seem to get short changed on some features here and there).
    However since you said yourself you are getting messages to the effect
    "Ensure I have launched premiere elements in administration mode"?
    my suggestion about your permissions and Administrative Accounts was quite relevant since Premiere Elements has always been highly dependent on those factors as well as the latest version of QuickTime installed.
    I am not sure how much help will be forthcoming from Adobe since it classically deals with current version and 12 is released, but you could try to contact Adobe through Adobe Chat and see how far you get.
    http://helpx.adobe.com/contact.html?product=premiere-elements&topic=using-my-product-or-se rvice
    When the link opens, click on "I still need help." to bring up the Adobe Chat pop up. I pre-selected the topic as "Using my product and service."
    I did come across the following online discussion which sounds very close to your situation, Premiere Elements 11 Mac et al. In that case, a person identified as coming from Adobe stepped in. It is an 11 month old post with no posted conclusion. Nonetheless you might want to explore the contact cited at the end of the post.
    http://feedback.photoshop.com/photoshop_family/topics/premiere_elements_11_for_mac_frequen tly_crashes_while_editing
    By any chance was that you posting in that article?
    Unlike that article, this is a user to user forum with no expected visits from Adobe.
    We will watch for further developments.
    Thanks again for the follow up.
    ATR

  • Having problem adding citations using endnote with pages 4

    Help needed
    When I go to insert and find a quote in my endnote library and hit insert it appears as if it has done something but no quote appears in my pages document however something is in there because it moves the curser along and when I press delete it acts as if it is deleting something.......wierd.  Ive downloaded and installed the plug in and the same thing seems to work fine on my Imac.

    If all your professors are using MS Office, then I recommend you should too.  It is not realistic to think Pages will always generate word format docs the same way MS Office would have done so.

  • Creation of Variant BOM using Simple BOM

    Hi
    I am havign a production BOM, i wanted to create Variant BOM using Production BOM.
    Pls let me know, whether we have any Function modules for the same.
    Regards
    MD

    check SAP std.program to create variant BOM .
    <b>RCSBI030</b>
    Regards
    Prabhu

  • Problem occured when create a tree table for master-detail view objects using SQL queries?

    I am programming a tree table for master-detail view objects using SQL queries and these 2 view objects are not simple singel tables queries, and 2 complex SQL are prepared for master and view objects. see below:
    1. Master View object (key attribute is SourceBlock and some varaible bindings are used for this view object.)
    SELECT  cntr_list.SOURCE_BLOCK,                   
            sum(                   
             case when cntr_list.cntr_size_q = '20'                   
                  then cntr_list.cntr_qty                   
                  else 0 end ) as cntr20 ,                   
            sum(                   
             case when cntr_list.cntr_size_q = '40'                   
                  then cntr_list.cntr_qty                   
                  else 0 end ) as cntr40 ,                   
             sum(                   
             case when cntr_list.cntr_size_q = '45'                   
                  then cntr_list.cntr_qty                   
                  else 0 end ) as cntr45                    
    FROM (       
        SELECT yb1.BLOCK_M as SOURCE_BLOCK,       
               scn.CNTR_SIZE_Q,        
               count(scn.CNTR_SIZE_Q) AS cntr_qty        
        FROM  SHIFT_CMR scm, SHIFT_CNTR scn, YARD_BLOCK yb1, YARD_BLOCK yb2       
        WHERE       
        scm.cmr_n = scn.cmr_n             
        AND (scm.plan_start_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS')                 
        OR scm.plan_end_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS'))                 
        AND scm.shift_mode_c = :ShiftModeCode                           
        AND scm.end_terminal_c = :TerminalCode      
        AND scm.start_terminal_c = yb1.terminal_c                  
        AND scm.start_block_n = yb1.block_n                  
        AND substr(scn.start_location_c,(instr(scn.start_location_c,',',1,5)+1),instr(scn.start_location_c,',',1,6)-(instr(scn.start_location_c,',',1,5)+1)) BETWEEN yb1.slot_from_n AND yb1.slot_to_n                  
        AND scm.end_terminal_c = yb2.terminal_c                  
        AND scm.end_block_n = yb2.block_n                  
        AND substr(scn.end_location_c,(instr(scn.end_location_c,',',1,5)+1),instr(scn.end_location_c,',',1,6)-(instr(scn.end_location_c,',',1,5)+1)) BETWEEN yb2.slot_from_n AND yb2.slot_to_n           
        AND scn.status_c not in (1, 11)             
        AND scn.shift_type_c = 'V'             
        AND scn.source_c = 'S'       
        GROUP BY yb1.BLOCK_M, scn.CNTR_SIZE_Q       
    ) cntr_list       
    GROUP BY cntr_list.SOURCE_BLOCK
    2. Detail View object (key attributes are SourceBlock and EndBlock and same varaible bindings are used for this view object.)
    SELECT  cntr_list.SOURCE_BLOCK, cntr_list.END_BLOCK,                
            sum(                     
             case when cntr_list.cntr_size_q = '20'                     
                  then cntr_list.cntr_qty                     
                  else 0 end ) as cntr20 ,                     
            sum(                     
             case when cntr_list.cntr_size_q = '40'                     
                  then cntr_list.cntr_qty                     
                  else 0 end ) as cntr40 ,                     
             sum(                     
             case when cntr_list.cntr_size_q = '45'                     
                  then cntr_list.cntr_qty                     
                  else 0 end ) as cntr45                      
    FROM (         
        SELECT yb1.BLOCK_M as SOURCE_BLOCK,     
               yb2.BLOCK_M as END_BLOCK,  
               scn.CNTR_SIZE_Q,          
               count(scn.CNTR_SIZE_Q) AS cntr_qty          
        FROM  SHIFT_CMR scm, SHIFT_CNTR scn, YARD_BLOCK yb1, YARD_BLOCK yb2         
        WHERE         
        scm.cmr_n = scn.cmr_n               
        AND (scm.plan_start_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS')                   
        OR scm.plan_end_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS'))                   
        AND scm.shift_mode_c = :ShiftModeCode                             
        AND scm.end_terminal_c = :TerminalCode        
        AND scm.start_terminal_c = yb1.terminal_c                    
        AND scm.start_block_n = yb1.block_n                    
        AND substr(scn.start_location_c,(instr(scn.start_location_c,',',1,5)+1),instr(scn.start_location_c,',',1,6)-(instr(scn.start_location_c,',',1,5)+1)) BETWEEN yb1.slot_from_n AND yb1.slot_to_n                    
        AND scm.end_terminal_c = yb2.terminal_c                    
        AND scm.end_block_n = yb2.block_n                    
        AND substr(scn.end_location_c,(instr(scn.end_location_c,',',1,5)+1),instr(scn.end_location_c,',',1,6)-(instr(scn.end_location_c,',',1,5)+1)) BETWEEN yb2.slot_from_n AND yb2.slot_to_n             
        AND scn.status_c not in (1, 11)               
        AND scn.shift_type_c = 'V'               
        AND scn.source_c = 'S'         
        GROUP BY yb1.BLOCK_M, yb2.BLOCK_M, scn.CNTR_SIZE_Q         
    ) cntr_list         
    GROUP BY cntr_list.SOURCE_BLOCK, cntr_list.END_BLOCK
    3. I create a view link to create master-detail relationship for these 2 view objects.
    masterview.SourceBlock (1)->detailview.SourceBlock (*).
    4. I create a tree table using these 2 view objects with master-detail relationship.
    When I set default value for variable bindings of these 2 view objects and the matching records exist, tree table can work well. I can expand the master row to display detail row in UI.
    But I need to pass in dymamic parameter value for variable bindings of these 2 view objects, tree table cannnot work again. when I expand the master row and no detail row are displayed in UI.
    I am sure that I pass in correct parameter value for master/detail view objects and matching records exist.
    Managed Bean:
            DCIteratorBinding dc = (DCIteratorBinding)evaluteEL("#{bindings.MasterView1Iterator}");
            ViewObject vo = dc.getViewObject();
            System.out.println("Before MasterView1Iterator vo.getEstimatedRowCount()="+ vo.getEstimatedRowCount());
            System.out.println("Before MasterView1Iterator ShiftModeCode="+ vo.ensureVariableManager().getVariableValue("ShiftModeCode"));
            vo.ensureVariableManager().setVariableValue("DateFrom", dateFrom);
            vo.ensureVariableManager().setVariableValue("DateTo", dateTo);
            vo.ensureVariableManager().setVariableValue("ShiftModeCode", shiftModeC);
            vo.ensureVariableManager().setVariableValue("TerminalCode", terminalCode);
            vo.executeQuery();
            System.out.println("MasterView1Iterator vo.getEstimatedRowCount()="+ vo.getEstimatedRowCount());
            DCIteratorBinding dc1 = (DCIteratorBinding)evaluteEL("#{bindings.DetailView1Iterator}");
            ViewObject vo1 = dc1.getViewObject();
            System.out.println("Before DetailView1Iterator vo1.getEstimatedRowCount()="+ vo1.getEstimatedRowCount());
            System.out.println("Before DetailView1Iterator ShiftModeCode="+ vo1.ensureVariableManager().getVariableValue("ShiftModeCode"));
            vo1.ensureVariableManager().setVariableValue("DateFrom", dateFrom);
            vo1.ensureVariableManager().setVariableValue("DateTo", dateTo);
            vo1.ensureVariableManager().setVariableValue("ShiftModeCode", shiftModeC);
            vo1.ensureVariableManager().setVariableValue("TerminalCode", terminalCode);
            vo1.executeQuery();
            System.out.println("after DetailView1Iterator vo1.getEstimatedRowCount()="+ vo1.getEstimatedRowCount());
    5.  What's wrong in my implementation?  I don't have no problem to implement such a tree table if using simple master-detail tables view object, but now I have to use such 2 view objects using complex SQL for my requirement and variable bindings are necessary for detail view object although I also think a bit strange by myself.

    Hi Frank,
    Thank you and it can work.
    public void setLowHighSalaryRangeForDetailEmployeesAccessorViewObject(Number lowSalary,
                                                                              Number highSalary) {
            Row r = getCurrentRow();
            if (r != null) {
                RowSet rs = (RowSet)r.getAttribute("EmpView");
                if (rs != null) {
                    ViewObject accessorVO = rs.getViewObject();
                    accessorVO.setNamedWhereClauseParam("LowSalary", lowSalary);
                    accessorVO.setNamedWhereClauseParam("HighSalary", highSalary);
                executeQuery();
    but I have a quesiton in this way. in code snippet, it is first getting current row of current master VO to determine if update variables value of detail VO. in my case, current row is possibly null after executeQuery() of master VO and  I have to change current row manually like below.
    any idea?
                DCIteratorBinding dc = (DCIteratorBinding)ADFUtil.evaluateEL("#{bindings.SSForecastSourceBlockView1Iterator}");
                ViewObject vo = dc.getViewObject();           
                vo.ensureVariableManager().setVariableValue("DateFrom", dateFrom);
                vo.ensureVariableManager().setVariableValue("DateTo", dateTo);
                vo.ensureVariableManager().setVariableValue("ShiftModeCode", shiftModeC);
                vo.ensureVariableManager().setVariableValue("TerminalCode", terminalCode);
                vo.executeQuery();
                vo.setCurrentRowAtRangeIndex(0);
                ((SSForecastSourceBlockViewImpl)vo).synchornizeAccessorVOVariableValues();

  • Problem in ADF Tree When I use 2 Tree in a Page with same View Object !

    Hi everybody,
    I use JDeveloper 11.1.1.5 and ADF Faces in UI . I have 2 tree in a page that they are from same Updatable View Object but diffrent instances in application module . When I change an attribute value from one of them in manage Bean programmatically , both of them change??!! in my case I put a checkbox in nodeStamp, when user click on checkbox, title of row must change but title in both of them change?????
    I think it is a bug.
    please help me. Thanks

    >
    so what is diffrent to use same view object instances in page or multiple instances when we need ??
    >
    Actually, this depends on your use case. suppose you have a view object with a bind variable, and you want to display to tables on the same page but with different query result depending on the bind variable, in this case you have to create two view instances.
    check
    http://andrejusb.blogspot.com/2011/06/understanding-adf-bc-view-object.html

  • DP/BOM sub-product branding problem.

    Hi,
    We have a problem in our DP/BOM process.
    In our system we want to use DP/BOM for some materials. The materials that are included in a DP/BOM product tree is also sold seperately. The problem we are having in DP/BOM explosion is that it creates unwanted CVCs with the brand of the DP/BOM output material.
    For eg.
    We have a product A which is in Brand A bucket.
    We have a product B which is in Brand B bucket.
    We have a DP/BOM product C which includes product A and product B in its product tree.
    When we explode DP/PPM two two new CVCs created;
    A CVC of product A with  Brand C profile.
    A CVC of product B with  Brand C profile.
    As a conclusion although these products are not in Brand C category these new CVC created in Brand C. We dont want CVCs created in a category other then the products original category even if these CVCs are created as a part of DP/BOM.
    So the question is; Is there a user exit/enhancement/a way to prevent/ modify these CVCs to be created in the sub-materials original Brand category. If we modify is there a way to make sure DP/BOM wil still work properly.
    Thanks for any help,
    Yücelen Gül.

    Hi,
    I think you might want to reconsider how it is setup. Why are two products A & B of different Brand sold under C which is under a third brand? Generally BOMs are setup under the same product family.
    Hope this helps.
    Thanks
    Mani Suresh

  • Cannot place order ERROR: "There was a problem adding your product to cart"

    Hey guys,
    Well, once again Best Buy's online system is preventing me from making an order. It seems like nearly every time I log in I experience some new problem. This time, I'm unable to add anything to my cart. It doesn't matter what item I try to add to my cart or what browser I use or if I clear cookies...it happens every time, on every browser, with every product in the store. The error shows a red & white triangle with a message "There was a problem adding your product to cart".
    Just to clarify ahead of time: 1) I have already tried signing in using 4 different browsers (explorer, firefox, chrome, opera) & they all give the same error; 2) Prior to posting here I researched this problem & found out it is somewhat common & has been occurring since at least 2012 on BestBuy.com; 3) Every time someone posts in here about this problem, customer service offers the same "fix" every time - to sign out, clear their browser cache of cookies, shut down the browser, restart the browser, sign back in, etc.... The only problem is, this "solution" has not worked ONE time our of the many times this problem has cropped up in here over the past 3+ years. Why this "solution" keeps getting told to people even though it never works is beyond me. But, there you have it.
    Just to clarify: I have already tried this solution, And just like with everyone else before me, it didn't work for me either. So, what's the next step? There must be something else that can be done other than waiting a couple more days for it to magically fix itself (it seems that is the only thing that ever "works"...is to let several days go by and the problem ends up getting fixed in some back-end server-side patch up). 
    What I'm hoping for from you is a solution that can fix this immediately. This problem has already prevented me from making a couple purchases for items that were temporarily on sale over the past couple days. So, those are lost sales for Best Buy. What I'm hoping to do now is pre-order the Elder Scrolls Online (PS4) in order to take advantage of the $10 pre-order reward. The game releases on Tuesday the 9th. So, in order to get this done in time I need to place the order sometime today (on the 8th).
    With all these repeated technical problems making purchasing a chore & wasting my time every single time I want to buy a product it's almost as if Best Buy is telling customers "We don't care if our online system works reliably...go spend your money at Amazon instead". lol
    Thank you in advance for your timely help on this matter.
    -Marc (removed per forum guidelines)

    Hello mjswooosh,
    I'm very disheartened to hear that you've had ongoing problems when attempting to order from BestBuy.com. Our goal is ever to provide a fun and efficient shopping environment! Certainly creating aggravation serves neither you nor us and I apologize sincerely for this having been your experience.
    We recommend the troubleshooting steps you mentioned (i.e., clearing the browser cache, deleting temporary internet files and cookies) because this is the most common cause of this type of problem. I too have encountered this issue from time to time and these steps have almost always resolved the problem. I say almost always because there's one further step you can try: ensure that you have signed out of BestBuy.com, then perform the browser maintenance steps we've recommended. Afterward, before signing in to BestBuy.com, add your desired items to your cart and sign in as part of the checkout process. When the standard steps have not netted a resolution for me, this has solved the problem each time.
    I hope this helps. I'm very grateful that you took the time to write to us with your concerns and for sharing your very valuable feedback about your online experience.
    Sincerely,
    John|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Sales Order - Purchase Order using Production BOM?

    Hi all,
    We are experimenting moving over from Sales BOMs to Production BOMs to allow us to use P&P Manager properly.
    One of the scenarios which is causing a problem is "back to back" ordering. At the moment, with our Sales BOMs, we can tick the "purchase orders" checkbox in the logistics tab, and generate Purchase Orders for our Sales Order (the system creates POs for all the child components in the Sales Order we choose).
    When we have tested this with a Production BOM, we cannot seem to find a way to get the system to do anything similar (plus in this case, I guess create the relevant work order(s)).
    Is there a way of achieving this?
    Thanks
    Raj

    Hi Suda,
    Thanks for your reply. After further thought, I realise that we will be unable to use the Production BOM and will have to stick to Sales BOM type for the forseeable future.
    Thanks,
    Raj

  • Saving a Template BOM Item using the oInventoryGenEntry object

    Hi
    I am trying to do a Good Receipt using the DI Object, It always works if the item is not a BOM object but if its a BOM parent I get an error :Item is not set as Inventory Item. The error continues to show me that the problem occurred on an Item that is a child Item of the BOM, This happens especially when the BOM TreeType is Template. According to my understanding,  As long as he parent Item of the BOM is set as inventory Item, every item should work fine.
    I can't set the child items as Inventory items because they are just components to build the parent Item.
    Please help. How can I solve this
    Private Function UpdateStock() As Integer
            Dim oAdjustmentIn As SAPbobsCOM.Documents
            Dim txtItemCode As SAPbouiCOM.EditText
            Dim txtStdCost As SAPbouiCOM.EditText
            Dim txtSize1 As SAPbouiCOM.EditText
            Dim txtSize2 As SAPbouiCOM.EditText
            Dim txtExtQty As SAPbouiCOM.EditText
            Dim errDescript As String
            Dim Result As Integer
            Dim CurrentStock As Double
            Dim iRow As Integer
            Dim tmp As String
            Dim i As Integer
            Dim StkItem As String
            Dim GLAccount As String
            Try
                oAdjustmentIn = oDICompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry)
                oAdjustmentIn.DocDate = Now
                oAdjustmentIn.Reference2 = "2"        
                oAdjustmentIn.JournalMemo = "Adjustment In"
                'oAdjustmentIn.PaymentGroupCode = "1"
                oItem = oAdjustmentInForm.Items.Item("13")
                oMatrix = oItem.Specific
                txtItemCode = oMatrix.Columns.Item("1").Cells.Item.oMatrix.RowCount).Specific
                If txtItemCode.Value = "" Then
                    i = oMatrix.RowCount - 1
                Else
                    i = oMatrix.RowCount
                End If
                For iRow = 1 To i
                    DocType = New PGG_IBT(mo_ParentAddon)
                    txtItemCode = oMatrix.Columns.Item("1").Cells.Item(iRow).Specific
                    StkItem = txtItemCode.Value
                    oAdjustmentIn.Lines.ItemCode = StkItem
                    oAdjustmentIn.Lines.AccountCode = GLAccount
                    oAdjustmentIn.Lines.Quantity = 2
                    oAdjustmentIn.Lines.Price = myPrice
                    If iRow <> i Then
                        oAdjustmentIn.Lines.Add()
                    End If
                Next
                Result = oAdjustmentIn.Add()
                If Result <> 0 Then
                    errDescript = oDICompany.GetLastErrorDescription()
                    SBO_Application.MessageBox("Error creating interbranch Receive  " & errDescript)
                End If
               UpdateStock = Result
            Catch ex As Exception
               UpdateStock = -1
                SBO_Application.MessageBox("Error in Class PGG_Inventory, function UpdateStock() " & ex.GetBaseException.ToString)
            Finally
                GC.Collect()
            End Try
        End Function

    Hi Ian
    Thanks for the insight, how ever, if I do a Goods Receipt direct in SAP Business One, the Item saves nicely and everything works. It even looks as though the BOM child items are not affeted. But when I use the DI object I then get an error, I don't know what the DI Object is doing different from what SB1 is doing.
    There is no doubt in my mind that the Template BOM item can be saved with the Goods Receipt because I am doing it direct in SBO client and it works. I just need to be able to do it via the Di Object
    Please help if you can think of another reason why this is happening
    Regards
    Dumisani

  • Problem of Product Tree in Production Order

    Dear Experts,
    My query is related to product tree when i am trying to add production order then it will give me error that " Item already defined at a higher level in the Product Tree [ Production Order -Rows- Item No] [line : 1], ' Row no. 1]', [Message 3566 -12]".And where i can find the path of Product Tree.
    Thanks & Regards
    Amol

    Sorry some kind of missunderstanding.
    Ok i see your error message. This is often caused, when a item is already related to another BOM or production order.
    Example :
    Item 1 consists of Item B and Item C
    Item B could not consists of Item 1 cause Item B is a part of Item 1.
    Regards Steffen

  • Problem while Creating BOM using LSMW Direct Input

    Hi  all ,
    I am trying to create the BOM Using LSMW Direct Input Method .
    I am getting problem at step 9 that is Read Data.
    It is able to read the values from header and item files .
    but it is not able to write , so the Written is 0 always .
    I put the field names first in the flat file and correcponding values below it with tab delimited.
    Please let me know where the Problem would be.... I am trying this from long time ..
    Regards ,
    Raj

    hi ,
    Yes i am specify files i am attaching 2 files .
    ones is header and the other is line item data .
    my strucure is :
    Hi ,
    I am still getting problem while for writing the records after reading the data .....
    my header structure :
    STYPE
    MATNR
    WERKS
    SELAL
    STLAN
    DATUV
    ZTEXT
    my item structure :
    STYPE
    MATNR
    WERKS
    SELAL
    POSTP
    MENGE
    my header data :
    STYPE     MATNR     WERKS     SELAL     STLAN     DATUV     ZTEXT
    1     388     0110     20     1     06.01.2009     SAMPLE ZTEXT     
    my item data :
    STYPE     MATNR1     WERKS     SELAL     POSTP     MENGE
    1     388     0110     20     N     1234
    1     382     0110     20     N     12345
    Above text files are delimited by tabulator.
    Please guide me . The files are reading but unable to write .....
    Regards,
    Raj

  • #include "%(Filename)_i.h" inserted into C++ source after adding connection points to ATL object using wizard.

    What is the subsitution for this appearant macro?  Solution will not build if removed.
    Using
    Adding Connection Points to an Object directions.

    Hi Shawn,
    Since you have posted this issue to the VC++ forum, I think you would get better support there:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/8494410e-9578-4b67-a08d-3380aac10fcf/include-filenameih-inserted-into-c-source-after-adding-connection-points-to-atl-object?forum=vcgeneral#503cbc06-40a2-4073-a56e-1b384b11b56e
    So I will move this thread to the Off-topic forum. Thanks for your understanding.
    Sincerely,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Installing isqlplus on existing 9.2.0.3  & 9.0.1.4 databases

    I have two Oracle databases one is 9.2.0.3 and one is 9.0.1.4. I would like to install isqlplus on these two systems. Can I do a custom install from a 9.2.0.4 install disk and just select isqlplus and or isqlplus and http for the install type? Thanks

  • Logic authorisation codes for logic 7.1

    hi folks, got my self a wee problem here in Scotland. I recently tried to install a new operating system on my Mac, tiger to be exact. for some reason I couldn't install it on my main hard-drive. there was an installation error and it wouldn't go any

  • Filter query with sub query using Dropdown box

    Dear Community, I have 2 queries 1. Main Query with 2 fields:  Project | Project value 2. Sub Query with 2 fields:  Project group | Project Project group can be belonging to number of projects and project can be belong to number of project group (Man

  • Why does my iPhoto export in both NEF and jpg

    My requirement is this. I want to export two versions of my photos to disk - one, as JPEG for sharing with family/friends; and two, as RAW to retain my changes for subsequent edits. When I export an iPhoto Event to disk, I use File -> Export -> 'Curr

  • Transport creation problem after upgrade

    Hi We have just upgraded and when trying to create a transport now I get the following error: Cannot access file                    kbg1bwd0\sapmnt\trans\sapnames\WATSO Any ideas Andy