Update an Entity in WD Application

Hi All,
in my Web Dynpro Application I can create an entity in an existing entity service. I can do that with the following code:
AChangeDescriptionDB db = ChangeDescriptionDBServiceProxy.create();          
db.setProcessID(processID);
db.setTitle(actualTitle);
db.setType(wdContext.currentContextElement().getType() );
db.getAspect().sendChanges();
But how can I update or delete an entity?
Should be possible, but I dont found out a way?
Thanks in advance
Steve

Hi Steve,
Which code are you using? As far as I can understand from your reply, its
code  line 1:  <i>IAspect tempAspect = ChangeDescriptionDBServiceProxy.findUniqueKey(uniqueKey);</i>
  //This returns you only one record. So you do not use the iterator but directly get the first row as follows
code line 2:
<i>if(tempAspect!=null){
AChangeDescriptionDB db = (AChangeDescriptionDB) tempAspect.get(0);
}</i>
Can you please confirm if this code line 2 where you are typecasting is giving you the error? I am confused because you have mentioned 2 codes from 2 different scenarios, itr.next() for list and .getAspectRow(0) for single record. Or is it like both these cases throw error when you use them separately?
Here I have to mention that you must have added public part default of DC tc/col/api (compartment
SAP_JTECHS) in order to use the code for "IAspect".
Please let me know the error. Also, please mention the version of NW2004s that you are using.
Regards,
Suparna
Message was edited by: Suparna Deb

