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

Similar Messages

  • I set up a new router and the windows machines have no problem with connectivity.  I go through the MacBook Pro's airport assistant and view my network and then enter the WPA2 password.  I get back a message saying the password is incorrect when it is

    I set up a new router and the windows machines connect fine.  My MacBook Pro does not.  I go through the airport assistant and see the network yet when I enter the router WPA password I get a message back saying that the password is incorrect.  And, it isn't!  Very frustrating.  What can I do as I had the same problem after I tried to reinstall my last router.  Again, only on the Mac.  Thanks!

    If you kept the same Base Station name and network name, that can confuse Keychain Access. Either change the Base Station and network name, or open Keychain Access Utility and delete any reference to your Base Station and network name. Make sure you delete from the Login and System keychains.

  • HT202159 Problem with Update on   It started, then the screen went white and the icons for the apps on the desktop were all blackened, 'waiting'.  What now?

    It showed a number of apps to be updated on my iPad, so I clicked 'update all' as usual.  It started, then the screen went white.  The icons for the apps on the desktop went black, as they do, with the first one half way around the little circle timer, and two marked 'waiting', with others not that far into the process.  They all stopped.  Now I can't stop the update process in the App Store, or use any of the apps.  What do I do next?  Help, please!

    Hello there, Rev Susi.
    From what I can gather you have a few apps that only display "Waiting". The following is a past discussion that dealt with a similar issue, the answer may help you as well:
    App updates won't download on my...: Apple Support Communities
    https://discussions.apple.com/thread/4111336
    Try tapping the App, so that it changes to Paused instead of Waiting, then tap it again to resume the install.
    Make sure you don't have any paused downloads in other apps either, like the App Store or iTunes Store.
    If that doesn't do it, try resetting or restoring the iPhone.
    via whatheck
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Problem with updating net price value through PORDCH Idoc

    Hi All,
    I have a ABAP program which calls the function module BAPI_PO_CHANGE to update the line item details using an idoc.
    During this change it is updating Limit values in PO bot not the net price.
    And the Idoc status is having message as BAPI Change has been done successfully instead of "PO number changed".
    Any suggestions to solve this issue.
    Thanks,
    Spandana

    Please post the details of the application release, database version and OS.
    Please see these MOS docs.
    Getting "ORA-20001: The primary key specified is invalid" Error Using HR_ASSIGNMENT_API.UPDATE_EMP_ASG_CRITERIA API [ID 737145.1]
    APP-PAY-07220: The primary key specified is invalid - ERROR Received Creating GRE/Legal Entity In New Business Group [ID 849754.1]
    Error Occurs While Hiring Applicants APP-PAY-07220: The Primary Key Specified Is Invalid [ID 1084464.1]
    Terminated Employee Scorecards Error's: Ora-20001: The Primary Key Specified Is Invalid [ID 859315.1]
    Hr_assignment_api.Update_emp_asg_criteria Gives Ora-20001, Ora-06512 [ID 334491.1]
    PERWSTEM Termination 'APP-PAY-07220 The Primary key specified is invalid' and Database 11.1.0.7.0 [ID 1263357.1]
    Error 'APP-PAY-07220: Primary Key Specified Is Invalid' When Attempting to Process Open Life Event [ID 567224.1]
    Republishing Performance Management Plan (PMP) Fails with Error: ORA-20001: The primary key specified is invalid [ID 956234.1]
    Thanks,
    Hussein

  • HT201210 nowadays have many user have problem with update to ios7 and need active with apple id maybe in the future in order escape from these problems must be stop use these products else. Because of simple user don't know about this technology and somet

    nowadays have many user have problem with update to ios7 and need active with apple id maybe in the future in order escape from these problems must be stop use these products else. Because of simple user don't know about this technology and sometime just hear from other user that it 's difficult to use then force they change phone that use to handle to another.

    It is a feature to discourage the theft of iPhones by making them useless if resold. It's not going anywhere. It's simple: just don't buy a phone until you make sure that the activation lock has been disabled.

  • I am having problem with updates CS5

    Hi,
    I am having problems with updating my CS5. I keep getting an error message "There was an error downloading this update. Please quit and try again later"
    Can you please help?
    Thank you
    Eli B

    See if doing it manually works
    All updates start here and select product, read to see if you need to install updates in number order, or if the updates are cumulative for the individual product http://www.adobe.com/downloads/updates/

  • Sound problems with my apple products

    I have been having sound problems with my apple products. I updated they and it went away for a little while but now my ipad  has no sound and the volume controls will not show up

    Hello Jamie_245,
    While the article was written for the iPhone, the troubleshooting details can be useful for resolving similar issues with an iPad.
    iPhone: No sound or distorted sound from speaker
    http://support.apple.com/kb/TS5180
    Cheers,
    Allen

  • Problem with updating the PC Updater software

    Good evening (from Germany). I have a problem with updating my Nokia Software Updater. I can download the setup and I can execute this. But when the installation starts (0%) a error message appears. It's a problem with Windows Installer but I don't know how to solve the problem. Here is a picture with the exactly error message:
    http://img-up.net/?up=Nokia_probES8HJXXg.jpg
    I hope somebody knows the anser with this software...
    Greetings
    OS: Windows XP SP2
    Phone: Nokia 3110 classic Firmware: V 5.50
    Message Edited by dernamenlose on 24-Apr-2008 08:56 PM

    Good morning (from Denmark).
    I hve the same problem.
    OS: WinXP SP2
    Phone: N73.
    Greetings.

  • HT1871 Hello i have one IPhone 4S and I use 3G net in my mobile sometime I have problem with temperature in my phone at the SIM card or battery how can I fix this problem. By update or version of 6.1.3

    Hello i have one IPhone 4S and I use 3G net in my mobile sometime I have problem with temperature in my phone at the SIM card or battery how can I fix this problem. By update or version of 6.1.3

    Could it be because the SIM card got damaged while I cut it to fit the IPhone?
    Very likely. Hard to believe the carrier in Mexico doesn't have a micro-SIM card available.
    Or somehow the Chinese carrier found out and locked it?
    No, which is not possible.
    What can I do? Get a new SIM and see if it works again?
    Get a micro-SIM from the carrier in Mexico that you don't have to manually cut down. If that carrier doesn't provide one, switch to another carrier that is not so low-budget.

  • TS3276 I receive a pop up from ICal saying the server does not recognize me user name and password.  This started yesterday.  I have no problems with receiving or sending emails through Mail

    I receive a pop-up from ICal saying the server does not recognize my user name and password for my me.com email address.  This started yesterday and occurs about every 5 minutes or so.  There are no problems with receiving or sending email through Mail.  I did change me email password several days ago but have no problems sending/receiving since then.

    I fixed the problem.  I opened Preferences in ICal and entered my new password.  No more pop-ups

  • Problems with updating files in the cloud

    problems with updating files in the cloud

    What kind of problems?
    Have you recently upgraded to iCloud Drive on your iOS devices with iOS 8?
    Be aware, be careful, be prepared for iCloud Drive | TUAW: Apple news, reviews and how-tos since 2004

  • Adobe Photoshop Elements Problem with update 9.0.3

    Problem with updates Elements 9.0.3
    Message title was edited by: Brett N

    Then follow the rest of the directions here:
    Error "Patch cannot be applied" | Photoshop Elements 9.0.3 update | Windows
    http://helpx.adobe.com/photoshop-elements/kb/error-patch-cannot-applied-photoshop.html

  • Problem with update Photoshop, Illustrator and Indesign CS6

    Hi all. I have problem with update Photoshop, Illustrator and Indesign CS6 on OSx 10.8.4. Application are OK but update (bug fixies) not working. Update failed. (U44M1P7)

    Hi El Gondo,
    The following might explain and help solve the problem...
    U44M1P7 - Updates :
    http://helpx.adobe.com/creative-suite/kb/error-u44m1p7-installing-upda tes-ccm.html
    U44M1P7, U44M2P7 - Creative Cloud Help / Can't apply Extension Manager update 6.0.2 | Mac OS :
    http://helpx.adobe.com/creative-suite/kb/unable-apply-extension-manage r-update.html
    Thanks!
    Ankit

  • Problem with update MUSE CC 2014.2 (october 6). after upgrading to the new version of Muse crashes very often (out without notice).

    Problem with update MUSE CC 2014.2 (october 6). after upgrading to the new version of Muse crashes very often (out without notice).

    HELP! i can't get ANYTHING done in the new muse - keeps closing.  once it crashes - i can't get the file back open!
    i've lost all my work!
    from my desktop - when it stared happening was with the updated version:
    Logging in build 2014.2.1.10 started at: Mon Nov 03 13:36:38 2014
    ========================================
    [00:00:42.416] Opening file '\\D-LAPTOP\_websites\dsbees muse\dsbees.muse' with status:success size:9797632 mod Date:Tue Sep 23 15:51:42 GMT-0500 2014 highestUID: 3548
    [00:01:03.898] Preparing to Save As over "\\D-LAPTOP\_websites\dsbeesTWO\dsbeesTWO.muse" exists: true
    [00:01:17.516] SaveAs complete for file '\\D-LAPTOP\_websites\dsbeesTWO\dsbeesTWO.muse' file size:9830400 mod Date:Mon Nov 3 13:37:51 GMT-0600 2014 highest UID:3551
    Build 232: Mon Nov 3 19:41:03 2014 UTC: Error: CSI: OOBE: Serial Number: Error Code: O-10 Error Message: Unable to retrieve the serial number (Note: this may not be an error)
    Build 232: Mon Nov 3 19:41:03 2014 UTC: Error: CSI: OOBE: Serial Number: Error Code: O-10 Error Message: Unable to retrieve the serial number (Note: this may not be an error)
    Build 232: Mon Nov 3 19:41:07 2014 UTC: Error: CSI: OOBE: Serial Number: Error Code: O-10 Error Message: Unable to retrieve the serial number (Note: this may not be an error)
    Build 232: Mon Nov 3 19:41:21 2014 UTC: Error: CSI: IMS: Connect: Error Code: I-200 Error Message: No Account
    Build 232: Mon Nov 3 19:41:21 2014 UTC: Unknown IMS error 'SHARED_NOACCT_ERROR' has occurred when retrieving IMS token.
    Build 232: Mon Nov 3 19:41:57 2014 UTC: Opening file '\\D-LAPTOP\_websites\dsbees muse\dsbees.muse' with status:This Adobe Muse site file requires a newer version of Adobe Muse. Please update to the latest version. size:9797632 mod Date:Tue Sep 23 15:51:42 GMT-0500 2014
    Build 232: Mon Nov 3 19:41:57 2014 UTC: This Adobe Muse site file requires a newer version of Adobe Muse. Please update to the latest version.
    Logging in build 2014.2.1.10 started at: Mon Nov 03 13:43:17 2014
    ========================================
    [00:00:21.481] Opening file '\\D-LAPTOP\_websites\dsbeesTWO\dsbeesTWO.muse' with status:success size:9830400 mod Date:Mon Nov 3 13:37:51 GMT-0600 2014 highestUID: 3551
    [00:00:30.373] AssertInDebug: Unable to run recovery. User file remains locked after 5 second pause.-assertInDebugOnly+DataBase/recover+MuseSite$/recover+MethodInfo-2886+DataBase$/run Recovery+apply+UIComponent/callLaterDispatcher2+UIComponent/callLaterDispatcher+end stack
    [00:00:30.404] Failed to recover file:\\D-LAPTOP\_websites\dsbeesTWO\dsbeesTWO.muse
    [00:00:30.420] Calling openConnection for file that doesn't exist? C:\Users\Owner\AppData\Roaming\com.adobe.AdobeMuseCC.2014.2\Local Store\Recovery\JXRoDn335LE0UosOdoStnQ Parent folder exists.
    [00:00:34.429] open of SQL connection failed for C:\Users\Owner\AppData\Roaming\com.adobe.AdobeMuseCC.2014.2\Local Store\Recovery\JXRoDn335LE0UosOdoStnQ
    [00:00:34.429] Failed to open mini-save connection B "C:\Users\Owner\AppData\Roaming\com.adobe.AdobeMuseCC.2014.2\Local Store\Recovery\JXRoDn335LE0UosOdoStnQ" Doesn't exist. Folder exists. error:SQLError: 'Error #3125: Unable to open the database file.', details:'Connection closed.', operation:'open', detailID:'1001'
    [00:00:34.429] EXCEPTION:[SQLC/internalOpen] SQLError: 'Error #3125: Unable to open the database file.', details:'Connection closed.', operation:'open', detailID:'1001'-SQLConnection/internalOpen+SQLConnection/open+DataBaseConnectionWrapper/o penConnection+MethodInfo-28954+EventDispatcher/dispatchEventFunction+EventDispatcher/dispa tchEvent+MethodInfo-28938+end stack
    [00:00:34.445] AlertAndExit because of: [SQLC/internalOpen] SQLError: 'Error #3125: Unable to open the database file.', details:'Connection closed.', operation:'open', detailID:'1001'

  • Problem with updating adobe ilustrator CS6

    Hi
    I have problem with updating adobe ilustrator CS6. Error code: U43M1D204

    Please see the below similar discussions:
    http://forums.adobe.com/message/4913117#4913117#4913117
    http://forums.adobe.com/message/4169374
    Thanks!
    Ankit

Maybe you are looking for

  • LogFileNotFoundException from one index but not another in DPL

    Hi folks, I have an entity type in the DPL called an Item. It has various secondary keys. When I try to use the "type" of the item to get all items of a particular type, I get a LogFileNotFoundException (the log file is clearly gone, and we have no p

  • My iBook will fail to mount when I try to download .dmg?

    I bought an iBook G4 used that arrived yesterday, and the first thing that went wrong was Safari kept closing when I went to Google and Youtube. I figured it was an old browser, so when I tried to download a version of Firefox that worked with my sys

  • Why is flash cc broken

    Hi, I really really really need you guys to fix flash. It is my major tool at work. We have upgraded to cloud and I can no longer do my job. For example. I can no longer free hand draw!!!!! pencil and brush are useless as a creative tool. I cant even

  • CS4 freezes when editing audio.

    Hello All, I have a client that has a workstation that freezes when she edits audio in CS4.  I have seen it happen and what it does is it keeps playing the audio but Adobe CS4 freezes until the audio is done playing or when she kills CS4.  I have rei

  • IBAN on IT0009

    Hi all, is possible the massive automatic generation of IBAN on IT 0009 (loading TIBAN table) . Th batch input on MP000900 is not possible. Best regards. Miki