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.

Similar Messages

  • 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

  • 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

  • Issues with portal integration of Web dynpro for ABAP application

    Hi,
    I have the following issues when i integrate a Web Dynpro for ABAP application with portal.
    1. the iview does not contain some images, such as table scroll button images, maximize and close buttons of popups etc.
    2. the iview loads properly, but there is an error in the status bar that says "Access denied"
    3. is it possible to do absolute navigation from
       role1->folder1->iview1 to role1->folder2->iview2?
       when i fire this navigation from the webdynpro
       application, the navigation does not happen in the
       portal.
    thanks,
    Kavitha

    >
    sridhar vadaga wrote:
    > Hi Experts,
    >
    >
    > CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
    >   EXPORTING
    >     text           = url
    >  IMPORTING
    >    BUFFER         = content .
    >
    >
    > Thanks & Regards
    > Sridhar
    I think you are overestimating the power of the SCM_STRING_TO_XSTRING function module.  By supplying a URL as the value of the input text, it isn't going to magically go read the content from the remote location and convert that to a binary string.  It is going to take whatever value you supply in th importing TEXT parameter convert that to binary.  In other words it is literally converting the string http://xxx/test.xls to binary.  You will need some other mechanism to read the content from the remote location into ABAP memory before you can process it.  You will need to use the CL_HTTP_CLIENT class or call some sort of web service to retrive the content.

  • I need information about Web dynpro ABAP Exception : ICF Service Node

    I need information about Web dynpro ABAP Exception :
    ICF Service Node "/sap/bc/webdynpro/sap/abcd/undefined" does not exist.
    Here abcd is application name.
    ICF Service Node exists and activated but kindly let me know from where "undefined" is coming .
    Please let me know your comments /views about  this.

    Hi,
    I think ur webdynpro service is not active after upgradation.
    You have manually activate it.
    Go go Tcode SICF,Execute the Initial screen,
    and in this new screen give service  as your application name and click on filter.
    You will get your service below which will be ur application name .
    right-Click on the deactivate and activate it or just activate it,.
    This shd work

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

  • How to call Web Dynpro from WAD

    Hello,
    How to call Web Dynpro Screens from WAD (Web Application Designer) and Vice Versa.
    Are there any parameters changes at Web item level..? Also what we have to specify at Data Provider level..?
    Your help highly appreciated.
    Thanks,
    Madhu
    Edited by: Madhu on Feb 10, 2011 1:03 PM

    Hi naveen ,
    Check these threads for calling workbook from WAD ,
    1. [SDN Help 1|/thread/268199 [original link is broken];
    2. [SDN Help 2|Insert multiple queries using either WORKBOOK, WAD or Report Designer;
    3. [SDN Help 3|http://help.sap.com/saphelp_nw04/helpdata/EN/9d/76563cc368b60fe10000000a114084/frameset.htm]
    4. [SDN Help 4|How to call a BSP page or webdynpro from a WAD Template button;
    Regards ,
    Lokesh

  • Invoke Workflow from Web Dynpro for Java Application

    I am working on a custom web dynpro for java application and when the user clicks the submit button the SAP standard workflow (WS50000041) should be invoked. Does anyone have experience they can share with me on how to achieve this functionality? It should also be able to attach an adobe form or read data from the form and submit the data as xml.
    Thanks,
    Ashley

    Hi Ashley,
    Use following code in RFC to invoke your workflow -
    DATA : w_subrc TYPE sy-subrc,
                w_wi_id LIKE swwwihead-wi_id.
    CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
            EXPORTING
              task                      = ' WORKFLOW - WSxxxxxx '
              language                  = sy-langu
              do_commit                 = 'X'
            IMPORTING
              return_code               = w_subrc
              workitem_id               = w_wi_id
            TABLES
              input_container           = it_container
              message_lines             = lv_swr_messag
          COMMIT WORK.
    With this code your workflow will get start. But u have to use workflow id in next application also in which your request is getting navigated. In that application you have to take this workflow ID and have to pass again in workflow using - PortalNavigation statements.
    After that this workflow will get start to publish in your TaskList (My Task) in Portal. Remeber that your all task should be maintained in workflow table by using SWFVISU  transaction.
    After that go to Portal and Re-Register your UWL so that your new Workflow ID will get usable in portal.
    With this way you would be able to use workflow with Web Dynpro Java using UWL and Workflow.
    Regards,
    Roshan Gupta

  • How to create a user in UME Database using web dynpro java custom application

    Hi,
    Can you please suggest me how to create a user in UME Database using web dynpro java custom application.
    My Requirement is user can register his/her user id in SAP Portal 7.3 UME database.
    Please suggest me.
    Thanks and Regards,
    Amit

    Hi Amit,
    Generated Documentation (Untitled)
    This is what you're looking for, there's no real cook-book -- though Amey mentioned there might be some material on SDN, perhaps some tutorials.
    You should be looking into com.sap.security.api.IUserFactory, methods newUser(String) which gives you and IUserMaint and commitUser(IUserMaint, IUserAccount) -- IUserAccount can be obtained using com.sap.security.api.IUserAccountFactory, method newUserAccount(String)
    Hope it helps,
    D.

  • Issues witn portal integration of Web dynpro for ABAP application

    Hi,
    I have the following issues when i integrate a Web Dynpro for ABAP application with portal.
    1. the iview does not contain some images, such as table scroll button images, maximize and close buttons of popups etc.
    2. the iview loads properly, but there is an error in the status bar that says "Access denied"
    3. is it possible to do absolute navigation from
       role1->folder1->iview1 to role1->folder2->iview2?
       when i fire this navigation from the webdynpro
       application, the navigation does not happen in the
       portal.
    thanks,
    Kavitha

    Hi,
    Use a Transparaent container (TCO) inside it use the tabstrip and make it as matrixheader as per rootUI.
    You can also set the layout for TCO as matrix and do the necessary changes.
    Regards,
    Lekha.

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

Maybe you are looking for

  • Uploading iweb site from my idisk

    I recently had a hard drive crash on me so I've been restoring all of my old files using idisk. Problem is when I open iweb it keeps wanting to create a completely new site instead of opening my old site. I am afraid if I start a new site I will copy

  • Creating dimension in OMB script with only 1 level and no hierarchy

    Hi all, I have created some dimensions in the OWB client, that map straight 1-on-1 to a table. Those dimensions have only 1 level 'TOTAL' and no hierarchies. I am trying to create those dimensions using an OMB script, but it seems that when I bind th

  • Background image for PanelDashboard

    Hi , I am using Jdeveloper 11.1.1.7. I have one PanelDashboard in my page I need show one background image for that Dash Board. The image is very small so It showing multiple times entirely occupy the page.So I I try with below CSS codes but now the

  • Can't read old mail after new Tiger install

    I recently installed Tiger (and archived my old system) as an upgrade from 10.3.9. Since then, I can't read old messages in Mail. The original messages are deleted from my isp server once the messages are downloaded by Mail. When I open any message i

  • WLC 4402 and SNMP values

    Hi all, I need to change via SNMP v2C the value of the PSK for WPA/WPA2 for a specific SSID. How can do that ? Tnx a lot for an answer