1-Enumeration in ABAP 7.51

lightEnumeration- This is introduced in ABAP 7.51 release.

 

 


* Enumeration- Available from 7.51 release, Its a combination of types & constants. A simple declaration of ENUM types and accessing its fields is shown in this post.


 

Code:
TYPES: BEGIN OF ENUM t_vowels,
                        letter_a,
                        letter_e,
                        letter_i,
                         letter_o,
                         letter_u,
               END OF ENUM t_vowels.

WRITE:/ letter_a,
              / letter_e,
              / letter_i,
              / letter_o,
             / letter_u.


 

1

Output:

2


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s