Web Dynpro application connecting to sql server

Hi,
I want to fetch data from SQL Server using webdynpro. Can anyone suggest me the steps to do this? I need to connect the SQL Server also to portal. I found one using visual admin another using system object in portal. Which is better way and how can use that connected system in coding to retrive data.
Please help me. Points will be awarded for helpful answets.
Thanks,
Raz

Hi,
You place the code where ever you want to establish the connection to the data base which is located remotely in a diffrent IP from NWDS.
The requirement for this we have 3 jar files.Which you have to copy in the lib folder.
those are:-
1.msbase.jar
2.mssqlserver.jar
3.msutil.jar
XX.XX.XX.XX->IP Address
XXXX---->Port no
Code:-
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
conn = DriverManager.getConnection( "jdbc:microsoft:sqlserver://XX.XX.XX.XX:XXXX;databaseName=TrackingSystem","sa","sa" ) ;
Statement st = conn.createStatement();
String str = "select * from User Table";
ResultSet rs = st.executeQuery(str);
while(rs.next())
String str1 = rs.getString(1);
wdComponentAPI.getMessageManager().reportSuccess(str1);
Thanks & Regards,
Lokesh.

Similar Messages

  • Web Dynpro Application connecting to incorrect R/3 instance

    Hi,
    We have newly configured EP.
    We are facing strange problem with web dynpro applications.
    They are accessing data from incorrect instance of R/3 system,i.e, if correct system instance is x , they are accessing data from y instance, on the same R/3 server.
    We have checked JCO connections. SID in JCO connection is of the correct instance.
    We have also checked SLD, but are not able to find out the root cause of the problem.
    Are there any other configuration, settings required?Are there any settings required on R/3 side?
    Can we some how track entire process from JCO to R/3?
    What happens after fetching server details from SLD? Is there any other step before connecting to R/3?
    Can anyone help on this?
    Thanks in advance,
    Apurva

    Hi,
    I have checked alias name (System ID) used in JCO connection.It is correct.
    I have also checked System ID in SLD.
    Is there any other configuration check required?
    Thanks,
    Apurva

  • Web Dynpro application connecting to oracle

    Hi all,
    i want to create a web Dynpro application which will fetch data from oracle database.
    Can anyboby guide me with some documents.
    Thanks in advance.

    Thanks for your quick reply!
      I am trying in another way.I've created a WD application and in custom controller I've put the code for connection, copying the retrived data into context and trying to display the data in one view.
    CODE:
    DriverManager.registerDriver(
                  new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection(               "jdbc:oracle:thin:@oracle server ip:port:sid",
         "user name",
         "password");
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery("select * from table");
    if (rs != null)
      while ( rs.next() )                     
         //code for copying data into context
    stmt.close();
    conn.close();
    Error(No class defination found) is at first line i.e. new oracle.jdbc.driver.OracleDriver().
    I've put classes.zip in lib and build path as well.
    Regards,
    Sarika.

  • Borland C++ Delphi application is not able to connect to SQL Server as Non Admin user

    Hi,
    I am working on a Borland C++ and Delphi application. This application connects to  SQL Server and returns database queries results. Once we migrated to windows Server 2003 we have started facing an issue.
    1. IF we login to client application as admin user then this connects properly with SQL Server and returns database queries.But if we connect using Non- Admin users then application is not able to connect SQL Server.
    SQL Server 2008
    Windows Server 2003.
    Can anybody help on this.
    Thanks in Advance.
    Rakesh

    This application is written in Borland C++ and Delphi running on Windows 2003 Server. This  is a Windows GUI based small tool. Basic functionality of the tool is : 1) Once we invoke the tool it connects to DB(SQL Server 2005) and populates a list of
    all the tables present in DB.   2) If we select any table from the list populated in step (1) and provide query parameters, this will return results from Database.
    Issue:  IF we login to the Windows machine as Administrator this application runs perfectly .This application populates the DB tables correctly and returns results from database when queries executed as in step (2)
    But if we login as some other user (like hubapp) then this populates some different set of table which are not from the same database instance .Also the queries does not return any results. In the logs we get following error message : (TiltData is the instance
    name for our Database)
    Msg:Application Exception : Cannot locate or connect to SQL server.Unable to connect: SQL Server is unavailable or does not exist.  Specified SQL
    server not found.Alias:
    TiltData1 occurred in main thread.
    As for the connection string 
          'DATABASE NAME=tiltdata'
          'SERVER NAME=SDV3'
          'USER NAME=sa'
          'OPEN MODE=READ ONLY'
          'SCHEMA CACHE SIZE=8'
          'BLOB EDIT LOGGING='
          'LANGDRIVER='
          'SQLQRYMODE=SERVER'
          'SQLPASSTHRU MODE=NOT SHARED'
          'DATE MODE=0'
          'SCHEMA CACHE TIME=-1'
          'MAX QUERY TIME=300'
          'MAX ROWS=-1'
          'BATCH COUNT=612'
          'ENABLE SCHEMA CACHE=FALSE'
          'SCHEMA CACHE DIR='
          'HOST NAME='
          'APPLICATION NAME=QueryTool'
          'NATIONAL LANG NAME='
          'ENABLE BCD=FALSE'
          'TDS PACKET SIZE=65535'
          'BLOBS TO CACHE=64'
          'BLOB SIZE=32'
          'PASSWORD=jstart')
    Any help is appreciated. I have spent a lot of time on this issue with no results.
    Regards
    Rakesh

  • Getting error "Access via null" when running the web dynpro application

    Hi experts,
    I am getting the below error while executing my web dynpro application
    500 SAP Internal Server Error
    ERROR: Access via 'NULL' object reference not possible. (termination: RABAX_STATE)
    I am getting the error only when I am calling a method create manufacturer from my web dynpro program. If i comment this code my application works fine
    CALL METHOD wd_this->mo_ch_instance->create_manufacturer
      EXPORTING
        gi_manufacturer = ls_manufacturer
      IMPORTING
        lv_message      = lv_status
    i have created a attribute mo_ch_instance of type YSRM70CL_CH_SW_MD  where YSRM70CL_CH_SW_MD is the class which has the create_manufacturer method that i am using in my code.
    Kindly let me know whats the issue.
    Regards,
    Vinod

    Hi,
    if   wd_this->mo_ch_instance is not initial.
    CALL METHOD wd_this->mo_ch_instance->create_manufacturer
    EXPORTING
    gi_manufacturer = ls_manufacturer
    IMPORTING
    lv_message = lv_status
    endif.
    Check wether you have created the object for that class r not.
    Regards,
    Lekha.

  • HTTP 500 internal server error while starting abap web dynpro application

    Hi there,
    i have some problems concerning my web dynpro abap configurations in the system. When i start an application the browser appears and displays the http 500 internal server error.  The required icf nodes are activated, as far as i know. the following properties are set:
    hostname: aet
    port: 8000
    The generated url for the web dynpro application looks as follows:
    http://aet.ls3001:8000/sap/bc/webdynpro/sap/zwdr_test?sap-language=EN
    Maybe anybody of you out there has an idea for that situation.
    Thanks for your afford and kind regards,
    Albert

    Hi Ulli,
    the error message says:
    UNKNOWN HOST
    Description: Unable to locate the server named "aet.ls3001" --- the server does not have a DNS entry. Perhaps there is a misspelling in the server name, or the server no longer exists. Double-check the name and try again.
    So the problem is the hostname.
    When i replace the hostname with the ip of the server, the following error occures:
    COULD NOT CONNECT
    Description: Could not connect to the server "10.18.187.9".
    But with SAPLogon, its possible to connect on the server by filling in the ip adress.
    Kind regards,
    Albert

  • Running ABAP Web Dynpro Application without host entry of web server

    Hi All,
    I am trying to run a web dynpro application, its working fine when I have done host entry (host nam.domain.extension) of web server.
    But when I remove this entry from host file it not runs.
    Can you tell me the posibility of running this application without host entry? Based on this possibility I have to proceed my work. Please guide me.
    Thanks and Regards
    Sudhir Gupta

    Hi Sudhir ,
    See the below link , its necessary to provide FQDN.
    http://help.sap.com/saphelp_nw70/helpdata/en/67/be9442572e1231e10000000a1550b0/frameset.htm
    Regards
    Yash

  • Problem of Creating a web dynpro application based on a car rental web serv

    Based original SAP developer studio examples shipped with the developer studio, I first create J2EE application “QuickCarRental”. It works at http://192.168.254.4:50300/QuickCarRental.
    A web service “QuickCarRentalWebService” is defined in J2EE application “QuickCarRental”. My web dynpro application “TutWD_CarRental” is web service consumer invoking “QuickCarRentalWebService”.
    When I deploy “TutWD_CarRental” on SAP J2EE engine and  run the application at http://192.168.254.4:50300/webdynpro/dispatcher/local/TutWD_CarRental/CarRentalApp, i can see the web dynpro web application interface right.
    however, I get the following error when I input some data and Click button rent a car.
    Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (404) Not Found.
    when i click Display all bookings, the error is:
    Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (404) Not Found.
    I install SAP developer studio on my winXP desktop, and the SAP developer studio version is 2.0.10.
    I have my SAP Web application server and J2EE engine Version 6.40 run on a different machine. the SAP server IP address is 192.168.254.4
    could anybody give me some clue on this. is that because i miss some configurations on SAP server for enabling web services of “QuickCarRentalWebService”?
    Thanks!
    Thomas

    HI
    Find here.
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/9fc0e990-0201-0010-199c-e38fc6dafb5d
    Thanks
    Lohi.

  • Web Dynpro Application Deployment need server restart?

    Hi Everyone,
    When deploying Web Dynpro application on production environment, do we need to restart the sap portal system and server?
    I have this issue that when ever we deployed new develop Web Dynpro application with new Abap Function module we need to restart our Enterprise portal production server. Is this really necessary. Is there other way to deploy Web Dynpro application with new Abap function module without restarting the server.
    Please help,
    Michael Mondelo

    Hi michel,
    for example , assume you imported a RFC bapi_flights from r/3 to webdynpro dc , and both rfc requests and webdynpro application is deployed to the development server and then moved to quality server.
    now you have done some changes in the rfc bapi_flights i  mean change in the structure .
    case 1 : now with out reimporting the change to webdynpro application and you move the request to the quality r/3, your application dumps . because the structure change is not incorporated at your webdynpro DC.
    case 2 : you have re imported the rfc incorporating the changes to the web dynpro applicaiton dc, now with out moving the structure changes request to the quality r/3 and you deploy the webdynpro Dc having the changes to your quality EP , still the applicaiton dumps because your appliction refers to the rfc with out structure change in quality r/3.
    case 3 : you have moved the abap request having the strucutre change and also the webdynpro development component where the changes are also incorporated , now on moving both , your application might dump , because the meta data cache might have been not updated with the new structure change in the quality ep server. so you have invalidate the cache in the JCos you have used to import the rfc. or else on restarting the EP server , the new structure change will be updated in the server.
    most of the cases  Invalidation of cache works and in some cases you have restart the server fo the changes to update.
    Regards
    Govardan Raj

  • 500Internal Server Error The Web Dynpro application PageBuilder has expired

    hi all ,
    i am using public url domain to access my portal through internet . i have done a reverse proxy using apache . from my server url i am able to get every page . from public url i am not able to view my webdynpro applications . its showing the following error
    500   Internal Server Error
      SAP J2EE Engine/7.01 
      The Web Dynpro application 'PageBuilder' has expired. Restart the application. Choose 'Refresh' in the iView tray or use the browser 'Refresh' button to restart the iView
      Details:   No details available
    i  got this log file in the portal
    Full Message Text
    Session unknown: Request with URI=/webdynpro/dispatcher/sap.com/pb/PageBuilder was sent to unknown session. Either request with wrong session parameters was sent, or session has expired before Wed Oct 20 21:47:46 IST 2010. Current request parameters={sap-ext-sid=DL7cHVE6DiKdbE9gwYkSdg5A6q8C_OKOzgxi0HoLa2iw, sap-wd-cltwndid=WID1287644121668, sap-wd-norefresh=X, sap-ep-version=7.0104.20090422102234.0000}. Is termination request=false. Request was sent from host with IP=172.31.11.95/name=172.31.11.95. Hint: see SAP note 842635 for more details on session expiration. RID=a16ac995dcdf11dfb3e70021281821ee
    [EXCEPTION]
    com.sap.tc.webdynpro.clientserver.session.SessionExpiredLongJumpException: Session has expired (current request: follow-up request). Please restart the application. Hint: HttpSession seems to be expired due to user inactivity or application is called with wrong URL parameter (sap-wd-norefresh=X).
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.findClientSession(RequestManager.java:258)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:146)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    can anybody helpme in this issue

    Hello,
    Please see this post:
    The Web Dynpro application 'PageBuilder' has expired
    I think the problem is solved in this post.
    Regards.

  • Connecting an application to a sql server database

    I want to make a login for an application. I need to check the username and password from a sql server database. I'm really at a total loss here. Can anyone tell me how to write the part concerning the connection? Thanks

    Hi,
    Please find below the code to connect to Sql Server
    database.
    You need to have the sqlserver server driver jar
    files(msbase.jar,mssqlserver.jar,msutil.jar)
    in your classpath
    import java.sql.*;
    * Microsoft SQL Server JDBC test program
    public class Test {
    public static void main (String args[]) throws
    s Exception {
    // Get connection
    DriverManager.registerDriver(new
    com.microsoft.jdbc.sqlserver.SQLServerDriver());
    Connection connection =
    n = DriverManager.getConnection(
    "jdbc:microsoft:sqlserver://<Host>:1433",<"UID>","<PWD
    if (connection != null) {
    System.out.println();
    System.out.println("Successfully connected");
    }-AmolThank you but would you please tell all the part I need to connect and to execute any statement? I hope my words are clear because I'm in such a mess when it comes to anything related to database. Also, could you please tell me where do I get the sqlserver jar files? Thank you.

  • 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

  • Web dynpro - database connection

    Hi all,
    i intead to make a web dynpro application which will store the data entered by the user in an oracle database
    How am i to obtain webdynpro - oracle connectivity?
    points assured for Help

    Hi Shobhendra,
    The simplest way is to use Visual admin. For that , do the following
    1.Run Go.bat in the server to open Visual Admin.
    2.Select Cluster->JDBC Connector
    3.In Runtime, Create a driver of any name(Say mydriv). Select classes12.jar for that
    4.Create a new datasource(Say myDS). There specify the
    driver class as oracle.jdbc.driver.OracleDriver
    database url as jdbc:oracle:thin@IPADDRESS OF ORACLE SERVER:PORT:SID
    driver as mydriv
    The PORT will usually be 1527 or 1521.
    For IPADDRESS, PORT and SID, u have to contact db admin
    5. In additional , select Vendor or Native SQL
    6. Test the connection using Monitoring tab. If green line is coming, then connection is successful, otherwise, the parametes u used will be incorrect
    7.In ur webdynpro code, inorder to get the Connection to oracle, add the following
    InitialContext ctx=new InitialContext();
    DataSource ds=(DataSource)ctx.lookup("jdbc/myDS");
    Connection con=ds.getConnection();
    8. Press CTRLSHIFTO
    Regards
    Fahad Hamsa

  • Error - Creating a Web Dynpro Application Accessing ABAP Functions

    Dear All,
    we are trying to implement a web dynpro application with accessing ABAP functions.
    Previous tasks:
    -     insert the ABAP system into the SLD from the NWDI System (Transaction RZ70; the ABAP system is correctly insert into the SLD => technical systems)
    -     equipped the JCO connections with the web dynpro content manager (ping and test = OK)
    It’s the standard tutorial out of the SDN called “Creating a Web Dynpro Application Accessing ABAP Functions”.
    Some hints:
    -     There are no errors after the implementation and the “rebuild” of the project in the NWDS
    -     The auto deployment works fine to the development runtime system. The application is shown in the Web Dynpro content manager
    -     The In the build log I found these entries:
    System.err] [Invoked from  com.sap.s2x.tools.GUID.getnodeaddress(GUID.java:585)]
    [System.err] java.net.UnknownHostException: FRASAPP562: FRASAPP562
    [System.err]      at java.net.InetAddress.getLocalHost(InetAddress.java:1191)
    [System.err]      at com.sap.s2x.tools.GUID.getnodeaddress(GUID.java:575)
    [System.err]      at com.sap.s2x.tools.GUID.<clinit>(GUID.java:179)
    [System.err]      at com.sap.s2x.tools.S2XGUID.getGUID(S2XGUID.java:19)
    [System.err]      at com.sap.ide.metamodel.core.i18n.LanguageState.createS2XID(LanguageState.java:191)
    [System.err]      at com.sap.ide.metamodel.core.i18n.S2XLanguageUnmarshaller.unmarshal(S2XLanguageUnmarshaller.java:52)
    [System.err]      at com.sap.ide.metamodel.core.i18n.TextPoolProxy.loadLanguageState(TextPoolProxy.java:703)
    [System.err]      at com.sap.ide.metamodel.core.i18n.TextPoolProxy.prepareLanguageForRead(TextPoolProxy.java:646)
    [System.err]      at com.sap.ide.metamodel.core.i18n.TextPoolProxy.isEmpty(TextPoolProxy.java:222)
    [System.err]      at com.sap.ide.webdynpro.checklayer.MDOChecker.check(MDOChecker.java:23)
    [System.err]      at com.sap.ide.webdynpro.checklayer.view.ViewChecker.check(ViewChecker.java:52)
    [System.err]      at com.sap.ide.webdynpro.checklayer.controller.ViewControllerChecker.check(ViewControllerChecker.java:96)
    [System.err]      at com.sap.ide.webdynpro.checklayer.controller.ControllerChecker.check(ControllerChecker.java:119)
    [System.err]      at com.sap.ide.webdynpro.checklayer.controller.ControllerChecker.check(ControllerChecker.java:56)
    [System.err]      at com.sap.ide.webdynpro.checklayer.component.ComponentChecker.check(ComponentChecker.java:181)
    [System.err]      at com.sap.ide.webdynpro.checklayer.component.ComponentChecker.check(ComponentChecker.java:56)
    [System.err]      at com.sap.ide.webdynpro.generation.Generation.check(Generation.java:2039)
    [System.err]      at com.sap.ide.webdynpro.generation.Generation.generatePersistentComponent(Generation.java:1296)
    [System.err]      at com.sap.ide.webdynpro.generation.console.GenerationConsole.generate(GenerationConsole.java:175)
    [System.err]      at com.sap.webdynpro.generation.ant.GenerationAnt.main(GenerationAnt.java:50)
    [System.err]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [System.err]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [System.err]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [System.err]      at java.lang.reflect.Method.invoke(Method.java:324)
    [System.err]      at com.sap.webdynpro.generation.ant.WDGenAntTask.execute(WDGenAntTask.java:219)
    [System.err]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [System.err]      at org.apache.tools.ant.Task.perform(Task.java:364)
    [System.err]      at org.apache.tools.ant.Target.execute(Target.java:341)
    [System.err]      at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [System.err]      at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    [System.err]      at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:112)
    [System.err]      at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:61)
    [System.err]      at com.sap.tc.buildplugin.DefaultPlugin.handleBuildStepSequence(DefaultPlugin.java:213)
    [System.err]      at com.sap.tc.buildplugin.DefaultPlugin.performBuild(DefaultPlugin.java:190)
    [System.err]      at com.sap.tc.buildplugin.DefaultPluginV3Delegate$BuildRequestHandler.handle(DefaultPluginV3Delegate.java:66)
    [System.err]      at com.sap.tc.buildplugin.DefaultPluginV3Delegate.requestV3(DefaultPluginV3Delegate.java:48)
    [System.err]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [System.err]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [System.err]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [System.err]      at java.lang.reflect.Method.invoke(Method.java:324)
    [System.err]      at com.sap.tc.buildtool.v2.impl.PluginHandler2.maybeInvoke(PluginHandler2.java:350)
    [System.err]      at com.sap.tc.buildtool.v2.impl.PluginHandler2.request(PluginHandler2.java:102)
    [System.err]      at com.sap.tc.buildtool.v2.impl.PluginHandler2.build(PluginHandler2.java:76)
    [System.err]      at com.sap.tc.buildtool.PluginHandler2Wrapper.execute(PluginHandler2Wrapper.java:58)
    [System.err]      at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1723)
    [System.err]      at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1495)
    [System.err]      at com.sap.tc.buildcontroller.CBSBuildController.build(CBSBuildController.java:727)
    [System.err]      at com.sap.tc.buildcontroller.CBSBuildController.execCommand(CBSBuildController.java:503)
    [System.err]      at com.sap.tc.buildcontroller.CBSBuildController.evalCmdLine(CBSBuildController.java:442)
    [System.err]      at com.sap.tc.buildcontroller.CBSBuildController.run(CBSBuildController.java:314)
    [System.err]      at com.sap.tc.buildcontroller.CBSBuildController.exec(CBSBuildController.java:252)
    [System.err]      at com.sap.tc.buildcontroller.CBSBuildController.mainLoop(CBSBuildController.java:207)
    -     I’m able to start the application out of the Web Dynpro content manager with “run” => only the user interface is displayed without any functionality
    -     The “normal” start over the NWDS fails => error text
    “com.sap.tc.webdynpro.services.sal.core.DispatcherException: The requested deployable object 'local/J08_Flugdat_Daventdcflight~xxx.com' and application 'FlightListApp' are not deployed on the server. Please check the used URL for typos.”
    There two different URLs in use.
    Start via NWDS:
    http://frasapp562:50000/webdynpro/dispatcher/J08_Flugdat_Daventdcflight~xxx.com/FlightListApp
    Start via web dynpro content manager:
    http://frasapp562:50000/webdynpro/dispatcher/xxx.com/aventdc~flight/FlightListApp
    For test purposes, we started the BAPI (BAPI_Flight_Getlist) on the ABAP system directly. It works.
    Any ideas about the system behaviours (different URLs and missing functionality)?
    Thanks a lot in advanced!
    Best regards
    Christoph

    The Error has been solved – The implementation of a method was missing....
    Thx
    Christoph

