Change BOM warehouse via DI API

Hi,
I have developed a POS add-on which uses the SDK to add invoices to SAP. When we use Bill of Materials items of type sales I can only seem to select the warehouse of the parent item. I would like the items which are automatically added to use the same warehouse as the parent. Is there a way to do this?
thanks

HI,
I seem to be having a similar issue.  I add a bom of the template type to an AP invoice.  The template represents a "kit" that our vendor lists that contains two items with catalog numbers that we sometimes purchase separately from the vendor.   Assigning the correct warehouse works fine for the BOM item (which is a phantom item), but the child items go to a different warehouse.  Does anyone know how to make the children go to the same warehouse that i selected?

Similar Messages

  • Delete BOM items via DI API

    hello,,,
    I want to ask can i delete my bom items through DI API.
    Will the changes of addings and deleting of items through DI API(coding n sdk)be reflected in our SBO.

    Dim objBOM As SAPbobsCOM.ProductTrees
    Dim intCnt As Integer
    Dim strCode As String
    Dim objItem As SAPbobsCOM.Items
    Dim objRS As SAPbobsCOM.Recordset
    Dim boolFlag As Boolean
    objItem = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems)
                objRS = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                objRS.DoQuery("Select Code from  OITM ")
                If (objRS.RecordCount > 0) Then
                    For intI = 0 To objRS.RecordCount - 1
                        strCode = objRS.Fields.Item(0).Value
                        boolFlag = objItem.GetByKey(strCode)
                        If boolFlag = True Then
                            lngStatus = objBOM.Remove()
                        End If
                        objRS.MoveNext()
                    Next
                End If
    Note - This code will delete all BOM's.Change the as per u r requirement.

  • Missing Functionality - Price List on BOM Header via DI API

    short: Cannot access Price List (oitt.pricelist) OR Show BOM components (oitt.showcomp) fields from SDK or DTW on BOM Header.
    longer: issue where we are creating Bills of Material using the DI API. We are unable to fill the Price List on the header (oitt.pricelist) via the DI API. This does not affect functionality of the BOM or any production orders created from the BOM. However it is a problem when we try to rollup prices using Update Parent Item Prices Globally. This utility is looking for the relevant price list in the Bill of Material Header and thus ignoring all of our items that were created via the DI API.

    Are you serious ?
    They use this property to change the Price List of a Goods Receipt ?
    I mean I understand that this is a Marketing Document but the lack of a property for disctinct values like Price List
    is not that good.

  • Changing cm_created programmatically via Java API

    Hi!
    Our problem is simple: we need to change the cm_created system km property via the rf api's.
    We have already set the property as not read-only and maintainable - but still the api throws a WcmException containing the following error message: "Read-only property: created".
    My gut feeling is that even though We have altered the property under property metadata, the repository framework still denies any changes due to the fact that it is a system property. (And yes, We have rebooted the server!).
    Any info and/or ideas regarding the problem above?
    Thanks in advance,
    /Jim

    Hi,
    Check this:
    https://forums.sdn.sap.com/thread.jspa?threadID=285425
    Regards,
    Praveen Gudapati

  • Changing Storage Property via C API

    I am trying to change the storage and consolidation properties via the C API with the following code:memberInfo->usShare = ESS_SHARE_DATA;memberInfo->usConsolidation = ESS_UCALC_SUB;cout << "EssOtlSetMemberInfo... ";status = EssOtlSetMemberInfo( outline, phMember, memberInfo );cout << status << '\n';I get no errors when I do this and know that phMember points to the correct member. After doing this, I write, restructure, and close the outline, but the changes to the Storage and Consolidation tags are lost.And ideas or requests for more info?Thanks!Bill

    Hi Shanti,
    Thanx alot for helping on both posts, I answered you on the other one and I think the same answer aplies to this one too, I fond this on help.sap
    "PCD Roles: These are semantic objects that represent collections of content that can be assigned to a user.
    There is no public API for accessing these roles."
    here the link
    http://help.sap.com/saphelp_nw70/helpdata/en/44/43863b2e641193e10000000a155369/frameset.htm
    accordint to that then is no way to modify the Role via API to achieve this, or do you thing this is only on 7.0 and now in 7.1 it is posible?
    Thanx in Advanced!
    Kind Regards,
    Gerardo J

  • Changing BOM Header via CSAP_MAT_BOM_MAINTAIN

    Hello all,
    In the documentation of FM CSAP_MAT_BOM_MAINTAIN it states under the restrictions section that "To date, changes to the BOM header are not yet supported."
    I also know that sometimes the documentation is not always up to date.  Is this restriction still valid when using ECC 5.0?
    If the answer to my question is yes, then how can I make a change to the BOM header?  (I want to change the base quantity)
    Thanks,
    Larry

    You cannot change the header data. You have to delete and re-create the BOM with changes.

  • Creating a Good Receipt PO via DI API No matching records found (ODBC -2028)

    Hi,
    I trying to create a Good Receipt PO via DI API.  It is working when the user I used to log in to SAP via the DI API is a Professional User but when I changed it to a Limited Logistics User, I'm receiving the No matching records found (ODBC -2028). I have already added the SDK Tools license to that user but still I'm receiving that error.
    So is it that the DI API will only work with a Professional User license or I can still use a Limited Logistics User?

    HI J S L,
    I get same error when I use different user that I just now add the SDK Tools without restarting the database server.  But previous user that I added SDK Tools before restart, no error.
    Today
    User 1 - add SDK Tools, no restart, error
    Last Wednesday
    User 2 - add SDK Tools, no restart, error
    Today - database server restarted this morning
    User 2 - no more error
    Both User 1 and 2 are Limited Logistics User.
    Best regards,
    Dennis

  • Duplicate a BO via DI API

    Hello,
    as far as I know the only possible way to duplicate a document (for example a Sales Order) via DI API is to save it as xml and then to open it again. but it doesn't work properly, because I get a message "bad value RDR1.BaseLine line: 1". And if I change the property to one manually, the new document can be saved, but it can't be changed any more. I get a message "table rdr1 was changed by another user". What shall I do, so that it works properly?
    Best Regards,
    Alexander

    Hi,
    anfortunatly there is nothing I could omit. I need the same Document and also links to the base documents. There is a code below I used to duplicate a document.
    Private Function CopyDocument(ByVal oDoc As SAPbobsCOM.Documents) As SAPbobsCOM.Documents
            Dim oXmlDoc As New XmlDocument()
            oXmlDoc.LoadXml(oDoc.GetAsXML())
            For Each oNode As XmlNode In oXmlDoc.SelectNodes("//DocEntry")
                oNode.InnerText = ""
            Next
            oXmlDoc.SelectSingleNode("//DocNum").InnerText = ""
            oXmlDoc.SelectSingleNode("//JrnlMemo").InnerText = ""
            oXmlDoc.Save(Application.StartupPath & "\Document_" & oDoc.DocEntry.ToString() & ".xml")
            CopyDocument = moSBOCompany.GetBusinessObjectFromXML(Application.StartupPath & "\Document_" & oDoc.DocEntry.ToString() & ".xml", 0)
        End Function
    Can somebody help me?
    Best Regards,
    Alexander

  • How Import any Cost Change for FIFO by DI API

    Dear all
    I have some problem about item cost change with FIFO Item.
    In SAP B1 2007A Standard Application.  It has 2 way to do that,
    first is use Landed Cost to add cost for Item that received.
    second use Item Revaluation with FIFO layer.
    But, If i want to import cost via DI API
    I don't found any method to do that.
    Anybody faced same problem before?
    I attempt to find any solution for solve this issue about 2 weeks.
    Please help me.
    Thanks, Exseang

    Hi Hi Suthee Thuratha...
    Check this SAP notes
    [SAP Note:1114111|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&note_numm=0001114111]
    [Refer this SAP Note:1271133|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&note_numm=0001271133]
    If u want do in SDK,please post this question to SDK forumn

  • Retrieve contact list  via the API not with the last updated date but created date?

    I can connect via the API and retrieve a list of contacts  but it seems that the only paramater i can pass is to search since the last Update  Date.
    Is it possible to search on the Created date and to have a date range as well?
    I found the xml result is slow to come as it gives all entries since the "lastUpdateDate" entered.

    A change in score does not cause the Date Modified field to change on the contact record. This field only changes when some data in one of the fields has changed.
    However, some of the confusion can come from the fact that lead scores have a Profile and Engagement portion. So if you have certain fields on the profile section being modified, that would cause a rescore at the same time. Engagement criteria such as form submits often cause the contact record to be modified while website visits and email clicks/opens do not.
    Hopefully this helps clarify,
    Bojan

  • Add limits to step settings via TestStand API from LabVIEW

    Dear LabVIEW and TestStand Community!
    I'm trying to add FileGlobal Variables as limits to TestStand step NumericLimit programmatically, via LabVIEW, via TS API. I attach screenshot of the code, which I use (part of it - the module, which only sets values to low and high limit of the step), and also I attach, what I manage to get.
    In TS, when I open sequence file, after running of the code, I can see in the description line of the test, that it accepted limits, which I set from LV - you can see it from the screenshot, it is marked with yellow. But in the Tab "Limits", there are still default numeric values, not FileGlobal Variables.
    Could anyone explain, what doest it mean, and how to set up them correctly?
    Thanks a lot in advance!
    Solved!
    Go to Solution.
    Attachments:
    Limits.PNG ‏33 KB
    Add Limits.PNG ‏15 KB

    It's kind of sequence generator what I'm doing now...
    Thank you very much for fast reply, but when I setup "UsexxxExpr" to true, it doesn't change the situation... Could you, please, check my attachment? Maybe, some mistake in syntax?
    Attachments:
    Add Limits.PNG ‏23 KB

  • How to generate the User-Input XML Body for executing workflows via REST APIs: The Solution

    I see that executing a workflow via REST APIs requires lot of work to be done just to prepare the right User-input XML body. Any mistake and you have some major debugging to do. Larger the number of User-Inputs, the bigger is the problem.Life is so much easier at the WFA GUI with Display names and tooltip help for User Inputs which are very easy for reading and providing the right values. I don't have any such privileges when manually preparing the User-Input XML body.It’s been asked numerous times how to provide User-Input values for type table, or Query (Multi-Select) etc. These are complex User-Input types and has lots of scope for user mistakes.I can have User-input dependency at WFA GUI which allows me to make the right selection, but while preparing my XML body I need to take care of it myself.An operator is allowed to execute workflows, but the same Display names which help him make the right user-inputs, makes it impossible for him to prepare the user-input body xml. Display names can't be used in in XML body and he can't know the exact parameter names by looking at the Display names. So he need to always contact the Admins/Architects for this. And Architects/Admins can't be expected to keep providing User-Input XML body to operators every operator. How about if I could enter all the User-Input values in my workflow execution at WFA GUI, I can do a preview which passed to my satisfaction and then I can magically get the XML body for it which I can use to execute my workflow from REST APIs from any client. It could be so very much easy for me than building my User-Input XML body manually. This is exactly what I'm going to give you right now. You open the WFA in browser, Go to your workflow, Start execution, you input values from GUI reading carefully the display names, preview it to your satisfaction and then get the XML body. Assume your workflow is called “Workflow to Print a given Message”. It’s a simple workflow with only 1 user-input Displayed as "Message to Print" Prerequisites:  The following are the one-time prerequisites. You need PowerShell 3.0 on your WFA server.Import the attached Generate_Workflow_User_Input_Body_in_XML.dar in your WFA. It’s our magical command called "Generate Workflow User Input Body in XML"Add credentials of a WFA Admin/Architect in you WFA itself with Name/IP: localhostMatch: ExactType: OtherName/IP: localhostUsername: <WFA Admin/Architect Username>Password: <User Password>   Steps: Suppose you have a workflow called "Workflow to Print a given Message". You want to execute it from REST apis and need to prepare the user input XML body.  Select this workflow and clone it. The workflow clone is the exact copy of your original workflow word by word, input-by-input. It will open in Edit mode with name "Workflow to Print a given Message - copy".Add the command "Generate Workflow User Input Body in XML" at the beginning of your workflow. This is a must. This command need to be the first command in your cloned workflow.This command requires no input. So for its Parameters just press okay and save the workflow.You are done.Now Execute the clone workflow. You'll see all the user-inputs available to you. Make your choices as you wish. Preview it to confirm that planning is passed and u have no errors.Execute it now.You'll see that the our magical command "Generate Workflow User Input Body in XML" has failed in our clone workflow execution. Don't worry, its fate was decided to be so. But it didn't fail before giving me what I really wanted. i.e. my XML body for my real workflow. It displayed it in the GUI as well as saved it in your WFA server @ C:\temp\<workflow_name_dd_MM_yyyy_hh_mm_ss_.xmlIt also deleted all the reservations of this particular failed job. So NO major residue left to be cleaned.To summarize: Clone Your workflow and Add the command "Generate Workflow User Input Body in XML" as your first command.    Start Execution, provide your User-inputs and preview it. Be satisfied and Press Okay.   Now Execute it.  After a few scconds this cloned workflow will fail with Error "All done. The Workflow will fail now."     See the command execution logs for this command. You'll see the User-Input XML body. It has also saved the XML file at C:\temp in your WFA server.   Have fun. sinhaa  

    Providing a new version 1.1.0 of the command "WFA Schedular" Changes made: Added conditional String Representation based on the Scheduling parameter provided. Provided check for the right number of parameters passed into the command.Added a new parameter "Expiry Date" to automatically stop the recurring execution upon expiry.Check for Posh3.0 version in code.Have Fun!! sinhaa Below example for:Schedule a workflow for recurring execution every alternate day i.e. once in 2 days at 10:30 PM starting 06-Jul-2015 (Today's date is 02-Jul-2015) . The recurring workflow execution  should expire on 31-Dec-2015 and stop.  

  • Update userid via SOAP API?

    Good morning,
    I'm just curious whether it's possible to change the username in ilearning via the webservice API? As far as I see the userimport transaction uses userid as key, so when I submit a user with a different username (all other data is the same) I get a new user..
    So far so good, but I can change the username on the ilearning admin interface - but is it possible via the API?
    thanks
    peter

    Yes it is, if the existing accounts have an external id and external source and the web service call checks the external id and source first, you can update the username.
    Check the webservices documentation for more detail and external id and src
    Scott
    http://www.seertechsolutions.com

  • Avoiding angering customers when changing BOM containing deposit item

    Hello,
    Visible in transaction CS03 is an item for which we charge a deposit of 6.90. We need to change to another item for which deposit will only be 6.10.
    The problem is that some clients have been charged the 6.90 deposit and, if I change the BOM now, via CS02 and put in the 6.10 item, our system is going to refund them only 6.10 when they return the empty.
    So we were thinking of doing a credit memo to the customer for the number of empties they have on hand. But what if they never return them?
    So perhaps that is some other idea of how to solve the problem.
    I don't suppose I can attach 80 cents extra refund to a specific client account.
    If we do go the credit memo route, I suppose there is no way to enter an item number and do a search of all that are out on loan to customers ? Or to do some kind of comparison of number of those items charged to customers and not refunded ?
    Perhaps this is part of a bigger problem that we should be handling in a different way. We are in the beverage industry, so we handle a lot of deposits for different size kegs, bottles, cases, etc. And these problems crop up whenever a vendor changes his deposit amout on the item and then we try to pass the change on to our clients without cheating them or us.
    Thanks!

    Dear,
    I think you will not get angry for delayed reply..
    Just want to know any solution from your side...
    After you change to 6.10 mark the new issues with special batch no. or any kind of mark so that old returns and new returns will not mix up. For the 6.90 charged customers... correspond them by mail about the change and appropriately the refund will be done once they return 6.90 applicable empties..
    Regards,
    Syed Hussain.

  • Error while changing BOM with change number

    Hi ALL, Please help me with followed error message, I am using ECM. I created ECR and converted to ECO and then released.
    Object management record cannot be generated
    Message no. 29046
    Diagnosis
    You want to change the BOM with the entered change number.
    One of the following situations triggered this error message:
    1. The indicator that allows automatic generation is not set for object type BOM in the change master.
    2. The indicator generation only on initial creation is set for object type BOM
    3. You are processing a change request.
    System response
    The system checks whether the indicator object management record will be generated is set in the change master.
    If the indicator generation only on initial creation is set, the system checks whether the BOM exists in the system.
    Procedure
    If you are authorized to change the change master, execute the following steps:
    For 1.)
    Set this indicator for object type BOM or create the control record in the change master.
    For 2.)
    If the BOM already exists in the system and the generation only on initial creation indicator is set, the system can no longer generate the control record automatically.
    In this case you have to add the object control record to the change master first, then you can change the BOM in relation to the change number.
    For 3.)
    You cannot generate any object control records for a change request.

    Hi
    With your question regarding changing BOM with change number  it looks lke there may be problem in defining the Object types,objects.Moreover whenever converted to ECO you need to enter into cs02 tcode for changing the bom with relevant change number and valid from date.
    Hope this gives you a clear idea.let me know if you need anyfurther inputs.
    Regards
    Praveen

Maybe you are looking for

  • HP Officejet Pro 8100 ePrinter

    I'm completely out of yellow ink, so whenever I try too rint smething, I get: I have plenty of black ink, but even tho I set it to print only black... ...it still won't print. I'd like to  use up the black ink B4 having to buy more cartridges.  Is th

  • I am noticing a Bunch of Preloader Problems With Captivate 5

    That are not being answered on the Adobe forums and they all seem to be some what related. I am have major preloader issues and wish this would be resolved. http://forums.adobe.com/message/3595269 http://forums.adobe.com/message/3209686 http://forums

  • PDF does not open in Lion

    Transferred many PDF's over from Snow Leopard and they will not open in preview in Lion. What gives?

  • Web Provisioned feature in SharePoint not deactivating web feature

    I am trying to remove certain feature from a web when it is created. But it is not working at all. when i debug i see this feature definitions are null. am i doing something wrong in the code public override void WebProvisioned(SPWebEventProperties p

  • Af:table + af:selectmanycheckbox

    Hi all, i have a Boolean Transient attribute which is used to select the rows in af:table. Now i want a checkbox in the header which helps the user to select all rows in the table. exactly as af:selectmanycheckbox Is their any way to achieve this sel