DB connection in web dynpro

Hi,
I am not really glad about it, but realized that I really have to use EJB´s in web dynpro for DB access. So I have to read documents for this heavyweight component
At present I have one question: I have already created the tables in oracle.... Can I create for this tables EJB´s and use these as web dynpro models ? I am asking because I am only reading that I have to create the tables via an Dictionary Project.
Regards
Flo

Hi Florian,
U'll have to create  table in java dictionary project if u r gonna use EJB's with wrppaer class i.e. ur java class which will reside in  your java project.
u'll have to give ur dictionary proj name to database-sources-aliases.xml of ur .ear project.(i.e. Enterprise appication project)
So it will get a connectin with Dictionary project.
yes you will have to import java bean model in your WD project if u wann give WD interface
for through info :
EJBs in Web Dynpro Application Using Wrapper Class
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00be903b-8551-2b10-c28a-8520400c6451]
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c
Accessing database table using EJB and web dynpro
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70929198-0d36-2b10-04b8-84d90fa3df9c]
Oracle Connectivity with EJB using WebDynpro Application
[https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/oracle%2bconnectivity%2bwith%2bejb%2busing%2bwebdynpro%2bapplication]
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0b657b7e-0c01-0010-74a4-b71518871800]
Regards,
Khushboo

Similar Messages

  • LDAP connectivity in web Dynpro

    How to do  LDAP connectivity in web dynpro to make use of UME

    After installing the LDAP go to configtool UME
    Select the option from the dropdown
    then
    Provide the server name : The server in which you have installed the LDAP
    port :389/636
    username=cn=<the username>,o=<context name>
    password=<the passsword provided by you while installing>
    browse to find the data for the path below
    userpath
    grouppath
    After this the UME in portal can be configured in the LDAP

  • CAS connect to Web Dynpro

    Hallo All,
    I want to connect my Web Dynpro application with a CAS Project.
    I have include the Cas-Model with "add Model" and I see it.
    But I can't see the CAS application services and Entity Service under
    the model.
    Regards,
    Philipp

    Hello,
    I have seen the case where people have coded switches into their reports (hidden parameters) that allow the report to be run and instead of exporting the results to an ALV table, have exported the results to a memory address. Then these memory areas have been read and exported to a WD. (there are standard SAP pieces of logic that used to do this in ESS and MSS in the old ITS days)
    You can just execute the report from inside the WD code and retrieve the result...
    Personally I don't like this approach! I don't like using global memory area for a start! I also have tried to replace any web based reporting with POWLs  - which have a different approach to selections - i.e. knowing this before the user runs the report.
    I think you would be better off modularising your report so it applied the MVC paradigm - the code for the report should be broken up so that the display and selection logic (view) is separated from the extraction logic (Model) the controller logic is pretty much the report code itself - and where I have built this approach (eg a backend report and a WD report that use the same logic) I have merged the view and controller logic in the report and pretty much also done this in the WD too - but the Model is identical in both cases.
    Hope this helps,
    Chris

  • JCO Connection for web-dynpro tutorials (EP 6.0 SP9 downlaod from SDN)

    Hello,
    I have a question regarding JCO connections for web-dynpro example/tutorials. I have installed WAS 6.40 sneak preview from EP 6.0 SP9 download from SDN. Installation instruction says: Choose "No SLD available"
    but the web-dynpro example/tutorial asks to create JCO connections by going to web-dynpro -> content admin..etc on http:<host>:50000..Here, all the tabs relating to creating JCO connections appear to be "protected" on my screen. so I can't do anything further. By going to http:<host>:50000/sld, I also tried to add SLD server..but that is not helping. There is some "import" button, but which CIM file (in which folder etc) am i supposed to import for a simple test system? What are the steps for a bare minimum setup so that I can use the WAS 6.20 system at work-place as my backend & try out the web-dynpro examples? Do I really need SLD setup? Where is documentation about all this after one installs the WAS 6.40 JAva? I was expecting it somewhere at least in the eclipse IDE help-documentation..None of the web-dynpro tutorials explain this !
    thanks

    Thanks everybody.
    NagaKishore, after doing all the steps, when I goto
    localhost:50000-> web dynpro -> content administartor, and try to "maintain JCO Destinations" I am getting this error: (full stack trace not included)
    An error has occurred:
    "Failed to process the request."
    Please contact your system administrator.
    Error stacktrace:
    java.lang.NullPointerException
         at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.checkStatus(SystemLandscapeFactory.java:871)
         at com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.checkStatus(WDSystemLandscape.java:485)
         at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.updateJCOClientStatus(JCOConnectionsDetails.java:438)
         at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.addJCOClientToList(JCOConnectionsDetails.java:634)
         at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.addJCOClientToList(JCOConnectionsDetails.java:598)
         at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.wdDoInit(JCOConnectionsDetails.java:120)
         at com.sap.tc.webdynpro.tools.explorer.wdp.InternalJCOConnectionsDetails.wdDoInit(InternalJCOConnectionsDetails.java:238)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)

  • How to display RFC-Logon-Screen for non trusted connection in Web-Dynpro?

    Dear Web-Dynpro-Specialists,
    i got a issue while creation of an WebDynpro-Tool, which is using RFC connections for reading data.
    In some cases the RFC connection is not a trusted one connection, so a login is nessessary, but in
    this cases not a window is coming up for login....
    Any idea how i can get this window for login, in order to collect the nessessary Data for my tool?
    Additional Information concerning the RFC connection:
    While running my Web-Dynpro i run this Method:
    METHOD get_table_entries.
    CLEAR rt_entries[].
    CALL FUNCTION 'RFC_GET_TABLE_ENTRIES'
    DESTINATION iv_destination
    EXPORTING
    gen_key = iv_table_key
    table_name = iv_table_name
    TABLES
    entries = rt_entries
    EXCEPTIONS
    internal_error = 1
    table_empty = 2
    table_not_found = 3
    OTHERS = 4.
    CASE sy-subrc.
    WHEN 1.
    RAISE internal_error.
    WHEN 2.
    RAISE table_empty.
    WHEN 3.
    RAISE table_not_found.
    WHEN 4.
    RAISE unknown_error.
    ENDCASE.
    ENDMETHOD.
    Thanks a lot in advance
    Best regards
    Carsten Klatt

    Hi!
    You can use the function module RFC_MODIFY_R3_DESTINATION to create, modify and delete RFC connections. You will need the system ID (e.g. ABC), client (e.g. 123), system number (e.g. 00) and the host name of the server. In this example the following code would create or modify the RFC destination ZRFC_DESTINATION.
        CALL FUNCTION 'RFC_MODIFY_R3_DESTINATION'
          EXPORTING
            destination                = 'ZRFC_DESTINATION'
            action                     = 'M'
            systemid                   = 'ABC'
            systemnr                   = '00'
            server                     = 'serverhostname'
            language                   = sy-langu
            client                     = '123'
            user                       = 'USERNAME'
            password                   = 'PASSWORD'
            description                = 'Dummy RFC Connection'
          EXCEPTIONS
            authority_not_available    = 1
            destination_already_exist  = 2
            destination_not_exist      = 3
            destination_enqueue_reject = 4
            information_failure        = 5
            trfc_entry_invalid         = 6
            internal_failure           = 7
            snc_information_failure    = 8
            snc_internal_failure       = 9
            destination_is_locked      = 10
            OTHERS                     = 11.
    With the following code you can delete this connection:
        CALL FUNCTION 'RFC_MODIFY_R3_DESTINATION'
          EXPORTING
            destination                = 'ZRFC_DESTINATION'
            action                     = 'D'
          EXCEPTIONS
            authority_not_available    = 1
            destination_already_exist  = 2
            destination_not_exist      = 3
            destination_enqueue_reject = 4
            information_failure        = 5
            trfc_entry_invalid         = 6
            internal_failure           = 7
            snc_information_failure    = 8
            snc_internal_failure       = 9
            destination_is_locked      = 10
            OTHERS                     = 11.
    Please keep in mind that deleting an RFC connection is usually noted in the system log.
    If you want to reuse your connection for multiple servers, you could run into trouble since connection data is cached.
    Sincerely,
    Stefan

  • Error trying to create https connection from Web Dynpro

    Hi experts!!
    I am trying to create a WD view with an actionButton and a form template, when the user fills the data in the form and presses the button, i want to create an Https connect and post some parameters to the URL.
    HttpsURLConnection cannot be resolved,
    com.sun.net.ssl.internal.ssl.Provider() does't not exist in the package com.sun.net.ssl.internal.ssl.Provider()
    do i need to add any jars?? I've already added the jsse.jar
    The code i use is the following.
    private void sendHttp(){
          String response = "";
          HttpsURLConnection connection = null;
          try {
                      System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
                      java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
                      URL url = new URL(<your_url>);
                      connection = (HttpsURLConnection) url.openConnection();
                      connection.setDoInput(true);
                      connection.setDoOutput(true);
                      connection.setAllowUserInteraction(true);
                      connection.setUseCaches(false);
                }     catch(Exception e) {
                      response = response +  "Error in getting connection: " ;
                      response = response +  e ;
                if (connection != null){
                      try {
                            connection.setRequestMethod("POST");
                            connection.setFollowRedirects(true);
                            //build all the parameters into 1 string
                            String query = "parameter1name=" + URLEncoder.encode(parameter1value);
                                  query += "&";
                                  query += "parameter2name=" + URLEncoder.encode(parameter2value);
                            connection.setRequestProperty("Content-length",String.valueOf (query.length()));
                            connection.setRequestProperty("Content-Type","application/x-www- form-urlencoded");
                            connection.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)");
                            // open up the output stream of the connection
                            DataOutputStream output = new DataOutputStream( connection.getOutputStream() );
                            // write out the data
                            int queryLength = query.length();
                            output.writeBytes( query );
                            output.close();
                            //if responsecode <> 200 you should stop: should always be 200
                            String responsecode = connection.getResponseCode();
                            if (responsecode.equalsIgnoreCase("200")){
                                  String inputLine;
                                  StringBuffer input = new StringBuffer();
                                  BufferedReader in =     new BufferedReader(     new InputStreamReader(connection.getInputStream()));
                                                                                    //Get site response
                                  while ((inputLine = in.readLine()) != null) {
                                        input.append(inputLine);
                                  in.close();
                                  response = response + input.toString();
                      }     catch(Exception e) {
                          response = response +  "Error in using connection: " ;
                          response = response +  e ;
              wdContext.currentContextElement().setResponse(response);

    Hai ,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/526bd490-0201-0010-038e-d3ff7eb1d16e
    please check above link .
    application server u have take load balancing click on next  there u take click on radio button of Msg server .
    Regards ,
    venkat

  • Kill the RFC connection as soon as the call is completed in Web Dynpro JAVA

    Hi Experts,
    Please guide us how to kill the RFC Connection from web dynpro java as soon as the execution is completed.The FM connection (Adaptive RFC) isnt getting closed in IS-U side. Please guide us how to close them explicitly.
    We are getting the following error
    (102) RFC_ERROR_COMMUNICATION max number of cpic clients exceeded (300)

    hi suvankar ,
    wdContext.current<Modelname>_InputElement().modelObject().modelInstance().disconnectIfAlive();
    use this option after executing your rfc, it will remove the connection to the r/3.
    adn this
    (102) RFC_ERROR_COMMUNICATION max number of cpic clients exceeded (300)  -- is occuring because the pool size defined the jco destination is not sufficient, ask your basis team to increase the pool size.
    Regards
    Govardan

  • Connect Web Dynpro Application to a Web service

    Hi experts,
    I am trying to connect a Web Dynpro application to a SOAP Web service.
    I have downloaded the WDSL code and save it to a file in my hard disk.
    I used the create model wizard (Import adaptive web service model) and created a model in my Web Dynpro application.
    I have connected the component controller with the model and the view of the application to the controller.
    All content node elements that have created automatically in the model, have in cardinality property the value 0..1.
    I created input elements in the view but they are gray and not available (disabled).
    The read only properity of the input elements has the value "false".
    I tried to initiate the input element by putting the following code in wdDoInit() but with no luck.
    wdContext.nodeRequest_ProcessTransaction().nodeProcessTransaction().nodeTransactionRequest().nodeHeader().nodeMerchantInfo().currentMerchantInfoElement().setAcquirerID("xxxx");
    Can someone help with this?
    Thanks in Advanced.

    Hi,
    After importing the model, you need to create the instance for the model. Instantiate the Request object and then set the input parameters. Then you have to call the execute function, then the model will be executed and you will get  the data.
    Also instead of putting the code which you have wriiten in init, you can use:
    wdContext.nodeMerchantInfo().currentMerchantInfoElement().setAcquirerID("xxxx");
    You can directly access the node, no need to traverse the whole hierarchy.
    Regards,
    Manoj

  • Connecting Web dynpro application to an SAP database

    Hi
    Iam new to the Web dynpro
    I created a proto type for this screen.
    In my project ,under one of the module "std Allo" option will come.By clicking that "std allo" screen will come.
    In that Create , Export buttons is there.In that, table is present consists of Allowance Code, sub code,type,level,expense type,amount fields are present.
    1. After clicking create button , these elements are present.
    Save and Cancel buttons are present.
    allowance code - (i/p field) , sub code - (i/p field) , period Type - (Dropdown by key) ,
    Type - (Checkbox group) , level - ( Dropdown by key) , expense type - ( Dropdown by key) ,
    trip - ( Dropdown by key) , currency - ( Dropdown by key) ,amount - (i/p field)
    2.By clicking first row in the table ,,
    delete ,edit cancel buttons are present.
    same elements are present which i mentioned in step 1.
    To connect to the R3 database, Function module is required.Can any one help what are the specifications i need to give to the ABAP team to develop a Function module for this appluication.
    Please tell me procedure.
    Regards
    Sushma

    Iam trying to connect my web dynpro application to R3 Database.
    Iam having list screen consistts of Create and Export buttons and table.
    Table Fields :
    Allowance Code , sub code ,Type , Level , expense Type , amount
    After clicking  Create button ,
    the screen consists of save and Cancel buttons.
    Allowance Code  -- (Input Field)
    Sub Code --  (Input Field)
    Period Type -
    (Dropdown by key)
    Type -
    (Radio button Group)
    Level --- (Dropdown by key)
    Expense Type -(Dropdown by key)
    Trip - (Dropdown by key)
    Currency - (Dropdown by key)
    Amount --(Input Field)
    In the Create screen  all these fields are present. But in the table in the List Screen it is taking only mandatory Fields.
    For this our Abapers created
    Fun Mod : Zup_Allowance_Input
    Table     : ZMSTR_ALLOW 
    Iam getting error in this code under IdataType in this "Save Button ".
    Can any one help me where i went wrong in this code.or else please provide the Code for this.
    public void onActionSave(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionSave(ServerEvent)
         try{
              String str1=wdContext.currentStdAllowanceElement().getAllowanceCode();
              String str2=wdContext.currentStdAllowanceElement().getSubCode();
              IDataType dataType = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("PeriodType").getDataType();
         String index=wdContext.currentStdAllowanceElement().getPeriodType();
         String str3=wdThis.getTextFromSimpleType(dataType,index);
                                  wdComponentAPI.getMessageManager().reportSuccess("wetreer                "+str3);
         String arr[]={"Fixed","Actual"};
         for(int i=0;i<arr.length;i++)
    IPrivateEtrecStdCreateView.ICheckElement e=wdContext.nodeCheck().createCheckElement();
    wdContext.nodeCheck().addElement(e);
    e.setType(arr<i>);
    IDataType dataType = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("").getDataType();
              String index=wdContext.currentStdAllowanceElement().getLevel();
              String str5=wdThis.getTextFromSimpleType(dataType,index);
    wdComponentAPI.getMessageManager().reportSuccess("wetreer                 "+str5);
    IDataType dataType = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("ExpenseType").getDataType();
    String index=wdContext.currentStdAllowanceElement().getExpenseType();
    String str6=wdThis.getTextFromSimpleType(dataType,index);
    wdComponentAPI.getMessageManager().reportSuccess("wetreer                 "+str6);
    IDataType dataType = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("Trip").getDataType();
    String index=wdContext.currentStdAllowanceElement().getTrip();
    String str7=wdThis.getTextFromSimpleType(dataType,index);
    wdComponentAPI.getMessageManager().reportSuccess("wetreer                 "+str7);
    IDataType datatype = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("Currency").getDataType();
    String index=wdContext.currentStdAllowanceElement().getCurrency();
    String str8=wdThis.getTextFromSimpleType(dataType,index);
    wdComponentAPI.getMessageManager().reportSuccess("wetreer                 "+str8);
    String str9=wdContext.currentStdAllowanceElement().getAmount();
    Zup_Allowance_Input input=new Zup_Allowance_Input();
              input.setAllow_Opt("C");
              input.setAllowance_Code(str1);
              input.setSubcode(str2);
              input.setType1(str3);
              input.setLevel1(str5);
                         input.setExpense(str6);
                         input.setCurr_Key(str8);
    wdContext.nodeZup_Allowance_Input().bind(input);
    wdContext.currentZup_Allowance_InputElement().modelObject().execute();
    String str10=wdContext.currentOutputElement().get();
    if(str10.equalsIgnoreCase("3"))
    String errorMessage = "Inserted Successfully !";
    IWDEventHandlerInfo windowHandler = wdControllerAPI.getViewInfo().getViewController().findInEventHandlers("OK");
    IWDConfirmationDialog windowDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(errorMessage, windowHandler, "OK");
    windowDialog.open();
    windowDialog.setWindowPosition(300,250);
    }if(str10.equalsIgnoreCase("2"))
    String errorMessage = "Duplicate Value !";
    IWDEventHandlerInfo windowHandler = wdControllerAPI.getViewInfo().getViewController().findInEventHandlers("OK");
    IWDConfirmationDialog windowDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(errorMessage, windowHandler, "OK");
    windowDialog.open();
    windowDialog.setWindowPosition(300,250);
    }catch(Exception e)
                 wdComponentAPI.getMessageManager().reportSuccess(e.toString());
        //@@end
      //@@begin javadoc:onPlugFromEtrecStdView(ServerEvent)
      /** Declared validating event handler. */
      //@@end
      public void onPlugFromEtrecStdView(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onPlugFromEtrecStdView(ServerEvent)
         wdContext.currentStdAllowanceElement().setAllowanceCode("");
            wdContext.currentStdAllowanceElement().setAmount("");
            wdContext.currentStdAllowanceElement().setSubCode("");
        //@@end

  • Want docs for Web Dynpro ABAP

    Hi All ,
    Can anyone please send me the Docs or link for Web Dynpro ABAP .
    Thanks in advance
    Rahul

    Hi,
    Web Dynpro ABAP  
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/db22242d-0701-0010-28a2-aeaa1fefd706
    Also, I have the official Web Dynpro for ABAP documentation. Please let me know if I should send it to you.
    Hope that the following also helps you.
    Web Dynpro for ABAP (WD4A, WDA) is the SAP standard UI technology for developing Web
    applications in the ABAP environment. It consists of a runtime environment and a graphical
    development environment with special Web Dynpro tools that are integrated in the ABAP
    Workbench (SE80).
    Web Dynpro offers the following advantages for application developers:
    ? The use of declarative and graphical tools significantly reduces the implementation
    effort
    ? Web Dynpro supports a structured design process
    ? Strict separation between layout and business data
    ? Reuse and better maintainability by using components
    ? The layout and navigation is easily changed using the Web Dynpro tools
    ? Stateful applications are supported – that is, if the page is changed and the required
    data remains intact so that you can access it at any time throughout the entire
    application context.
    Note that stateless applications are not possible.
    ? Automatic data transport using data binding
    ? Automatic input check
    ? Automatic operation of the Web Dynpro application using the keyboard
    ? User interface accessibility is supported
    ? Full integration in the reliable ABAP development environment
    Web Dynpro Architecture
    Definition
    Web Dynpro is the SAP NetWeaver programming model for user interfaces (UIs).
    The Web Dynpro model is based on the Model View Controller paradigm, and has the
    following features that build on the classic dynpro model:
    ? Clear separation of business logic and display logic
    ? Uniform metamodel for all types of user interfaces
    ? Execution on a number of client platforms.
    ? Extensive platform independence of interfaces
    Structure
    Metamodel Concept
    Web Dynpro provides support for developing Web representation of a business application.
    You use specific tools to describe the properties of a Web Dynpro application in the form of
    Web Dynpro metadata. The necessary source code is then generated automatically and
    executed at runtime. In addition to the events offered by the framework, you can also define
    your own events for a Web Dynpro application. However, the event handling must always be
    programmed in separate source code areas which are executed automatically when the event
    is triggered at runtime.
    In Web Dynpro, each user interface is always made up of the same basic elements. These
    elements of the metamodel can be statically declared using Web Dynpro tools.
    It is also possible to implement elements of the metamodel at runtime and to change them or
    reintegrate them at runtime. Using these implementations, you can make any changes or
    enhancements to a user interface that has been created by declarative methods by
    generating new interface structures at runtime.
    This means that you can combine declarative processes and the implementation of source
    code.
    Graphical Development Tools
    To support this declarative concept, both the SAP NetWeaver Developer Studio and the
    ABAP Workbench contain a range of Web Dynpro tools. You can therefore generate a large
    proportion of a Web Dynpro application using the tools provided, without having to create your
    own source code. This applies to the following parts of the application:
    ? Data flow between the front end and back end
    ? Layout of the user interface
    ? Properties of user interface elements
    The Web Dynpro tools enable you to create source text areas manually within generated
    source texts. These areas are not changed if the source code is regenerated.
    Separation of Business and Application Logic
    Using Web Dynpro enables a clear separation of business logic and display logic. A Web
    Dynpro application runs on the front end and has local or remote access to the back end
    system via a service. This means that the display logic is contained in the Web Dynpro
    application, while the business logic and the persistence of the business objects run in the
    back end system. The following options are currently available for connecting Web Dynpro
    applications and the back-end system:
    ? An interface generated using adaptive RFC, through which BAPIs of an SAP system
    can be called
    ? An interface for calling Web services
    ? A self-generated interface
    The source code required for connecting the Web Dynpro application can be generated
    from a UML definition of the Web Dynpro interface. A UML definition can be imported
    into the Web Dynpro tools as an XML file.
    Conversion of the Model-View-Controller
    Conversion of the Model-View-Controller Programming Model
    Every Web Dynpro application is structured according to the Model View Controller
    programming model:
    ? The model forms the interface to the back end system and thus enables the
    Web Dynpro application access to data.
    ? The view is responsible for the representation of the data in the browser.
    ? The controller lies between the view and the model. The controller formats
    the model data to be displayed in the view, processes the user entries made by the
    user, and returns them to the model.
    /people/thomas.jung/blog/2006/06/20/web-dynpro-abap-demonstration-videos
    http://help.sap.com/saphelp_nw04s/helpdata/en/77/3545415ea6f523e10000000a155106/frameset.htm
    Reward points if useful
    Regards
    Anji

  • Can a web dynpro call a web service that calls a jsp?

    I'm trying to connect a web dynpro java [2004s] calling a web service that calls a jsp page. then a jsp page that calls a web service that goes to the web dynpro. is this possible?
    Thanks!

    Have you checked out the following J2EE tutorial:
    http://www.netbeans.org/download/docs/41/j2ee-tutorial/CMP2.html#wp90149
    ...The Roster module maintains the team rosters for players in sports leagues. The example has five components. The RosterClient component is an application client that accesses the RosterBean session bean through the bean's remote interfaces. RosterBean accesses three entity beans--PlayerBean, TeamBean, and LeagueBean--through their local interfaces....
    Also: http://www.netbeans.org/download/docs/41/j2ee-tutorial/Session4.html#wp82980
    Passing an Enterprise Bean's Object Reference

  • Authentication Screen when accessing Web Dynpro Application

    Hi,
    We are encountering a situation wherein when we call the Web dynpro application, it asks for Authentication. The way we do is a bit tricky. We have the following set up;
    1. We access the CRM_IC ( Web Gui) in CRM and from where we try to create orders  in the backend system i.e., ECC6.0 (IS_Utilities).
    2. For creating orders we launch the FOP ( in our case it is DYNPRO) from CRM. So ECC screen is opened through ITS using SSO.
    3. In addition to this we built a web dynpro application to be called from the DYNPRO (step 2).
    4. When the Web dynpro application is accessed it asks for Login details though it has already logged into ECC using SSO.
    PROBLEM: CRM -- using ITS / SSO --> ECC --> Web dynpro ?? Authentication screen.
    Design:
    We are using WDY_EXECUTE_IN_PLACE to open the Web dynpro in SAPGUI. It is working fine when we run the Web dynpro application from SAPGUI, only the problem is when we do the above steps 1 - 4.
    Tried using the following logic as well but the same result.
    CREATE OBJECT viewer EXPORTING parent = empty_container.
    CALL METHOD viewer->enable_sapsso
    CALL METHOD viewer->DETACH_URL_IN_BROWSER
    EXPORTING url = urlc.
    cl_gui_cfw=>flush( ).
    So is it possible to over come the problem. Basically, we don't want the Authentication screen it should use SSO.
    SSO is already set up in the system.
    Any inputs will be highly appreciated.
    Thanks,
    Roopesh

    resolved!!!!
    CRM had wrong url to connect to web dynpro aplication
    Edited by: Aditya Deshpande on Mar 3, 2010 9:59 AM

  • Web Dynpro concept

    Hi all,
    What is web dynpro concept in ABAP. What are the future scope for the same.
    Regards,
    John

    Hi,
    Web Dynpro ABAP  
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/db22242d-0701-0010-28a2-aeaa1fefd706
    Hope that the following also helps you.
    Web Dynpro for ABAP (WD4A, WDA) is the SAP standard UI technology for developing Web
    applications in the ABAP environment. It consists of a runtime environment and a graphical
    development environment with special Web Dynpro tools that are integrated in the ABAP
    Workbench (SE80).
    Web Dynpro offers the following advantages for application developers:
    The use of declarative and graphical tools significantly reduces the implementation
    effort
    Web Dynpro supports a structured design process
    Strict separation between layout and business data
    Reuse and better maintainability by using components
    The layout and navigation is easily changed using the Web Dynpro tools
    Stateful applications are supported u2013 that is, if the page is changed and the required
    data remains intact so that you can access it at any time throughout the entire
    application context.
    Note that stateless applications are not possible.
    Automatic data transport using data binding
    Automatic input check
    Automatic operation of the Web Dynpro application using the keyboard
    User interface accessibility is supported
    Full integration in the reliable ABAP development environment
    Web Dynpro Architecture
    Definition
    Web Dynpro is the SAP NetWeaver programming model for user interfaces (UIs).
    The Web Dynpro model is based on the Model View Controller paradigm, and has the
    following features that build on the classic dynpro model:
    Clear separation of business logic and display logic
    Uniform metamodel for all types of user interfaces
    Execution on a number of client platforms.
    Extensive platform independence of interfaces
    Structure
    Metamodel Concept
    Web Dynpro provides support for developing Web representation of a business application.
    You use specific tools to describe the properties of a Web Dynpro application in the form of
    Web Dynpro metadata. The necessary source code is then generated automatically and
    executed at runtime. In addition to the events offered by the framework, you can also define
    your own events for a Web Dynpro application. However, the event handling must always be
    programmed in separate source code areas which are executed automatically when the event
    is triggered at runtime.
    In Web Dynpro, each user interface is always made up of the same basic elements. These
    elements of the metamodel can be statically declared using Web Dynpro tools.
    It is also possible to implement elements of the metamodel at runtime and to change them or
    reintegrate them at runtime. Using these implementations, you can make any changes or
    enhancements to a user interface that has been created by declarative methods by
    generating new interface structures at runtime.
    This means that you can combine declarative processes and the implementation of source
    code.
    Graphical Development Tools
    To support this declarative concept, both the SAP NetWeaver Developer Studio and the
    ABAP Workbench contain a range of Web Dynpro tools. You can therefore generate a large
    proportion of a Web Dynpro application using the tools provided, without having to create your
    own source code. This applies to the following parts of the application:
    Data flow between the front end and back end
    Layout of the user interface
    Properties of user interface elements
    The Web Dynpro tools enable you to create source text areas manually within generated
    source texts. These areas are not changed if the source code is regenerated.
    Separation of Business and Application Logic
    Using Web Dynpro enables a clear separation of business logic and display logic. A Web
    Dynpro application runs on the front end and has local or remote access to the back end
    system via a service. This means that the display logic is contained in the Web Dynpro
    application, while the business logic and the persistence of the business objects run in the
    back end system. The following options are currently available for connecting Web Dynpro
    applications and the back-end system:
    An interface generated using adaptive RFC, through which BAPIs of an SAP system
    can be called
    An interface for calling Web services
    A self-generated interface
    The source code required for connecting the Web Dynpro application can be generated
    from a UML definition of the Web Dynpro interface. A UML definition can be imported
    into the Web Dynpro tools as an XML file.
    Conversion of the Model-View-Controller
    Conversion of the Model-View-Controller Programming Model
    Every Web Dynpro application is structured according to the Model View Controller
    programming model:
    The model forms the interface to the back end system and thus enables the
    Web Dynpro application access to data.
    The view is responsible for the representation of the data in the browser.
    The controller lies between the view and the model. The controller formats
    the model data to be displayed in the view, processes the user entries made by the
    user, and returns them to the model.
    Web Dynpro ABAP Demonstration Videos
    http://help.sap.com/saphelp_nw04s/helpdata/en/77/3545415ea6f523e10000000a155106/frameset.htm
    Cheers,
    vasavi.v

  • Connect to SQL server 2005 in web dynpro java

    Hi,
    I am new to web dynpro. I want to coonect to SQL server 2005 server from my simple application.
    For that what and all the prerequisetion and what and all the steps to follow.
    I have created a database and the table too. I have created the application too. But i am not able to connect to sql. what might be the problem. I tried to create the data source in visual administration. and written code in the view like this.
    try {
                                                   String userName = "jktuser";
                   String password = "jkt12345";
                   String url ="jdbc:microsoft:sqlserver://jktr3:50000;database=student";
                   Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver ").newInstance();
                   Connection con =DriverManager.getConnection(url, userName, password);
                   System.out.println("Database connection established");
                   Statement st = con.createStatement();
                   String str = "select * from studentdata";
                   ResultSet rs = st.executeQuery(str);
                   while (rs.next()) {
                   String str1 = rs.getString(1);
                   wdComponentAPI.getMessageManager().reportSuccess(str1);
                                                    String str2 = rs.getString(2);
                   wdComponentAPI.getMessageManager().reportSuccess(str2);     
                   wdComponentAPI.getMessageManager().reportSuccess("sukces");
              } catch (Exception e) {
                   wdComponentAPI.getMessageManager().reportWarning(e.toString());
    And i am getting this error
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]End of stream was detected on a read.
    Plz any one help me in this.
    Regards,
    H.V.Swathi
    Edited by: H.V Swathi on Nov 21, 2008 6:46 AM
    Edited by: H.V Swathi on Nov 21, 2008 7:16 AM
    Edited by: H.V Swathi on Nov 21, 2008 7:17 AM

    Hi,
    I have tried all the steps to configure the remote connection but it is giving an error that says,
    "Computer localhost does not exist on the network, or the computer cannot be configured remotely. Verify that the remote computer has the required Windows Management Instrumentation components and then try again. (SQLSAC)
    ADDITIONAL INFORMATION:
    An exception occurred in SMO while trying to manage a service. (Microsoft.SqlServer.Smo)
    For help, click: http://go.microsoft.com/fwlink?ProdName=MicrosoftSQLServer&ProdVer=9.00.1399.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.InnerWmiException&LinkId=20476
    Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)
    For help, click: http://go.microsoft.com/fwlink?ProdName=MicrosoftSQLServer&LinkId=20476
    The operation could not be completed. (WinMgmt)
    BUTTONS:
    OK
    Please i welcome your valuable inputs.
    Thanks & Regards
    Swathi

  • Problem in connecting JCO destination in web dynpro

    HI all,
    I was installed sneak preview of Net weaver 6.4,
    I want to do some web dynpro (java) programs which connect to back end systems.(R/3 system).
    The R/3 system which I want to connect is at remote place, i have connectivity to that R/3 system using VPN connectivity. With this I am not having any problem. Since I am able to connect using User name and password, and able to do some transactions like RZ70, etc.
    I developed an application which calls COMPANY_CODE_GET_LIST (BAPI function).
    for the above requirement what I did was
    (1)I created SLD setting.
    (a)Web as Java (I am not having any problem to
    Create this.
    (b) Web as ABAP.
    When i am trying to create
    This, there are some steps like i need to go to SAP log in and I need to run the transaction RZ70. For this i need to create an enter in visual administrator>JCO RFC Provider>runtime-->Bundles i need to create an entry for RFC destination as well as Repository.
    under RFC destination there are some fields which i need to enter those are (a)Program ID as mySLD (b) Gateway Host as 10.10.10.125 (c)Gateway service as sapgw00 (d)Number of processes as 1
    Under Repository (a) Application server host 10.10.10.125 (b)system number as 00 (c)Client number as 100 (d)Language as en (e)user as ABCD (f)password as 1234
    I haven't choused the check boxes Local bundle and Unicode and pressed the set button. So like this i created the RFC destinations. under the properties tab there is a property called RFC_DEFAULT_DESTINATION by default it was false so i made it as true. .
    I also went to SLD Data Supplier,under Runtime tab , HTTP Settings , I mentioned
    (a)Host: pava-vis75
    (b) Port: 50000
    (c) user: administrator
    (d) password: abcd1234
    RFC Settings, I mentioned as
    (a)Gateway Host: 10.10.10.125 (which is SAP R/3 system)
    (b)Gateway Service/Host: sapgw00
    CIM Client Generation settings, as
    (a)Host: pava-vis75
    (b)Port (http/https):50000
    (c) user: administrator
    (d) Password : abcd1234
    I tested the CIMClient Test by click the the button. I got the successful message.
    Then I came back to HTTP settings and clicked the button with tilted arrow mark [This triggers data transfer to system landscape directory], for this also I got a successfully message.[data transferred successfully]
    Next I been to SAPLOGON and went to RFC Destinations by using sm59 transaction. There under TCP/IP connections i been to SLD_NUC , opened this by double clicking that and under Technical settings for Program ID I had given the ID which I created at visual administrator [JCO RFC Provider] which is mySLD , under gateway options for Gateway Host as 10.10.10.125and Gateway service as sapgw00 then i tested the connection, it was also successfully.
    Then I opened the SLDAPICUST and i created a new entry for maintaining the SLD Access Data by giving some couple of entries as
    (a)Alias: vissldtest
    (b)Host Name: pava-vis75
    (c)Port: 50000
    (d) user: administrator
    (e) password: abcd1234
    Then saved it.
    Next I created sapmsUV0 3600/tcp entry at
    WINDOWS\system32\drivers\etc\services file, and also there are some required entries which are already existing those are sapgw00 3300/tcp to sapgw99 3399/tcp , another entry starts from sapdp00s 4700/tcp to sapdp99s 4799/tcp , next entry starts from sapgw00s 4800/tcp to sapgw99s 4899/tcp and sapmsJ2E 3601/tcp .
    I restarted the system, as well as server.
    Now my problem is when I was trying to create JCO destination at web dynpro content administrator. For that I navigated as “create JCO Destination &#61664;Deployed Content&#61664;local-&#61664;local/CompanyCodeGetList-&#61664;Applications&#61664; CompanyCodeGetList
    I Choosed the JCO Connections tab-&#61664; there are 2 entries those are
    (1) COMPANY_CODE_MODEL
    (2) COMPANY_CODE_RFC_METADATA
    So I started creating connection for COMPANY_CODE_RFC_METADATA.
    First one is
    General data Name : COMPANY_CODE_RFC_METADATA
    Client : 100
    I didn’t changed any default JCo pool configuration.
    J2EE Cluster
    There is a check box called “Use Local J2EE engine J2E on pava-vis75’ so I choosed that.
    Connection Type
    Dictionary Meta Data and application Data
    I choosed the first one.
    Then
    Msg. Server Connection
    Security
    After these, I tried to test the connection by clicking the ‘Test Connection.
    It is saying the error as
    First time
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=v011 GROUP=DEFAULT R3NAME=UV0 MSSERV=sapmsUV0 PCS=1 ERROR service 'sapmsUVO' unknown TIME Fri Jul 01 07:20:41 2006 RELEASE 640 COMPONENT NI (network interface) VERSION 37 RC -3 COUNTER 1
    second time
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=v011 GROUP=DEFAULT R3NAME=UV0 MSSERV=sapmsUV0 PCS=1 ERROR service '?' unknown TIME Fri Jul 01 07:20:41 2006 RELEASE 640 COMPONENT NI (network interface) VERSION 37 RC -3 COUNTER 1
    Can any body please help me to solve this problem.
    From past 1 week on wards I have been trying to resolve this. But in vain.

    It does not necessarily mean that you have to change that parameter. I read that blog as I had a similar problem, and after reading it and understanding the reasons and possible causes for the error, I found that my particular problem was that I was using "PUBLIC" as the logon group in my JCO destinations, but such a group does NOT exist at my backend. I went to transaction SMLG, had a look at Logon Groups, noted that there were none other than SPACE, figured out that I had to include that information in SLD (Web AS ABAP tech. system --> Message Server --> Logon Groups), put it there. Voilá. It works.
    Edit: That SPACE logon group is the one I had to use at JCO destinations. Sorry I forgot to mention that one...
    Regards,
    Eduardo.
    Message was edited by: Jesus Cil

Maybe you are looking for