Maybe you are looking for

  • Stock Balances uploading through Mvt type 561

    Hello,         We are uploading Stock Balances by T.Code MB1C through Mvt. Type 561. IN FI-MM Integration T.code OBYC, In transaction key "GBB" I have assigned GL Account "Stock Suspense A/c" for BSA. And in transaction key BSX, I've assigned GL Acco

  • Date wise Valid Customers

    Hi Experts, I have a customer master data object with move in date and move out date as attributes. Now I want a report for number of customers valid for each day of a specified user entry date range. Let say I have date in the object like below. cid

  • Crystal relort access in R/3

    Below error occured while accessing tables in crystal reports. Quite sure its not an SAP related access issue. Can anyone help to resolve this. Thanks! Data object can not be opened/accessed Details: Table level security check failed

  • Crystal Reports XI: Invalid column name error

    Hello! I have a crystal report using a SQL command that is getting the following error (occasionally): Failed to retrieve data from the database. Details: ADO Error Code: 0x80040e14 Source: Microsoft OLE DB Provider for SQL Server Description: Invali

  • RSD...just stops on its own?

    So about a month ago the dreaded RSD started happening to my macbook. I tried several times to make appointments to see a "Genius" at my apple store, however unless I wanted 11am or 1130am on any day I tried...I couldnt get in, and forget any times o