Web dynpro rfc  model reference

Is there a way to change the  jCOclient reference
of  rfc model after creating the model for example from WD_RFC_MODELDATA_DEST to WD_R3_RFC_MODELDATA_DEST

Yes Natti.
You can change the reference to the model by changing the Application /Message server settings of the
MODELDATADEST and METADATADEST.
Open the cotent administrator and click the "edit" button of the destination that you want to change. Then change the Application / Message server setting from the client1 (current client) to say client 2 (the required client).
Please reward appropriate points.
Bala

Similar Messages

  • How to addRecord in Web Dynpro to Model node (Entity Service ref)

    Hi,
    1) I create Entity Service in CAF and try to write web dynpro Table UI for it.
    2) is it possible with using Model Node? or I MUST use Value Node - Table must have possibilities for Add, Edit and Delete records.
    Now I can edit, and delete records, but I can't add records with AddRecord method
    Code below
      public void NewTS( )
         //@@begin NewTS()
       IServiceFacade serviceFacade;
    // Add new Model object TS
       ATS ts = TSServiceProxy.create();
       ts.setDate( new Date(System.currentTimeMillis()));
       ts.getAspect().sendChanges();
       serviceFacade = CAFServiceFactory.getServiceFacade(tsDefinition.class);
    // try to addRecord to Controller context     
       IWDNodeElement n = wdContext.nodeTS().createElement(ts);
       wdContext.nodeTS().addElement(n);
    The error is: com.sap.caf.rt.exception.CAFBaseRuntimeException:
    Aspect row is invalid for aspect:   <Aspect name="TS" >
    Thx for any help

    Hi Nikolai,
    implement it in the following way:
    wdInit()
         IAspect originalAspect = TSServiceProxy.FindByName(employee) ;
         wdContext.nodeTS().bind(originalAspect)
         //just create new attribute this java native type IAspect
         wdContext.currentContextElement().setOriginalAspect() ;
    public void NewTS( )
    //@@begin NewTS()
         IAspect originalAspect = wdContext.currentContextElement().getOriginalAspect() ;
            IAspectRow newTS = originalAspect.createAspectRow() ;
            newTS.setAttributeValue("date", new Date(System.currentTimeMillis())) ;
    or
    public void NewTS( )
         IAspect originalAspect = wdContext.currentContextElement().getOriginalAspect() ;
            IAspectRow newTS = originalAspect.createAspectRow() ;
         ITSElement tsElem = wdContext.nodeTS().getTSElementAt(originalAspect.indexOf(newTS)) ;
            tsElem.setAttributeValue("date", new Date(System.currentTimeMillis())) ;
    Best regards,
    Aliaksei

  • Web Service as Web Dynpro tableView Model

    Hi people!
    I´ve developed a WebService with a findAllClients method which brings out all the rows from a MaxDB table. Everything works fine when I test it from de WebServices perspective, but when I create a model for my Web Dynpro tableView importing the mentioned WS, I get the following error message:
    The Java type of the cmp-field that is stored in column ID, table DB_CLIENTES does not fit to the JDBC type INTEGER of the column. The expected JDBC type is VARCHAR.
    I´ve set the built-in type of the column ID in my Java Dictionary project to integer. The corresponding CMP-Field in the entity EJB is java.lang.Integer. I´ve deleted the column from the tableView.
    What´s wrong? Any idea please? Where could I find some documentation about this mapping requirements topic?
    Thanks very much in advance.

    Is this the only way?
    Anyways, thanks a lot. I haven't been working with ODI yet, I just have to find out, if it is possible to use it for our project. So I just read through the user's guide...

  • Problem with Complex Web Dynpro Webservice Model

    Hi all,
    in my Web Dynpro application I am using a Webservice which seems to be too complex for the Web Dynpro Model. I think I am getting the same kind of problems like:
    HELP for WebDynpro web service model with complex structure
    But I dont have a complex structure in my input parameters (like in this thread), <b>I have a complex structure in my output.</b>
    This is the structure of my WSDL. I have a customer (KUNDE) which has an array of contracts (Vertrag).
    <wsdl:types>
      <schema targetNamespace="urn:Rentenkonto" xmlns="http://www.w3.org/2001/XMLSchema">
       <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
       <complexType name="Vertrag">
        <sequence>
         <element name="aufschubfrist" type="xsd:int"/>
         <element name="brutto" type="xsd:double"/>
         <element name="eintrittsalter" type="xsd:int"/>
         <element name="endalter" type="xsd:int"/>
         <element name="laufzeit" type="xsd:int"/>
         <element name="renteKapital" type="xsd:double"/>
         <element name="rentenbeginn" nillable="true" type="xsd:dateTime"/>
         <element name="rentenbeginnAlter" type="xsd:int"/>
         <element name="versichererName" nillable="true" type="xsd:string"/>
         <element name="vertragsablauf" nillable="true" type="xsd:dateTime"/>
         <element name="vertragsartTx" nillable="true" type="xsd:string"/>
         <element name="vertragsbeginn" nillable="true" type="xsd:dateTime"/>
         <element name="vertragsnummer" nillable="true" type="xsd:string"/>
         <element name="zahlungsweise" nillable="true" type="xsd:string"/>
        </sequence>
       </complexType>
       <complexType name="ArrayOfVertrag">
        <complexContent>
         <restriction base="soapenc:Array">
          <attribute ref="soapenc:arrayType" wsdl:arrayType="impl:Vertrag[]"/>
         </restriction>
        </complexContent>
       </complexType>
       <complexType name="Kunde">
        <sequence>
         <element name="geburtsdatum" nillable="true" type="xsd:dateTime"/>
         <element name="kundenkennzeichen" nillable="true" type="xsd:string"/>
         <element name="pkNummer" nillable="true" type="xsd:string"/>
         <element name="vertraegeDcKapital" nillable="true" type="impl:ArrayOfVertrag"/>
         <element name="vertraegeDcRente" nillable="true" type="impl:ArrayOfVertrag"/>
         <element name="vertraegeDv" nillable="true" type="impl:ArrayOfVertrag"/>
         <element name="vertraegePk" nillable="true" type="impl:ArrayOfVertrag"/>
         <element name="vertraegeRdv" nillable="true" type="impl:ArrayOfVertrag"/>
        </sequence>
       </complexType>
      </schema>
    </wsdl:types>
    When I execute the Webservice basically I get an empty response. I think this is because the WSModel isnt fully mapped to the WS proxy. This should be done via coding.
    Can someone give me some hints on this?
    Kind regards
    Christoph

    Hi Christoph,
    First test the webservice itself. Maybe it is required to give some input parameter in the request and then get some output parameters in the Response. But therefore you should test the webservice yourself and take a look.
    Give more detail about ur case.
    Greetings, Sandhya

  • Web Dynpro DC witch references a simple Java DC - NoClassDefFoundError

    I need use the logic in a simple Java Project or a Standalone Proxy Project (weg.net/test/dc2) by a Java WebDynpro (weg.net/test/dc1), but when the DC 1 call the DC 2 this show a runtime error of class notfound java.lang.NoClassDefFoundError: net/weg/test/Test ).
    The DC 2 is a Simple JAR, that is not possible deploy directly and it should be deployed with the Web Dynpro (DC 1). In other words, I believe the jar of DC2 should be inside the DC 1 (web dynpro).
    The public part is declared perfectly. I have tried all combination of configuration of used DCs (DC 1 has the option build time, run time and strong at moment). In properties u201Clibrary referencesu201D I added u201Cweg.net/test/dc2u201D.
    Thanks,
    Cleiton Garcia.

    Hi,
    Did you create the public part of type SDA (Can be packaged into other public parts).
    If you are testing in local server:
    Dont deploy using "DeployNewArchieve and Run".
    Deploy using "RightClick>DevelopmentComponent>Build && RightClick>DevelopmentComponent>Deploy"
    See this blog
    /people/bala.krishnan2/blog/2006/09/25/bid-adieu-to-bots--using-captchas
    And this is another way:
    /people/bertram.ganz/blog/2008/11/24/how-to-use-external-jar-files-in-web-dynpro-development-components
    Regards,
    Charan

  • URGENT: Illegal Argument Exception for  RAW data type in Web Dynpro

    I am getting this error in the following scenario.
    I want to save the text fields from an interactive form to SAP through RFC enabled function module. The type in the model and controller is byte[]. I have converted the string attribute from view to save to the model. But the model dictionary in Web Dynpro project (model) has this type as Binary (meta data model through EFC). The type in SAP is RAW. I am going nuts since a week to solve this.
    IS this a bug? I am using NW04s - SP12. and NWDS 7.0.9
    Exception Details:
    The initial exception that caused the request to fail, was:
    java.lang.IllegalArgumentException
    at com.sap.dictionary.runtime.DdTypeBinary.format(DdTypeBinary.java:60)
    at com.sap.dictionary.runtime.DdTypeBinary.toString(DdTypeBinary.java:64)
    at com.sap.tc.webdynpro.clientserver.data.DataContainer.doFormat(DataContainer.java:1405)
    at com.sap.tc.webdynpro.clientserver.data.DataContainer.getAndFormat(DataContainer.java:1098)
    at com.sap.tc.webdynpro.clientimpl.xdp.renderer.data.XfdRenderer.renderAttributes(XfdRenderer.java:370)
    ... 41 more

    Issue with the RAW data types is resolved now. I have changed the data type of the field into String in the dictionary (web dynpro).. I have changed the corresponding getters and setter functions from byte[] to string. And everything working fine now. I got the Illegal Argument exception initially because I was trying to display the binary data type fields on the adobe form or view which I am not supposed to do.
    Also it is better to create separate view attributes in the context to get the values rather than mapping the model attributes directly in the form or view.
    Thank you one and all.
    Regards
    Vasu

  • Display data in Web DynPro table from database via EJB

    I have a JavaBeans model which has a method populateDataToTable()to retrieve data from database via Session bean (calling entity bean, returning ArrayList of data) and the data needed to be display in the Web DynPro table.
    User Interface (Web DynPro) <-> JavaBeans Model <-> Busineess Logic (session bean) <-> Persistence (Entity Bean)<-> DB table.
    The context bindiing and table part is ok. How do i load the data to the table ? what the coding to put in wdDoInit() ?
    Any help would be appreciated.

    in wdinit(),
    Collection col = new ArrayList();
    try{                    
      MyCommandBean bean = new MyCommandBean();
      col = bean.getDataFromDbViaEJB();
      wdContext.nodeMyCommandBean().bind(col);
    } catch (Exception ex) {
       ex.printStackTrace(ex); 
    in your JavaBean model class, MyCommandBean getDatafromDbViaEJB() method:
    Collection col = new ArrayList();
    Collection newcol = new ArrayList();
    //include your own context initialization etc...
    col = local.getDataViaSessionBean(param);
    // if your returned result also a bean class, reassigned it to current MyCommandBean
    for (Iterator iterator = col.iterator(); iterator.hasNext();) {
        MyOtherBean otherBean=(MyOtherBean)iterator.next();
        MyCommmandBean bean = new MyCommandBean();
        bean.attribute1 = outBean.getAttirbute1();
        // get other attibutes
        newcol.add(bean);
    return newcol;

  • ALV table in Web dynpro java

    Hello Experts,
    I have a task to migrate the usage of UI element IWDtable to ALV Table in my application for some features like Sorting and filtering supported in ALV table.
    I searched in Google and SDN about the ALV table, could not find any document about ALV table in Java (Found docs only with ABAP).
    Is ALV table supported in Web dynpro java ? If yes, please pass me the URL for the basics of ALV table.
    Thanks in Advance,
    Regards,
    Harish

    Hello,
    I understand from previous posts in this thread, that the ALV is not yet available for use within WebDynpro. Although it is already documented in the NWDS documentation under:
    SAP NetWeaver CE Developer Studio Documentation > Developer's Guide > Developing and Composing Applications > Developing User Interfaces with Web Dynpro for Java > Reference > UI Element Guide > Tables and Lists > Displaying Lists with SAP List Viewer > Integrating SAP List Viewer into Applications
    Since it is listed under "Developing User Interfaces with Web Dynpro for Java" I would assume that is should be possible. We are on NW CE 7.1 SP5.
    I tried to get a test application running based on the documentation, but the documentation is too thin and I run into an Null-Pointer exception in a SAP class called:
    at com.sap.ip.bi.alv.rendering.ALVGraphicsRenderer.init(ALVGraphicsRenderer.java:117)
    If it is not yet released for use then I wonder why it is already part of the documentation ?
    Take care
       Ingo

  • Print Functionality for Web Dynpro ABAP Application

    Hi All,
    I am using the standard print button provided by FPM in my application.
    The application has a date navigator control as well as a dynamic ALV with fixed and on fixed columns.
    I would like to know if the application has to do any implementation to provide print functionality. If yes, how do we do it?
    Will it consider all the ALV columns as the ALV could have horizontal scroll bar.
    How do we test it?
    Defining output device in our user as LOCL is enough to test it? Are there any limitations?
    Findings until now:
    I just happened to see that gc_event_print FPM event is raised and the application uses interactive PDF form to implement printing.
    I am not sure if this satisfies my requirement.
    Could you help me in providing more information regarding this? You could also provide me some web dynpro examples for reference.
    Regards,
    Rekha

    >I just happened to see that gc_event_print FPM event is raised and the application uses interactive PDF form to implement printing.
    I am not sure if this satisfies my requirement.
    As you are already suspecting, the FPM doesn't provide the print functionality itself.  It only raises the event and the specific application is then responsible for how it wants to produce the output.  Therefore it is your job to design the output (generally using PDF forum).

  • Creating Client-side Image Map in Web Dynpro

    Hi,
    How can I create a client-side Image Map in Web Dynpro application?
    My application consists of a screen-size image in which several areas will have to link to URLs and actions. I have browsed through the "Web Dynpro UI Element Reference Guide," but could not find anything appropriate.
    Can someone give me an advice? Thanks.
    Teecheu

    It doesn't, there is no corresponding UI control for this.
    There is only onAction event on BusinessGraphics (have not working with them since SP5, eventing did not work at that time) and onObjectAction in GeoMap (never see it in action, probably an option for you if your map is geographic map
    WBR,
    VS

  • Best place to begin design of old HTML pages with Web Dynpro

    I am new to web dynpro (and the Netweaver environment).  I just took the EP150 course so I have an idea of how to create pages with both Visual Composer (although I doubt I'll use that much) and in java projects in NWDS. 
    My first application is to be an online purchase requisition application to replace one written in Lotus Domino (this will NOT be integrated with R/3- we will have a seperate DB for these documents outside of R/3).  I have taken the HTML main page from that application and coded it as a JSP but I am getting the impression that the overall design/coding may be simpler if I do the project as a web dynpro.  I want to find some sort of a primer that describes the various controls that go on the web dynpro view in order to figure out how I can take my HTML design and bring it into a web dynpro project.  Can anyone point me to a resource that does this?  I've checked the help and SDN and not found anything that is too helpful yet.
    Can anyone tell me if it would be worthwhile for me to attend the JA310 Web Dynpro course?  I have done a couple of the tutorials posted on SDN for web dynpro but haven't done much else with it as of yet.
    Thanks.
    Dana

    I don't know such a migration guide, but here are some general remarks:
    The Web Dynpro programming model does not use tag-libs, markup, scripting etc. as you might have used in JSP or BSP applications.
    Instead, you create your view layout using the NWDS view designer (or the runtime API) and place UI elements like tables, input fields etc. inside containers.
    Containers have layouts (e.g. MatrixLayout, RowLayout, FlowLayout) and UI elements placed inside a container have layout data for setting individual layout constraints. This is similar to programming in non-Web frameworks like Java Foundation Classes (Swing).
    The UI elements get their data from the view controller context by data binding. There is a hierarchy of controllers (view, custom, component) and the corresponding controllers may be mapped, giving an automatic data flow through the controller hierarchy.
    The complete details of markup (e.g. HTML), client-side scripting, CSS etc. is provided by the client-specific framework part and the application is completely shielded from these technical details.
    This has the additional benefit that a Web Dynpro application can be run on completely different clients without change.
    Example: If tomorrow it will be hip to run your business application inside some other UI technology, e.g. Adobe Flex, SAP will provide a new Web Dynpro client and all Web Dynpro applications will run without change inside this  environment. (Replace Adobe Flex by any other relevant framework).
    Compare this to a programming model, that directly uses HTML, Javascript etc. Good luck rewriting several thousand user interfaces!
    So in your concrete use case, look at your UIs from such a perspective and identify the Web Dynpro concepts. This should help in the migration process.
    Armin

  • Basic  of Web dynpro

    Hi All
    I am new in Web-Dynpro and please give me some document releted to these words
    WdThis
    IWDController
    IWDViewController,IWDWindowController,IWDmessagemanager,IWDWindowmanager
    and please tell me how and when we access these.
    Regards
    Satish

    Hi
    1) Controller Shortcut Variables
    private final IPrivate wdThis;
    private final IPrivate.IContextNode wdContext;
    private final IWDViewController wdControllerAPI;
    private final IWDComponent wdComponentAPI;
    public (IPrivate wdThis) {
    this.wdThis = wdThis;
    this.wdContext = wdThis.wdGetContext();
    this.wdControllerAPI = wdThis.wdGetAPI();
    this.wdComponentAPI = wdThis.wdGetAPI().getComponent();
    2) Within any Web Dynpro controller, three shortcut variables are always present, whose values are all derived from the member variable wdThis.wdThis is the Web Dynpro specific self reference and should be used in preference to the standard Java self reference of this.
    3) The member variable wdThis is populated from a parameter of the same name, passed in by the Web Dynpro framework when the controller is instantiated.
    IWDController
    https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/progmodel/api/IWDController.html
    IWDViewController
    https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/progmodel/api/IWDViewController.html
    IWDMessageManager
    https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/progmodel/api/IWDMessageManager.html
    IWDWindow
    https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/services/session/api/IWDWindow.html
    IWDWindowManager
    https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/services/session/api/IWDWindowManager.html
    Thanks and Regards,
    Arun

  • Web Dynpro Learning Materials

    Dear All,
    Kindly tell me the links where I can get free and easy learing stuff on SAP Web Dynpro.
    Thx...
    Paul

    Hi,
    ChrisWhealy book Inside Webdynpro for java:
    http://www.amazon.com/gp/reader/1592290388/ref=sib_dp_top_toc/102-5823260-5699349?ie=UTF8&p=S00B#reader-link
    Web Dynpro UI Element Reference Guide :
    http://help.sap.com/saphelp_nw04/helpdata/en/8f/aa63688343bd40aafc537971aee068/content.htm
    web dynpro material
    web dynpro material
    regards,
    Vijayakhanna Raman

  • Error while importing EJB model in Web dynpro: Unable to fetch the EJBs.

    Hi,
    We are getting the below error while importing ejb model to Web dynpro.
    Error :
    Unable to fetch the EJBs. Check if the selected Enterprise Application contain the EJBs.
    I have created the public part-> It has a reference to EJB client and the enterprise application also has reference to the EJB project.The EJB is also added in dependency list.
    But still we are getting this error. Could anyone please explain what can i do to solve this issue.
    Best Regards,
    Karthika

    Hi Vishweshwara,
    Thanks for your reply.
    Please find the steps i followed while importing EJB model in webdynpro.
    1. The Entity forwarding permission has been enabled.
    2. public part reference has been created and through the reference entity option the ejbDC->Client public part is selected.
    I followed all the steps mentioned in the document. But still i am getting that error. In EJB DC we have list of JPA entities and stateless session beans are exposed as a webservice(top-down manner).The enterprise application has a reference to the EJB DC.
    I could be able to invoke the ejb service beans from ejb explorer and Webservice navigator.
    I am able to insert,delete and modify the records from there.
    Please let me know what could i do to resolve this error?
    Best Regards,
    Karthika
    Edited by: SAKarthika on Apr 29, 2011 1:43 PM

  • Web Dynpro Application Accessing RFC

    Hello,
    i have some trouble with using RFCs of remote R/3 system. Perhaps anyone can help a poor SAP-rookie.
    I'd like to execute the tutorial number 4 Web Dynpro Sample Applications and Tutorials. Therefor i installed the "SAP netweaver for java trial", and the SAP Netweaver developer studio.
    Responding to the tutorial i have to "set up the SLD connection"
    Problem 1: in Step 4 i can not open the "cluster tab" - error
    So I went on and ignored this problem. At page 10 of the tutorial the user is instructed how to "create a model".
    Problem 2: the connection to the SAP system teminates with the error "org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NoClassDefFoundError)"
    any ideas?

    Hello Sebastian,
    Please check if the OSS note 832994 is of any to you.
    Please award points if issue got solved.
    Regards.
    Ruchit.

Maybe you are looking for

  • Proxy Object related issue - Basis point of view

    Hi Guys, I am working on an interface Proxy(BW) to file.   I am done with all the required settings viz. activating ABAP proxies etc.  Created new package and assigned the SAI_TOOLS & SAI_SMXS in the use access of my package. While activating the pro

  • Calendar published with iCal not available in .Mac?

    Hi! I have published a calendar with iCal successfully and without any issues - this is a home calendar and so has a limited amount of dates, events etc. However I recently imported my work calendar (which has large amounts of data) and I also publis

  • Query failing

    Hi, zzflame_agrt_no & bukrs_vf   are non-primary fields in the table VBAK.     select  vbeln               auart               vkorg               zzflame_agrt_no               bukrs_vf         from  vbak         up to 1 rows       into wal_vbeln    

  • Oracle 9i install problem in Windows XP under Virtual PC

    Let me start by saying, I apologize for this. I know 9i is deprecated, but it is the only liensed copy of Oracle we have. I can get it to install under Windows XP with no problems at all. However, when I try the same install in a virtualized XP envir

  • G4 to G5 UPGRADE-LOST LIVETYPE ETC

    Hi All. Have just upgraded from a G4 to a dual G5. Reinstalled FCE2.03, all perfect. Reinstalled DVD Studio Pro 2.05, it works ok. I cannot get livetype or compressor etc to activate despite trying the codes supplied with the software, the ok just re