Data type descriptions in the form of structures are used in Web applications and can be created in the Java Dictionary independently of the program code.
Context
Data type descriptions in the form of structures are used in Web applications and can be created in Java Dictionary independently of the program code. Structures created in Java Dictionary can be reused in different Web Dynpro contexts.
Procedure
- In the
Dictionary Explorer , select the Dictionary DC where you want to store your new structure.
- In the context menu, choose
.
- Fill in the required data:
-
Structure Name
-
Structure Package
- Choose
Finish .
The SAP NetWeaver Developer Studio creates the structure and opens it for editing.
- (Optional) In the
Description field of the structure editor, enter a short description for the structure.
- To create the elements of the structure, choose the
pushbutton.
The
Add Element dialog
opens.
- Enter a name for the element in the
Element Name field.
Note
The name must begin with a letter and may contain only letters, digits and underscores.
- Specify other settings of the structure element:
-
Define one of the built-in data types as the type of the element.
-
Select a data type from the
Built-In Type dropdown list.
The
JDBC Type field is automatically set and provides information about the underlying, database-independent JDBC type that results from the
selected
Built-In Type and from the length entered for the field.
-
If necessary, complete the
Length ,
Decimals (decimal point precision), and
Description fields.
-
Define a type, which is already defined manually in Java Dictionary, as the data type of the element.
-
Choose
Browse and select the simple type to be used in the
Simple Type Selection dialog box.
-
Choose
OK .
The SAP NetWeaver Developer Studio completes all of the relevant fields automatically.
-
Choose
Finish .
- To save your entries, choose
Save .