Show TOC Start of Content Area

Procedure documentation Creating Connections to the Java Dictionary  Locate the document in its SAP Library structure

Use

You use this procedure to create a connection profile and establish a connection to the Java Dictionary.

The Java Dictionary allows you to define database tables in a database-independent way. The table definitions are organized in dictionary projects. The SAP NetWeaver Developer Studio allows the Java Dictionary to be accessed through the Data Source Explorer.

Caution

When you are using the Java Dictionary, you are accessing a metadata representation of a physical database only.

More information about Java Dictionary: Providing Java Dictionary Tables and Data Types

Note

If you plan to use a native database to define your tables, you have to create a connection to that database.

More information: Creating Database Connections

Prerequisites

You have created a Dictionary Project in the SAPNetWeaver Developer Studio.

For more information, refer to step 1 in Development Process.

Procedure

Creating a New Connection Profile to the Java Dictionary

...

       1.      In the SAP NetWeaver Developer Studio, switch to the Data Source Explorer view:

                            a.      Choose Window Show View Other.

                            b.      Select Connectivity Data Source Explorer and choose OK.

       2.      In the Data Source Explorer, select Databases.

       3.      In the context menu, choose New.

       4.      Select DDIC Designtime and choose Next.

       5.      Enter the required data and choose Next.

       6.      Specify the Dictionary project that you want to associate with your new connection profile and choose Finish.

The new Java Dictionary connection profile appears in the Databases tree of the Data Source Explorer.

       7.      Connect to the Java Dictionary.

                            a.      In the Data Source Explorer, select the Java Dictionary connection profile.

                            b.      In the context menu, choose Connect.

Associating an Existing Project with an Existing Java Dictionary Connection Profile

...

       1.      In the Package Explorer, select the project to associate with the Java Dictionary connection profile.

       2.      In the context menu, choose Properties.

       3.      Choose JPA from the properties tree.

       4.      Select the Java Dictionary connection profile from the Connection dropdown list.

       5.      Choose Apply, then choose OK.

       6.      Connect to the Java Dictionary.

                            a.      In the Data Source Explorer, select the Java Dictionary connection profile.

                            b.      In the context menu, choose Connect.

Connecting to the Java Dictionary

...

       1.      In the Data Source Explorer, select the Java Dictionary connection profile.

       2.      In the context menu, choose Connect.

End of Content Area