Show TOC Start of Content Area

Procedure documentation Creating Structures  Locate the document in its SAP Library structure

Use

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. Structures created in the Java Dictionary can be reused in different Web Dynpro contexts.

Procedure

       1.      In the Dictionary Explorer, select Structures and choose Create Structure from the context menu.

       2.      Enter a name for the package and a name for the structure.

       3.      Choose Finish. The structure opens for editing.

       4.      In the Description field, enter a short description for the structure.

       5.      To create the elements of the structure, choose Add Element. The Create Structure Element dialog opens.

       6.      To define one of the built-in data types as the type of the element, choose Built-in Type.

...

                            a.      Enter a name for the element in the Element Name field.

Caution

The name may only contain letters, digits, and underscores. The name must begin with a letter.

                            b.      In the Built-in Type field, choose a data type. The JDBC Type field is automatically set and provides information on the underlying, database-independent JDBC type that results from the selected Built-in Type and from the length entered for the field.

                            c.      Complete the Length, Decimals (decimal point precision), and Description fields if necessary.

       7.      To define a type defined in the Java Dictionary as the data type of the element, choose Simple Type.

                            a.      Enter a name for the element in the Element name field.

                            b.      Choose Browse and select the simple type to be used from the Simple Type Selection dialog. Choose OK. The SAP NetWeaver Developer Studio completes the Simple type package, Built-in type, JDBC type, and Length fields automatically.

       8.      To save your entries, choose Save.

 

See also:

Creating Data Types

 

 

End of Content Area