Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Outline View does not show elements when using Pragma

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,553

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

4 REPLIES 4
Read only

Stefan-Schnell
Active Contributor
0 Likes
1,496

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

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,496

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

Read only

0 Likes
1,496

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

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,496
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