‎2016 Jul 04 2:05 PM
Hello,
i am using ADT 2.60.3 with ABAP 740(SP 12).
When i use the Pragma ##NO_TEXT with the CONSTANTS keyword, the constants are not displayed in the outline view.
If i remove the pragma, the outline view shows the constants again.
Same thing happens when i use ##NEEDED with global variables.
Not a big issue, but can be a hinderance when you have a big constant interface and want to navigate to a specific element
BR,
Suhas
‎2016 Jul 05 1:53 PM
Hello Suhas,
I have the same behaviour as you.
But in my case I get a hint, that the pragma is not allowed at this point.
Cheers
Stefan
‎2016 Jul 06 8:18 AM
Hi Stefan,
What is the version of the ABAP you are using?
Tbh, ##NO_TEXT makes no sense with integer constants Did you try with character-like constants?
Anyway ##NEEDED with global variables works the same way. When you use it, the variables vanish from the outline view
BR,
Suhas
‎2016 Jul 06 8:31 AM
Hello Suhas,
you are right, but it makes no difference in my case, I get the hint too:
I get also the hint with ##NEEDED pragma.
I work with ABAP 7.40 SP 13.
Cheers
Stefan
‎2016 Jul 06 8:45 AM
I get also the hint with ##NEEDED pragma.The compiler warning doesn't make sense to me.
When i read the ABAP Documentation, it states & i quote,
Pragmas in front of the ":" of a chained statement apply to the whole chained statement.
Refer: ABAP Keyword Documentation
Why would the compiler complain about the positioning of the pragma before the ':'?
BR,
Suhas