cancel
Showing results for 
Search instead for 
Did you mean: 

working with Java dictionary

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

where i can find build path in NWDS. If I wrote those steps, can I coonect to the database.

Former Member
0 Kudos

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.

Answers (1)

Answers (1)

former_member185086
Active Contributor
0 Kudos

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

Former Member
0 Kudos

I didn't find problem management in Netweaver Administration.

can you mention clearly,