2008 Mar 27 6:09 AM
What are the various methods for creation of structure?
Thanks.......
What are the various methods for creation of structure?
Thanks.......
2008 Mar 27 6:11 AM
HI
data: s_vbak like vbak.
data: s_vbak like line of vbak.
data: begin of s_vbap,
vbeln like vbap-vbeln,
posnr like vbap-posnr,
end of s_vbap.
Regards
Aditya
2008 Mar 27 6:19 AM
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.
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.
d. To enter a default value for the database, enter the value in the DB Default field. For more information, see Initial Values.
e. If the element cannot accept and store null values, choose Not Null. For more information, see Initial Values.
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 File ® Save All Metadata.
2008 Mar 27 6:13 AM
Hi,
data: s_vbap like vbap.
data: s_vbap like line of vbap.
data: begin of s_vbap,
vbeln like vbap-vbeln,
posnr like vbap-posnr,
kwmeng like vbap-kwmeng,
end of s_vbap.
Reward points if useful....
Regards
AK
2008 Mar 27 6:17 AM
Hi Jhansi
you can create a structure from SE11.
Click on the Radio button 'Data Type'. and click Create.
Select "Create Structure".
Create Structure similar to table. this structure is global and can be used in any prog.
Regards
Akshay Chonkar
2008 Mar 27 6:31 AM
Go to Tcode-SE11
Select Data Type Radio Button -Give Structure name from Z/Y
Click on Create
Select Structure Radio Button
Click on Continue.
Short Text is mandatory.
Add Component & Component Type.
Save/ Check/ Active.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |