Global Class creation and visibility of the class component-->Attributes
Steps
- Go to transaction code SE24.
- Initial screen of Class Builder looks like this.
- Enter the Object Type (class name ) , start's with YCL_ or ZCL_ <class name > and click on create button.
- Enter the short description and click on SAVE button.
- Save it in either Package or Local Package.
- Class Interface looks like this.
- Click on attributes Tab,
- Enter the attribute name.
- Click on Level and press F4 help.
- Select the Level ( instance ) of the attribute.
- Click on Visibility and press F4 help.
- Select the Visibility of the attribute.
- Enter the Associated type( data type ).
- Enter the Description.
- Enter the initial Value ( optional ) .
- Enter the initial value.
- Go to transaction code SE38.
- We can call static attribute using,
<object name >-><attribute name>.
or
<Class name >=><attribute name>.
































Comments
Post a Comment