Skip to Content
avatar image
Former Member

working with Java dictionary

Hi All,

I have created a table in java dictionary and I have deploy and run the table. I think its created in the database.

But, Now I have enter the data into that table using my web dynpro application. Can you please guid me how to do that?

Thanks in Advance...

Thanks,

Rajesh.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 19, 2009 at 06:31 AM

    Hi,

    You need to get connection to the database and then write sql queries, something like this.

    try 
    {
       InitialContext ctx=new InitialContext();
       DataSource ds=(DataSource)ctx.lookup("jdbc/SAPJ2EDB");
       Connection con=ds.getConnection();
       Statement stmt=con.createStatement();
       // use stmt to get resultset and execute other queries here
    }catch(Exception e){
        wdComponentAPI.getMessageManager().reportSuccess("",+e);
    }

    Add classes12.jar to Java build path

    Regards,

    Harini S

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      I have created a table using Java dictionary. Now I want to enter the values my webdynpro simple application. Can any body give me the logic?

      please reply. Its really usefull for me.

      Thanks,

      Rajesh.

  • Mar 19, 2009 at 06:04 AM

    Hi

    First clear your this doubt I think its created in the database. form here

    Go to NWA administrator Select problem management --select Open SQL Data Browser put you table name in show then u can see.

    Second follow this tutorials [help|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502f70a8-33a4-2b10-3dbe-bdcb5e25c6da]

    for implementation

    Best Regards

    Satish Kumar

    Add comment
    10|10000 characters needed characters exceeded