"Entity Service" update function - response possible?

Hello,
I have created a WSDL file in XI and imported it into my CAF application as External Service. The External Service is wrapped by an update operation from an Entity Service.
As my External Service is a synchronous WebService, I also get a response if the update was successful or not. But in update function there is no possibility to map this response for return (same with delete).
Do I have to create my own update funtion to be able to get information in my application services if update was successful or not? Or is it anyhow possible to expand the standard update operation?
Thanks for your answers
Joschi

As I know it's possible to create additional custom method for business entity wrapper and map it to external service operation. For example: "Collection updateMyEntity(params)".
The question is the following: why do you need to use standart update method if it does not satisfy your requirements ?
The only reason is to use CAF runtime service access functionality in order to access your business entity in generic way. CRUDs operations are designed for this purpose (create, read, update, delete standart operations). These standart methods are required for all business entites and can not be removed. From architectural point of view "update" method wrapping does not make sense without wrapping of others: "create", "read", "delete". If all these methods are implemented properly, in this case business entity service is consitent in the CAF context and  you can use additional powerfull CAF features.
If you just need to execute some query for updating your data using external service I recommend you to create new custom method in your business entity according to your requirements. Also, it will not probably confuse another developer who touched this entity design.
Best regards,
Aliaksei

Similar Messages

  • Cloud service update issue

    Hi Team,
    when we use cloud service update function to update a specific web role, 
    the message shows the role was updated successfully, 
    when we remote to that web role and found that the files in F(or E) the location where our application are deployed,
    didn't be updated actually.
    are there some known issues related this or  what logs can we check to diagnostic the problem.
    thanks in advance.

    Hello Baker,
    Thanks for posting here.
    Please refer this article which talks about update a cloud service.
    http://msdn.microsoft.com/en-us/library/azure/hh472157.aspx
    I hope that helps.
    Let me know if you have any questions.
    Best Regards,
    Sadiqh Ahmed

  • Update function modules/transaction service?

    Hi experts,
    Is it possible to use the transaction service (if_os_transaction and if_os_transaction_manager) to bundle updates in the same way as using update function modules?
    I've looked at SAP documentation and although it talks about mixing the two it's not clear how this can be accomplished.
    Any help would be much appreciated.
    Cheers,
    JB

    Hello!
    if I execute these step:
    TRANSACTION_BEGIN
    do processing of BAPI(1)...
    do processing commit bapi(1)
    do processing of BAPI(2) connected to BAPI(1)
    if something wrong
    TRANSACTION_abrot
    else.
    TRANSACTION_END
    does the transaction_abort execute the rollack of bapi(1) and bapi(2)?
    P.S. the commit between bapi(1) and bapi(2) is mandatory.
    thanks

  • Update Entity Service using Web Dynpro

    Hi,
    I am pretty new to Web Dynpro. I have defined an Entity Service which is working. With Web Dynpro I can create new entities using:
    ASomething newSomething = SomethingServiceProxy.create();
    newSomething.setX(x);
    newSomething.getAspect().sendChanges();
    Now I would like to update this entity and tried:
    ... wdContext.currentSomethingElement().modelOject();
    mySomething.setX(y);
    newSomething.getAspect().sendChanges();
    unfortunately this is not working. The database is not updated. How to solve this problem?
    Thanks in advance!
    Felix

    Hi
    thanks for the answer, but I think you do not have to call serviceFacade.save() and unfortunately it did not help.
    I found a solution, but I think it is more a work around. There should be a better option...
    ASomething something = wdContext.currentSomethingElement().modelOject();
    ASomething something2 = SomethingServiceProxy.read(something.getGuid());
    something2.setX(y);
    something2.getAspect().sendChanges();
    using this coding the DB is updated.
    Why is it not possible to call directly:
    somethin.getAspect().sendChanges()
    Thanks,
    Felix
    Message was edited by:
            Felix Japs

  • Removing/updating data through CAF entity service

    Does anyone know a way to remove/update data through a CAF entity service from a web dynpro which uses the webdynpro model of the CAF project ?

    Hi Nicolaij,
    This example describes how UPDATE and DELETE works under SP8.
    Hopefully it helps.
    Regards
    Kamil
    UPDATE of entity called "Bank"
    =======================
    ABank recordBank;
    recordBank = BankServiceProxy.read(“000000024”);
    recordBank.setCountryId(„Germany“);
    IAspect aspectList = recordBank.getAspect();
    aspectList.sendChanges();
    DELETE from entity called "TransferID"
    ============================
    ATransferID recordTransferID;
    recordTransferID = TransferIDServiceProxy.read(„123115651“);
    IAspect aspectList = recordTransferID.getAspect();
    IAspectRow aspectRow = aspectList.getAspectRow(0);
    aspectList.removeAspectRow(aspectRow);
    aspectList.sendChanges();

  • 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.

  • CAF DB Update for CAF Entity Service from Web Dynpro

    Hi all,
    I have created an entity service in CAF called “Contacts’ which contains the following attributes.
    phoneNo
    cellNo
    emailID.
    Another entity service called "Person" is created. This contains the following attributes.
    personId
    personName
    personAddr
    contactsRef. (Cardinality -> 0..n , Relational Type -> Composition)
    That means Contacts entity service is used within Person entity service. Now it is working fine within CAF service browser. Now the Web Dynpro DC of CAF application is used within another custom Web Dynpro DC project. I want to store data from Web Dynpro.
    Within the context of component controller of  Web Dynpro the structure is like
    APerson
         |_ personId
         |_ personName
         |_ personAddr
         |_ contactsRef       
                    |_ phoneNo (Under contactsRef)
                    |_ cellNo (Under contactsRef)
                    |_ emailID (Under contactsRef)
    So I have written the following code within web dynpro custom method.
    APerson person = PersonServiceProxy.create();
    java.util.List ls = new ArrayList();
    for(int i=0; i<4;i++)
    AContacts contact = ContactsServiceProxy.create();
    contact.setCellNo("9092130156");
    contact.setEmailID("[email protected]");
    contact.setPhoneNo("432258");
    contact.getAspect().sendChanges();
    ls.add(contact);
    person.setRelatedModelObjects("contactsRef",ls);
    person.setPersonID("9999");
    person.setPersonName("xyz");
    person.setPersonAddr("ABC, KOL");
    wdContext.nodeAPerson().bind(person);
    person.getAspect().sendChanges();
    CAFServiceFactory.getServiceFacade(idendityDefinition.class);
    After saving the data from Web Dynpro I am trying to test it from CAF service browser. But I am getting only the parent row. I mean only the value of personId, personName and personAddr fields which I have stored from Web Dynpro. But no value is coming within the table for Contacts entity service for composition relation.
    Could anybody help me how can I solve my problem?
    Thanks & Regards
    Chandan
    Message was edited by:
            Chandan Jash

    Hi Chandan,
    Can you do person.getRelatedModelObjects() and get the contact object, to check whether it is null, also check in the CAF DB whether the data you entered is present.
      I am not sure the code is actually adding the contact model object to person.
    Go thru this SDN Blog on usage of the CMI API's, there is a link for CMI documentation in it which might help you get the right code for adding the contact object.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cef4f43e-0d01-0010-db84-ede25c874115.
    award points if  info is helpful
    Regards,
    Anish

  • Entity Services: readByCustomKeys operation mapped to External Service

    Hello *,
    in my CAF application I'd like to read a product from SAP PLM. Within my Entity Service materialNumber is my custom key and therefore a corresponding operation exists: readByCustomKeys.
    I map this operation to my External Service (Web service provided by XI).
    As I can't test this operation directly with the Service Browser (deosn't appear there), I wrap  my Entity Service with an Application Service where I use the readByCustomKeys operation from Entity Service.
    Now when I test the Application Service operation I get the following error message in Service Browser:
    ERROR. Invalid type value :
    In XI I can see that there was no error and I got well defined XML data as response. So the problem must occur anywhere in the mapping back from External Service data to Entity Service attributes.
    Wrong data type mapping can be excluded as I already tested this possibility.
    Does anyone know what could be the reason?
    Thanks for your answers and best regards
    Joschi

    Hello Joachim,
    I dont have a lot of experience with readByCustomKeys (one experience which failed) but uou can also use read itself. If you have defined materialNumber as a key in your entity service, then this field can be used in read operations as well (I have a lot of positve experiences with this approach). You will find materialNumber while mapping read with your external service and you need not map the key field generated by Entity Service.
    For testing entity services, we have had several positive experiences with the config browser, specially for a findBy, read and even update operation. It was very easy to have a prototype UI to check the entity services.
    I know this isnt the answer to your question, but just sharing my experiences.
    All the best!!!
    Regards,
    Parag.

  • Technical issues with update function in help menu

    This is likely not the correct place, but I was not able to ascertain where I should ask this. I have the full CS6 suite, and am unable to get anything to happen when I attempt to use the update function within the help menu of any of the programs in the suite. I have even tried to use the update program that came with the suite, but still nothing works. When in the programs, I click the link listed as "updates" and nothing happens what so ever. This is a common occurance regardless of the specific program.
    My system specs:
    Athlon X6 CPU
    16Gb ram
    Radeon HD 6950 2Gb
    ASrock extreme 3 mb
    Hard drive is a pair of seagate 500Gb drives in RAID0 array
    OS is Windows 7 Pro 64bit
    Current version showing in Photoshop and Illustrator is 13.0.1

    Notice where it says
    "No update override. If there is no UpdateOverride the Mediator simply propagates the changes to the underlying data sources. "
    That's what you want. Want to see it work? "import metadata" for a database table. Open the data service that is created. Execute the function with the same name as the table. Click on the "Edit" button, change some data, click on Submit. You've done it. Re-execute the function with the same name as the table to see the modified data.
    And it doesn't stop there - you can build logical data services on top of that physical data services, and when you update data in the logical data service, the changes will be propagated to the underlying physical data services.
    is it possible to create a Data Service that performs updates, and make it available for ALSB as a Web Service, like the get methods it already creates?Well, this is a different question now. Yes it is possible, please read : http://e-docs.bea.com/aldsp/docs25/appdev/alsb_support.html

  • Ovi Maps 3.06 & 5800 XM. Update function worked in...

    After spending hours and hours of my valuable time trying to get the update function to work in the final release of 3.06,I give up and have had to turn to this forum for help. I've encountered so many problems with moving from the beta to final release that I don't know where to start. Seems you cannot update form the 3.06 beta,you must first remove a significant number of installed files with the application manager before Ovi Suite will stop giving you a error response when trying to update to the final version from beta. This I only learnt on a forum.
    The issue of why the update function no longer works as it did in the beta version has me stumped. I've tried reinstalling the phone software,set it back to it's factory settings,etc,etc,etc,. I really liked the beta update function,it worked well by indicationg the maps I had installed and could check to see if my maps were out of date. I had even used it to download a few smaller maps.
    I read somewhere to try deleting some of the MapLoader files that are stored on the micro-SD card. It's possible I did not delete the correct one's as that did not help.
    Solved!
    Go to Solution.

    @9252fly
    Welcome to the forum!
    You have my commiserations as have "Update"  working on 5800XM but not N8, although not unexpected in view of difficulty returning N8 to "out of box" state, which not an issue however with 5800XM. Ironically on N8 the application Mobile Map Loader from OVI Store http://store.ovi.com/content/77461 does work on with latest OVI Maps version, which in my situation may have introduced conflicts with "Update".
    I might add that as primarily a Mac user OVI Suite is not a readily available option so would get application via:http://europe.nokia.com/support/product-support/maps-support/compatibility-and-download#/nokia-5800-...
    If backing up to memory card I have yet to try just restoring Contacts & Messaging on newly formatted device to see if by not restoring "Settings" this resolves the issue or not.
    As you mentioned it can sometimes be necessary to Go to Menu > Settings > Application mgr. > Installed apps and uninstall any of these present: Open C LIBSSL,Open C LIBSSL Patch, OVI Maps Wi-Fi/Network Positioning, PIPS Installer, Share Location Agent, Share Location, Share Location Widget, Standard C++ Library Common, Standard C++ Library Patch, Symbian OS Pipes Upgrade, Symbian OS PIPS Upgrade & Upgrade for OpenC LIBZ Support
    AFAIK the only files mentioned for removal from memory card are E:\Cities + .qf file to remove all existing map data in case of corruption when changing from one map set to another upon updating.
    Happy to have helped forum with a Support Ratio = 42.5

  • The workflow could not update the item, possibly because one or more columns for the item require a different type of information using Update Item action

       I got error  "The workflow could not update the item, possibly because one or more columns for the item require a different type of information "I  found out the cause is  Update Item action       
    I need to update item in another List call Customer Report ,the field call "Issues"  with data type  "Choice"   to yes
    then the error arise .   please help..

    Thanks for the quick response Nikhil.
    Our SPF 2010 server is relatively small to many setups I am sure. The list with the issue only has 4456 items and there are a few associated lists, eg lookups, Tasks, etc see below for count.
    Site Lists
    Engagements = 4456 (Errors on this list, primary list for activity)
    Tasks = 7711  (All workflow tasks from all site lists)
    Clients = 4396  (Lookup from Engagements, Tslips, etc)
    Workflow History = 584930 (I periodically run a cleanup on this and try to keep it under 400k)
    Tslips = 3522 (Engagements list can create items here, but overall not much interaction between lists)
    A few other lists that are used by workflows to lookup associations that are fairly static and under 50 items, eg "Parters Admin" used to lookup a partners executive admin to assign a task.
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

  • Using different RFC's in one Application / Entity Service?

    Hello *,
    I just want to create my first Composite Application Service but before I begin I have some questions.
    The service will read out material master data from PLM. For that it has some findBy-operations with full-text search (creationDate, MatNr. ...) which return a result list and one operation which returns the material object for a given MatNr.
    For this operations I need to call different RFC's which are imported by external services.
    Now my questions:
    1. What kind of service should wrap my external services and provide the operations? Should I use one or more entity service to wrap external services and then realize the operations in an application service? Or should I just take an application service without entity services?
    2. The created service should not only be an internal CAF  service but also a Web service? How can I realize this?
    Thanks for your answers.
    Best regards
    Joschi

    Ok, thanks a lot. So nearly everything's clear now. Only one question remains:
    > 6. mark the entity service as "remote" and create a
    > web service from it
    > (note: this requires NW04s SP8)
    Is this possible? I can't find any checkbox to mark an entity service as "remote" like in an application service (NWDS 7.0.07 and NW04s SP8).
    So I have to map the findBy operations to an application service and create a web service from it!?
    Regards
    Joschi

  • Error while testing the created entity service

    Hi
    I have an error  "access forbidden.please login again" while testing the entity service  in the service browser.Please help.
    Regards
    ms.

    Hi,
    I think this is not a problem from your end.  You please check for another entity service. If you get the same error then this is the problem from server side. If possible please restart the server and try it again.
    Thanks
    Chandan

  • CALL TRANSACTION in Update Function module

    Hi all
    AFIK, it is not possible to trigger a CALL TRANSACTION for BDC update in an update function module. Yet, i jus wanna to confirm it with the xperts. what are other options for posting a BDC data in an update function module?
    thkx
    Prabhu

    Hi,
    Try this..
    Create a new RFC function module and in the function module do all the coding for the BDC and CALL TRANSACTION..
    Inside the update module call the RFC function module IN BACKGROUND TASK.
    I believe this should work..
    Thanks
    Naren

  • Java DC calling Operation on Entity Service

    I have three entities (Entity Services) and one Application Service.
    Application Service needs a operation to pull data from each entity based on the input parameter (name, type String).
    The operation, builds an object with attributes from all three entities, and returns that newly created object.
    I have a Java DC, that's going call this operation on the Application Service.
    Question: How Java DC would know the object type of the object returned by the operatio on the custom operation on the Application Service?
    Is it possible to do something like this or is there a better way to do this?
    BTW, This Java DC is being used as Callable Object in GP.
    Can I create a Service Endpoint for the Application Service and build the Callable Object directly against the Application Service. Then how to invoke method on the Application Service? How to handle the Object returned by the Application Service method?

    At first, I'd say you shouldn't be needed a java dc with gp interface if you have a CAF application service.
    GP has a CO for CAF application service you can use out of the box to reference a method of an application service you've deployed on your server. Pretty straight forward. No need of endpoint if service is deployed locally.
    That is assuming you don't have any particular requirements I'm not aware of here.

Maybe you are looking for

  • Error while creating a BSP application

    Hello Experts- I am trying to create a BSP application. This is the error what I am seeing, can any one let me know on what settings i have to make it work. Could not create the associated SICF node automatically. Add a node manually using "HTTP Serv

  • Need Help on complex XML loading into ODI

    Hi, I have a requirement in which i have to create xml mapping in ODI which should load 30 to 40 million message per day with file size of 30 MB. I have created xml connection in topology manager and have provided xsd path of unix server and it's wor

  • I need a excel document to be used on a mac.

    I need a excel document to be used on a mac.  I cannot unlock or use the document.  Is there a way to do this? THANK YOU!

  • Infoobject contains whole hierarchy query contains partialy hierarchy

    hi experts, in BI3.5 when loading hierarchy to an Infoobject I get only part of it in the BEX query the att/hier change run is empty how can i see the whole hierarchy in bex query thanks nir

  • Using Ipods as External Error

    Hi, I have 2 ipods, one a 5th generation 60gb and a 3rd gen w/ 40gb. Whenever I try to copy info to my ipod as an external use, i get this error message: 'The disk destination drive is full please insert new disc' even though i have plenty of space.