on 2024 Aug 03 5:54 PM
Hello SAP Community,
I encountered an interesting scenario while working with ABAP where I was able to create a variable that starts with the "!" character using the DATA statement. According to the typical naming conventions for ABAP variables, this should not be possible. Here is a sample example to illustrate this:
In this example, the variable !_lv_var is created and used without any issues. Also, it can be used without "!" like _lv_var. I am curious to understand why this is allowed and if it is related to any recent changes or enhancements in the ABAP language syntax.
Can someone explain why this behavior is possible and if there are any specific use cases or contexts where this is intended?
Thank you!
@Sandra_Rossi : Thanks for the explaination.
Answer:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
10 | |
10 | |
10 | |
10 | |
9 | |
8 | |
7 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.