Similar Messages

  • Topic: How to obtain entity manager in application server?

    Hey,
    How to obtain Entity manger in application server ?
    The class is a simple class (no Ejb), and i can call to this class from Ejb or from inner schdeuler process (not container management)
    I want that if i call to this calss from Ejb , that the entity manager transaction will join to the global transaction.
    Thank you

    Hi,
    entity managers outside EJBs can be created using a javax.persistence.EntityManagerFactory.
    Regards

  • How to Enable Auto Update functionality in  adobe AIR application?

    Hi All,
         How to Enable Auto Update functionality in  adobe AIR application and ask for new version to install to user.
         Please provide some informarion regarding above topic.
    Thanks,
    Sunil Rana

    Hi All,,
    Got solution. call checkUpdate() function in application level initialize event.
    private function checkUpdate() : void
                    appUpdater.updateURL = "http://www.aa.com/flex/aa/NativeUpdater.xml";
                    appUpdater.addEventListener(UpdateEvent.INITIALIZED, updater_initializedHandler);
                    //we can hide the dialog asking for permission for checking for a new update;
                    //if you want to see it just leave the default value (or set true).
                    appUpdater.isCheckForUpdateVisible = false;               
                    //we initialize the updater
                    appUpdater.initialize();   
                 * Handler function for updater_initializedHandler events triggered by the ApplicationUpdater.INITIALIZED
                 * @param updater_initializedHandler
                protected function updater_initializedHandler(event:UpdateEvent):void
                    //initializeHandler();
                    appUpdater.checkNow();
    In NativeUpdater.xml
    <?xml version="1.0" encoding="utf-8" ?>
    <update xmlns="http://ns.adobe.com/air/framework/update/description/1.0">
         <version>2.0</version>
          <url>http://www.aa.com/flex/aa/AutoUpdate.air</url>
         <description>
         <![CDATA[                 * This a Win update
          ]]>
          </description>
    </update>
    Upload NativeUpdater.xml file on your Server. When you open your old .air file it will ask for replace with new version.
    Thanks,
    Sunil Rana

  • Security update unable to place in application folder. 0 kb available

    recent update unable to place in application folder. states 0 kb available

    Try to repair the disk permissions:
    * http://thexlab.com/faqs/repairprocess.html

  • HT201269 I used Version : 4.2.1 (8C148)  but I want to update New version because some application need 4.3  ....  please tell me about to  update new version for my iPhonoue 4. Thank you.

    I used Version : 4.2.1 (8C148)  but I want to update New version because some application need 4.3 or 5 ....  please tell me about to  update new version for my iPhonoue 4. Thank you.

    Start iTunes on the computer you normally sync with. Connect your phone. Select your phone in iTunes on your computer and select the General tab in iTunes. Then scroll down to check for updates. iTunes will update your phone to the latest version of the iOS that is availablele.

  • SCCM Software Updates (and SCUP) vs. Application Management for 3rd Party Application Patching

    Hi,
    We're getting ready to tackle the phenomena known as Java patching, and I was wondering if I could get your personal preference; SCCM Software Updates (and SCUP) vs. Application Management for 3rd Party Application Patching?
    I probably should give a little background on my environment; It's a university atmosphere, so unless it's policy, you have to ask nicely...can't tell people to do things they don't want to; multiple version of required versions of Java for what ever reason,
    which need to be identified, grouped together, and then upgrade as much as possible without breaking their old applications.
    I was thinking that Application Management probably made more sense where it is more robust, especially for removing multiple installs of Java on a single system, but Software Updates/SCUP looks like it was built for this type of patching, so I'm a bit confused
    why SCCM would have two components which essentially did the same thing.
    Your thoughts?
    Thanks,
    Bill

    For Java version management specifically you can already achieve a lot by using the Application Model in CM12.
    You can define supersedence between the different versions, just make sure to opt for uninstall of the older version when defining it.

  • I update my iPhone but My applications doesnt work . .  .

    I update my iPhone but My applications doesnt work . .  .
    Help me,please . . .

    I had the same problem today when I upgraded to 4.3.5. Starting a non-Apple app did not work anymore.
    What fixed my problem was uninstalling and reinstalling one of the free apps. After that, the rest of the non-Apple apps also worked again.
    Maybe you could try this?

  • Updated iTouch to 2.2 application and it ERASED all of my music and movies

    I have an iPod iTouch 32GB that I bought over a year ago. Today, I updated my iTouch with the application update 2.2 from my Mac and it erased all my music from my iTouch. When I tried to manually drag my music from my Mac over to my iTouch, it did not work. It took me over a year to purchase music, download and get my iTouch organized and now because of the recent update of the 2.2 application, it wiped everything off my iTouch and I cannot find the fix. I still have my music and movies on my Mac but it will not let me copy it to my iTouch. I read the help menu and some of the discussion and nothing remotely helpful is available to help me drag my music and movies from my computer to my iTouch. Am I supposed to re-purchase the music and movies again? What's the fix to put back all of my music from my Mac to my iTouch when dragging or synching does not work. Did my music/movies expire? I tried contacting Apple and guess what, they are not available to answer support questions from us.

    Did you try going to back version 2.1? I assume thats what you had before going to 2.2?
    Do to so, in your iTunes, click on your iTouch. Shift click the "restore" button and you should see a few .IPSW files. Find the one that says 2.1 and let iTunes recover your iTouch.
    Hope this helps!

  • Calling stored procedures from entity object and application module

    Hello
    I've put in place an EntiyImpl base class containg helper methods to call stored procedures.
    I now need to call stored procedures from the application module.
    Apart from creating an application module base class and duplicating the helper method code is there a way
    to share the helper methods for calling stored procedures between the entity impl and application module impl ?
    Regards
    Paul

    Does the helper code depend on features of a particular entity object instance, beyond its database transaction?
    If so, I'm not sure I see how it could be used from an application module class.
    If not, here's what you do:
    Step 1:
    Parametrize the database transaction--you might even want to. So instead of
    protected myHelperMethod(Object someParam) {
    DBTransaction trans = getDBTransaction();
    change this to
    protected myHelperMethod(DBTransaction trans, Object someParam) {
    Step 2: make the method public and static--once you parameterize the DBTransaction, you should be able to do this.
    public static myHelperMethod(DBTransaction trans, Object someParam) {
    Step 3: Remove the method from your EntityImpl base class into a utility class:
    public abstract class PlSqlUtils {
    private PlSqlUtils() {}
    public static myHelperMethod(DBTransaction trans, Object someParam) {
    When you want to call the method from an application module, entity object, or even view object class, call
    PlSqlUtils.myHelperMethod(getDBTransaction(), paramValue);
    Unlike Transaction.executeCommand(), this lets you provide functionality like setting procedure parameter values, retrieving OUT parameter values, etc.
    Hope this helps,
    Avrom

  • Why are application updates failing to install from application manager

    Why are application updates failing to install from application manager?

    Usually some update from another app is blocking any subsequent patches. The general cure is to run the Creative Suite Cleaner Tool, let the application manager reinstall and then let it try to update each application at the same time to prevent those version conflicts...
    Mylenium

  • Problems updating Entity services or application services

    Hello all,
    I'm working with SAP Netweaver Developer Studio creating a new CAF application.
    First all, I import the SAP Entreprise Service, then I model the entity service, I expose my application Service as a Web Service and finally I deploy it and test it.
    However, when I try to edit my entity service (for instance, including a new attribute) or application service (for instance, changing the bussiness logic code) and I redeploy it, the Web Service Navigator doesn't update the changes.
    So, sadly I must start again configuring the entity and application service.
    Any idea??
    Thanks,

    everytime you change the signature (structure of input/output) of the entity or application service, the change is not automatically propagated to the web service definition. you have to delete manually the web service configuration for the entity or application service or recreate it. you can call it a bug or a feature. it's up to you.

  • Cannot update an entity

    Hi, i syncronized the tablet and appear the next msg in the log:
    [20060925 07:31:16:612] E [MI/Smartsync ] Error while Smart Sync inbound processing: Error while Smart Sync inbound processing: com.sap.ip.me.spi.persist.IPersistenceException: Cannot update as no entity exists for IClassDescriptor/Key: cY01_ORD_TR_020/0010868091. Reset Smart Sync data on device to ensure consitency with middleware.
    This order doesn't appear in the GET_LIST BAPI of the SYNCBO, with what it would have to delete of the Tablet. But the orden is in IN_SYNC state and doesn't disappear.
    Thanks.

    Hi Julián Moreno Luna ,
    If you have large number of devices on your landscape, you can go for role synchronization.
    Device configurations can be changed using these ways,
    1) You can create a add-on. For that add-on you will have to create one install.xml file, on which you can mention which all parameters need to be added on to the MobileEngine.config file. After creating that add-on, you can use this application for role synchronisation. Hope you are aware of role synchronization and all.This addon will be added as one of the application for all of your devices.These will be downloaded on to the client machine on the next synchronization.
    prerequisites for role synchronization,
    a) you should create a common role for all the mobile device users. (for synchronization, all the mobile users should be available on the middleware also).
    b)  while creating the ADDON, you should include the miniaap in the transport request if you need to transport this to quality nd subsequently to production, since for role synchronization miniapp is mandatory..
    just refer these links..
    /people/kishor.gopinathan/blog/2006/03/17/how-can-we-apply-mi-application-patches
    http://help.sap.com/saphelp_nw04/helpdata/en/3a/b834418b718739e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/b3/d32032c95f97489d6b9b23afbf0351/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/24/be9b3e27a4fd13e10000000a114084/content.htm
    2) You can create a device configuration using the transaction, device_config.Here, first of all you have to create a monitoring function, in which you will have to add the parameters you want to add on to the MobileEngine.config file. Then subsequently add this monitoring function to 'Configuration for Mobile Devices'.While creating the 'Configuration for Mobile Devices' , you have the provision to attach the created configuration to particular role. There you will have the provision to mention the common role created for all the mobile devices.While doing role synchronization, this device configuration  will be added as configuration for all the users assigned to this role. The config file will be modified in the next synchronization.
    You can start the role synchronization, either from the SAP WebConsole or using the standard rfc enabled function module WAF_DEVICECONFIG_UPD_BY_ROLES.
    i do believe role synchronization is the best option.
    Regards,
    Kishor Gopinathan

  • After making the latest update on ios 6 , i could not make any update or any purchase for applications. The reason is in billing information. The security code is missing. I entered again the security code of my credit card. The same problem is there.

    After making update on ios 6, there was a problem in updating applications and in purchasing new applications. The issue is in billing information, the security code of my credit card. I go and entered the security code again, but the problem persidts. Please help, because i cant do sny purchase or sny update!!!.
    Thank you for your kind help

    The credit card in your account for your CC must match to what the CC company has on fike for you

  • My updates are failing.  Adobe application manager may be damaged.  I have downloaded and installed a new copy and the problem persists.   Please help.

    I am trying to update Photoshop CS6 in order to read my camera's RAW files.  It is a camera that is supported by Adobe Photoshop CS6.  However, when I try to get the Adobe Application Manager to update the software, it fails to do so.  (The spinning wheel tells me it is checking for updates and then quits, saying that "Update Failed - Updates could not be applied.  Adobe Application Manager may be damaged.  Download and install a new copy of Adobe Application Manager.")
    I have tried to reinstall the Adobe Application Manager 8.0, which gives me the following error message "We've encountered the following issues.  Installer failed to initialize.  Please download Adobe Support Advisor to detect the problem."  However, when I go to the link provided to download the Adobe Support Advisor, this piece of software NO LONGER EXISTS. "
    The Adobe Support Advisor has been discontinued
    The Adobe Support Advisor tool was used to analyze installer log and system information associated with installation errors. The tool has been replaced with improved installation support mechanisms. Please visit Adobe Support section for Knowledge base articles around Installation."
    So, I have gone to the forums and took the recommended step to update my software manually - getting the update Photoshop_CS6_13_0_6upd-2.dmg.  However, this update also fails stating that my Adobe Application Manager may be damages.  Download and install a new copy of Adobe Application Manager.  Which puts me right back where I started.  
    I have also taken the step of completely reinstalling Photoshop CS6.  This did not solve the problems outlined above.  
    Please help!

    reset your preferences:
    dreamweaver:  http://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs4-cs5.html
    flash:  http://helpx.adobe.com/flash/kb/re-create-preferences-flash-professional.html
    indesign:  https://forums.adobe.com/thread/526990
    lightroom:  http://www.lightroomforums.net/showthread.php?14226-Resetting-%28or-Trashing-%29-the-Light room-Preferences-file
    photoshop:  https://forums.adobe.com/thread/375776
    if that fails, uninstall ps, clean (Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6) and reinstall.  then use the manual updates.

  • App Store problem, appear an application update that does not exist applications

    I have an iMac 2.5 Ghz Intel Core I5 and operating system Mac OS X Version 10.7.3
    The problem is an application (Angry Birds) in my app store's update section that doesn't exist my installed applications.
    It has been seen update section for two months and that is created by an account which is not my account
    How can I remove this object from my app store's update section?
    <Edited by Host>

    Hi..
    Unfortunately, it sounds like you are the subject of pirated software.
    Follow Dahveed's help here >  app update available but not an app on...: Apple Support Communities
    You can report this to Apple using the email form here >  Apple - Support - Mac App Store - Contact Support

Maybe you are looking for

  • Trying to use exportData method during preSave event

    Hi, I'm using LiveCycle Designer ES2 and Acrobat X Pro. I'm trying to create a PDF form that will import and export data from an XML file - specifically, import upon opening the form, and export upon saving the form. The document will be very limited

  • Time capsule files disappear

    I use time capsule 1TG and copied some files onto it like using external hard disk. Everything was fine at the beginning, but one day all files disappeared, can't see any files name on tc. The files are not really gone, they are still on my tc becaus

  • How to import two AVI video files & convert to one FLV ?

    Status: - Newbie using PC & Flash CS3 ver9l - I can import a single AVI video file and convert it to an FLV video. Problem: - I have two AVI video files... one 4GB (20 minute) long and one 2GB (10 minute) long... and want to combine them to have a si

  • Why is firefox updating for hours and why so often?

    Other people have this same question with no replies or means to solve. Updating forever and for hours but mine does seem to be progressing through the new versions and is up to 6. Just keep answering ask later and figure I'll just update monthly for

  • Error 80070643 when installing KB2756496

    Update rollup 7-v2 for Exchange Server 2010 Service Pack1 (KB2756496) with error 0x80070643 On both our Exchange 2010 servers the update kb2756496 fails with error code 80070643. Both servers have all Exchange roles (no edge) and do have internet con