Structures
- The structure is a combination of different variables or data types.
- Structures do not hold memory. But it holds memory only at runtime.
Syntax :
types : Begin of <structure name>,
------
------
End of <structure name>.
Ex :
Steps :
- Go to transaction code SE38.
- Enter program name Z or Y<program name>.
- Select Attributes type as an Executable program.
- Click on save.
Source Code
Types: BEGIN OF TY_STR,
NAME(12) TYPE C,
AGE TYPE I,
PLACE(20) TYPE C,
END OF TY_STR.
NAME(12) TYPE C,
AGE TYPE I,
PLACE(20) TYPE C,
END OF TY_STR.
No comments:
Post a Comment