Web Dynpro Model Generation for Application Services

Hi Experts,
I'm currently experimenting with the new functionality provided by CE, but there is one thing that I can't seem to figure out. How does the new Web Dynpro model generation work with regards to CAF Application Services? I'm trying to call an application service from a web dynpro application, but it seems as if models are completely different from Netweaver 7.0. What type of model do I need to create? Do I have to expose the application services as web services?
I've tried creating an EJB model and then binding the model to the context, but I kept receiving null pointer exceptions when doing this and I'm not sure if this is the correct way to do this. Can anybody point me to some good documentation on Web Dynpro/CAF interaction in CE?
Thank you,
JP

Hi JP,
You are right, the CAF models are completely different in NW CE 7.1 compared to NW 7.0.
CAF Application Services in CE 7.1 are in fact EJBs. So the EJB model importer is the way to go. You can find <a href="http://help.sap.com/saphelp_nwce10/helpdata/en/45/dd45e4bc295595e10000000a1553f7/frameset.htm">documentation</a> and some <a href="http://help.sap.com/saphelp_nwce10/helpdata/en/45/f7f744aea471fae10000000a1553f6/frameset.htm">tutorials</a> on help.sap.com. If you still have troubles after you go thru these, please post your concrete issues and I'm sure we'll be able to figure out what's been going wrong.
HTH!
-- Vladimir

Similar Messages

  • Web Dynpro and CAF (BOs, Application Services, returning Complex Types)

    Hi All,
    I am trying to develop an application using Web Dynpro and CAF for days now and did not get it running.. I need some help here.
    What I am trying to do / have done is the following:
    - Design a Business Object (BO) in CAF
    - Implement an Application Service that has a method called getAllBOs that calls the findAll method of the BO
    - call this method using AWS model or EJB model in Web Dnypro, show the result in a table.
    My getAllBOs returns a set of BOs (Data Type is the Complex Type of my BO in CAF). I was able to design the Application Service so that it returns a collection of BOs (using a Wrapper Comple Type), but I was never able to call the generated Web Service successfully in Web Dynpro. The WebService worked fine when testing it in wsnavigator...
    However, i never got it running.. is there anybody out there who is able to explain what to do to import a AWS model or an EJB model in Werb Dynpro and particularily how to implement the stuff so that it returns a set of BOs successfully...
    Thanks in advance.. Useful help is highly appreciated
    Please note: THIS IS ABOUT Netweaver CE 7.1 - do not post stuff about 7.0!

    Hi,
    You have to return a single object from caf layer to webdynpro layer.
    Since you are returning a list of BOs, create a wrapper in caf which contains the list of your BOs.
    Your application service should return this wrapper.
    Creating Wrapper:
    1. Create a complex data type.
    2. Include your BO as one of the properties in it. and set the cardinality to 0..n.
    In Application service invoke your findAll() of BO and use the returned list to populate the wrapper's BO list.
    Return this wrapper.
    Hope it helps.
    Regards,
    Fazal

  • Error when Creating Web Dynpro Model in CAF-Service

    Hi All,
    I reaaly need help. AFter updating to SPS 9, it was necessary to redeploy my Entity Service. That contains to "Create a Web Dynpro Model" in the Service Explorer,
    to get an interface of the Service in my Web Dynpro Application.
    Before I update to SPS 9, the Application works fine.
    But now, when I want to "Create a Web Dynpro Model" in the NWDS I get the following Error-Message (its not a useful Error-Message):
    <i>Error cannot create Web Dynpro Model:
    Creation of  Web Dynpro model failed. Reason: null </i>
    Thanks for helping me
    Steve

    Hi Aliaksei,
    the problem in the thread is the same I got.
    When I use only 7 letters for the operation name, the creation work. When I use more then 7 letters the creation doesnt work.
    But its hard to find a methodname with only 7 letters.
    In SPS 8 I didnt have problems with the length of method names. Why is it so?
    The workspace log:
    !ENTRY com.tssap.util 4 0 Okt 10, 2006 15:12:45.577
    !MESSAGE Oct 10, 2006 3:12:45 PM         com.sap.ip.mmr.foundation.AssociationsOfObject        [Thread[main,5,main]] Error: com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 35, 3c, 3f(:main:, row:1, col:3)(:main:, row=1, col=3) -> com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 35, 3c, 3f(:main:, row:1, col:3)
    !ENTRY com.tssap.util 4 0 Okt 10, 2006 15:12:45.592
    !MESSAGE Oct 10, 2006 3:12:45 PM         com.sap.ip.mmr.foundation.AssociationsOfObject        [Thread[main,5,main]] Error: com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 35, 3c, 3f(:main:, row:1, col:3)(:main:, row=1, col=3) -> com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 35, 3c, 3f(:main:, row:1, col:3)
    !ENTRY com.tssap.util 4 0 Okt 10, 2006 15:12:48.705
    !MESSAGE Oct 10, 2006 3:12:48 PM  com.sap.ide.metamodel.core.service.FileSystemService.comp... [Thread[main,5,main]] Error: absolute path too long (253) for MDO:
    !ENTRY com.tssap.util 4 0 Okt 10, 2006 15:12:48.705
    !MESSAGE Oct 10, 2006 3:12:48 PM  com.sap.ide.metamodel.core.service.FileSystemService.comp... [Thread[main,5,main]] Error: absolute path too long (253) for MDO:
    !ENTRY com.tssap.util 4 0 Okt 10, 2006 15:12:48.705
    !MESSAGE Oct 10, 2006 3:12:48 PM  com.sap.ide.metamodel.webdynpro.implementation.ModelProxy... [Thread[main,5,main]] Error: could not get a valid path for ModelClass "cas.conti.com.sap.cd.database.services.cd_database.changedescriptiontableservice.QChangeDescriptionTableServiceFindByTitle" (path too long?)
    !ENTRY com.tssap.util 4 0 Okt 10, 2006 15:12:48.705
    !MESSAGE Oct 10, 2006 3:12:48 PM  com.sap.ide.metamodel.webdynpro.implementation.ModelProxy... [Thread[main,5,main]] Error: could not get a valid path for ModelClass "cas.conti.com.sap.cd.database.services.cd_database.changedescriptiontableservice.QChangeDescriptionTableServiceFindByTitle" (path too long?)
    Thanks
    Steve

  • Adding a Web Dynpro Model on a Composite Apllication Component in CE 7.1

    Hi experts,
    I am trying to add a web dynpro model to a Composite Application DC.
    I am using SAP NW CE 7.1.
    In CE 7.0, this was done by simple right click on the CA DC.
    but i am not able to do it in CE 7.1.
    Can somebody tell me how do i add a web dynpro model to a composite application DC???
    basically i need to add a UI corresponding to a composite application?????
    Cheers
    Gaurav Raghav

    Hi Srinivasan Subbiah,
    The option you just mentioned is disabled.
    how can i enable it???
    Also let me explain what i need.
    I have a 3 step process where in a user fills a form and sends it to his manager, who appoves/reject it based on some criterias. then the approval/rejection alert is send back to the user.
    Now i need to develop the UI as well as Business Logic for this process.
    How do i go about it?????
    I can develop the UI in a Web Dynpro DC and the Business Logic in a Composite Application DC. How do i associte one with the other????
    In CE 7.0, this was achieved by addind a Web Dynpro Model in the Composite Application Project. How do i acheive the same in CE 7.1 ?????
    Thanks and cheers
    Gaurav Raghav

  • Web Dynpro model binding

    can anybody help me here.
    I want to take some data from the backend system and want to display it into a table.

    hi,
    follow this procedure
      1.      Choose the context menu entry  Create Model on the  Models node.
      2.      Choose Import RFC Model.
      3.      Make the required specifications in the second wizard window to define where the generated   RFC proxies are to be stored.
      4.      In the next wizard window, log on to the SAP System that contains the BAPIs with the business logic.
      5.      Select the BAPIs for which you want to create Java proxies.
      6.      Choose Finish to start the proxy generation process:
      7.      In the Web Dynpro Explorer, choose Create Component Interface Definition in the context menu for the node Web Dynpro Component Interfaces.
    8.      Enter a name and a package and choose Finish.
    9.      The following structure is created in the Web Dynpro Explorer:
    10.      Place the cursor on the subnode Used Models and choose Add in the context menu.
    11.      Select the Web Dynpro model in the dialog box.
    12.      Choose OK.
    Regards,
    Sunaina Reddy T

  • Web Dynpro Model Wizard Exception

    Hi there,
    I've recently installed the latest Netweaver'04 Sneak Preview and I get the following exception when generating an R3 Adaptive RFC model (using the "create model" Wizard):
    org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NoClassDefFoundError: com/sap/tc/logging/LogController)
    Here are the rest of the details that the error displays:
    Plugin: Web Dynpro Model Editor Services
    Pugin ID: com.sap.ide.webdynpro.service.modeleditor
    Class: com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelDialog
    Method: nextPressed
    Message: Internal error - see detail information in exception trace.
    I'm on Version: 2.0.11 of the NetWeaver Developer Studio.
    Anyone else out there with the same problem?
    Thanks,
    Gough

    Hi,
    Do check if the following link helps.
    Problem Connecting with SAP R3 for creating new model
    Regards,
    Vijith

  • Web Dynpro Model Usage Error

    Hi All
    I have created Web Dynpro Model out of my CAF project. I followed this <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8b7059da-0c01-0010-e09c-9ecabaf58864">tutorial</a> to create Web Dynpro model and use it in other DC. In the other DC, I added all the other required DCs mentioned in the tutorial such as caf/core/dict,  caf/ui/ptn/common and tc/col/runtime with each of them havin dependency type as build and deploy.
    After I do model mappings in controller and view, deploy and run the application, I m gettin the following exception
    "java.lang.NoClassDefFoundError: com/sap/tc/col/client/generic/api/IQuery "
    Has anybody ever got this exception ?
    any help on this will be appreciated with points
    Regards
    Dharanish

    Hi ,
    check the following depedencies in Public part of the component,
    caf/core/dict
    caf/eu/gp/api/wd(GPWdbDynpro)
    Caf/eu/gp/api(external)
    caf/runtime/uicoupling/api(compilation)
    caf/UI/ptn/common(com.sap.caf.ui.utils)
    com.sap.aii.proxy.framework(defalut)
    com.sap.exception(default)
    com.sap.mw.jco
    com.sap.security.api.sda
    tc/cmi
    tc/ddic/metamodel/content
    tc/logging
    tc/wd/webdynpro
    tc/wdp/metamodel/content
    and then add following two in library reference in webdynpro refrence,
    if your using the GP interface we have to include the "cafeugp~api"
    for caf ->sap.com/cafruntimeuicouplingapilib
    Thanks,
    Balaji.B

  • Generate Web Dynpro Model?

    Hi,
    I'm familiar with DS 7.0, and I'm begining to lear 7.1 recently.
    I searched for tutorials and in the forum, but I can't find how to create a Web Dynpro model from a CAF DC, in 7.0 it was just a right click and generate WD Model, can you help me please?
    thanks a lot!

    Hi Maldonado,
    Check this link first:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0ee5047-c7a0-2a10-70b7-9557e3e4d440
    Reward points if it's helpful.
    Regards,

  • Web Dynpro Model Editor - Wizard Exception

    Hello,
    I get the following error when I want to create model in Web Dynpro (Right click on Models > Create model):
    Internal error
    An internal error has ocurred. See error log for more details.
    Plugin name:  Web Dynpro Model Editor
    Plugin ID:      com.sap.ide.webdynpro.modeleditor
    Class:           com.sap.ide.webdynpro.modeleditor.ModelEditorCallback
    Method:         createModel
    Message:       An error ocurred. See error log for more details.
    Exception:     java.lang.NullPointerException: null
    Developer Studio version: 7.0.11
    Thanks for any advice,
    Peter Censcak

    Hi Peter,
    We have already faced this problem in our company with Windows Vista machines.  So, if you have Windows Vista, try to run NWDS under Administrator account and in Windows XP compatibility mode...
    If not, probably you should re-install your NWDS.
    Best Regards,
    Juraj Sedik

  • Notification for Application Services in EBS R12

    Hi DBAs,
    I need to implement alert notification for Applications Services (web, form, conc managers) in R12.1.1, if any or all of these services go down then I should get email alert. What is the best way to do it - Any heart beat check or cron job to monitor the processes. If someone has already enabled the notification then share or help.
    Thanks
    -Samar-

    Hi Samar;
    Please check below note and see its helpful:
    Investigating Blocking Locks in Oracle Applications. [ID 256853.1]
    Also check:
    ebiz database locks
    Script: To display Locks and give the SID and Serial# of the Session to Kill [ID 1020007.6 ]
    Getting DB locks in instances
    Getting DB locks in instances
    Regard
    Helios

  • Web Dynpro List Viewer for JAVA ?

    Is the Web Dynpro List Viewer available for Web Dynpro for JAVA?
    The Release Notes of SAP NetWeaver 2004s about this topic are not totally clear for me.
    It is always talked about Web Dynpro List Viewer for Web Dynpro in general. For more information there is only a link to the topic ALV Integration into the Web Dynpro ABAP.
    I suppose, it is only available for ABAP. Am I right?

    Hi Gayathri,
    I just have that scenario in my mind, and certainly it's the purpose that i need to implement. However i'm tried to use only standard applications, but maybe this case  it's a exceptional case
    Best Regards,
    Luís Bento
    PS: I give you some points for your answer

  • What is the latest model/generation for ipod touch?

    what is the latest model/generation for ipod touch?

    Stedman1
    I'm not sure how all of this works but I read a few of yur comments and figured you'd be the person to ask! I have an iPod touch as well as my iPhone 4. I'm trying to find an otter box for the touch because I truly love it on my ip4, not to mention ive given the touch to my 6 year old and NEED the protection. Anyway, I'm not positive which generation it is and don't want to order the wrong one. The model # is A 1367.
    Any help?? Please!!!!

  • Dealer Portal - Vehicle Management System - Personalization - Web Dynpro component assignment for business partner is missing

    Hi,
    In the Dealer Portal, Vehicle Sales Role --> Personalization.
    I am getting below Warning message.
    The Web Dynpro component assignment for business partner is missing.
    As per my investigation found below.
    Since address formats are different for each country, you can define in the Customizing activity Assign Web Dynpro Components to Country-Specific Address Formats under SPRO --> Logistics Execution --> Dealer Portal which Web Dynpro component you want the system to use for displaying end customer addresses.
    BUT do NOT understand the name of WebDynpro Component to provide.
    What are the entries or WebDynpro component names to fill in below?

    Hi Hussain,
    Could you share the step-by-step solution? Thanks.

  • Quick Question: ABAP web-dynpro model relies on JCO?

    Hi gurus,
    As mention in subject. Does ABAP web-dynpro model relies on JCO?
    Did a quick search without solid answers...

    JCO, is Java Connectors to connect SAP from Java world
    You don't need any JCO when you are in the same ABAP Stack
    There is no model Nodes/Attributes in Web Dynpro ABAP as in Java, because you are in the same ABAP Stack
    Abhi
    Edited by: Abhimanyu Lagishetti on Jul 10, 2008 11:35 AM

  • Calling Web Dynpro-Model of Application-Service doesnu00B4t work.

    Hello!
    I have created a Composite Application with Entity- and Application-Services. I have also created the WebDynpro-Model and use it in another WebDynpro application to call the services.
    I have a Entity-Service 'PollCatalogue' and an Application Service 'PollCatalogueApp'.
    When I call an Entity-Service to create an entity, it works:
    APollCatalogue pollcat =
                        PollCatalogueServiceProxy.createPollCatalogue();
                   pollcat.setName(name);
                   pollcat.getAspect().sendChanges();
                   IServiceFacade serviceFacade;
                   serviceFacade =
                        CAFServiceFactory.getServiceFacade(diplDefinition.class);
                   serviceFacade.save();
    But when I call the create-Method of the Application service nothing is created:
    the call is similar to above except that
    PollCatalogueServiceProxy.createPollCatalogue();
    is replaced by
    PollCatalogueAppProxy.createPollCatalogue();
    Anyway I don´t understand what is done behind the scenes. My create-Methode has one parameter name, because it is a business key. But the ServiceProxy-create-Methods do not provide a name parameter. What service-methods are called when service-facade.save() is called? In case of Entity-Service-Proxy seems to be the create method. But what if I change more than the key-parameter, what else is called? update? And in case of AppServiceProxy? ???
    Does anyone understand what is going on here?
    Thank you for your help.
    Best regards,
    Jörg

    Hi Jorg,
    About getting an exception:
    IQuery query =... ;
    query.execute() ;
    IMessageList mList = query.getResultAspect().getMessages()
    if (mList.size() > 0) {
         for (int i = 0; i < mList.size(); i++) {
             IMessage mes = (IMessage) mList.getMessage(i);
          Throwable ex = (Throwable) mes.getExtension();
         ByteArrayOutputStream bAOStream = new ByteArrayOutputStream();
         PrintStream pStream = new PrintStream( bAOStream);
         ex.printStackTrace(pStream);
            //use bAOStream in order to show stacktrace
    Regarding conceptual background about Models and Proxys:
    You can find some infomation about wd model:
    <a href="/people/valery.silaev/blog/2005/09/09/common-model-interface Model Interface</a>
    <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cef4f43e-0d01-0010-db84-ede25c874115">WQhy to use webdynpro common model interface ?</a>
    I don't know about some proxies documentation. Possible it does not exist. So, there is brief information about it:
    CAF data access services - comcafruntime~uicoupling DC. There is an implementation of com.sap.tc.col.client.generic.api api. These interfaces extends generic CMI interfaces. On top of CAF data access services implementation CAF designer generates typed CMI models which you finally use. For supporting of typed CMI models CAF provides additional build-in functionality GCP(generic client proxy) which directly operates over com.sap.tc.col.client.generic.api generic implementation.
    I recommend you to learn CAF data access implementation and read information about CMI model. That's not huge area and it gives you necessary understanding.
    Best regards,
    Aliaksei
    P.S. I don't recommend to learn and investigate the GCP implementation. That's just loss of time. The only thing that you need to know there is a black box layer which converts generic CMI model to typed model. Actually you can use generic model directly without typed. To do this use the following method for service facade getting:
    com.sap.caf.ui.utils.cool.CAFServiceFactory.getServiceFacade() ;
    but not this one:
    com.sap.caf.ui.utils.cool.CAFServiceFactory.getServiceFacade(final Class modelDefinition) ;
    and also do not use generated proxies at all, just use CMI api for model info setup for model nodes and other generic CMI api.

Maybe you are looking for

  • Help with setting up printer - works fine on windows!

    Hi Firstly any help is much appreciated! I have an AirPort Express Station with a HP Deskjet D2360 attached to the USB port. I have 3 Windows XP Printers that all print fine. My PowerBook, with Leopard, can located and install the Bonjour printer (us

  • Why is my iTunes in dollars?

    Why is my iTunes in dollars?

  • Partition of Hard Disk in Hp g6

    is it posible to partition hard disk in hp g6 with windows 7 Home basic, plz help me.

  • Attachments in Forms Central

    I would like for for my respondents to be able to attach files in their submittable response.  I see there is an attachment choice when making forms in FormsCentral.  It gives me an error message in blue triangle to the right that this feature only w

  • DreamWeaver Freezes Bad

    Has anyone heard any thing about an update or patch or something on the freezing of DreamWeaver CS3. I have read where several people are having similar problems. I am really looking for a solution it took me 10 minutes to change two words in code vi