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

SAPGUI 7.40 | Syntax highlighting

michael_fallenbchel
Active Participant
0 Likes
4,041

Hi experts,

just installed the new GUI, now my ABAP editor looks like this:

Why the 'K' is red now? Seems like there's an issue with my coding, but what's wrong?

Thanks

Michael

1 ACCEPTED SOLUTION
Read only

Clemenss
Active Contributor
0 Likes
3,545

Hi Michael,

I'm not yet on 7.40, also I don't know if KNTTP is defined other than CHAR1. Also the use of a text constant 'K' may be not appreciated. Try to define CONSTANTS cg_knttp_k TYPE EBAN-KNTTP VALUE 'K' or use pragma ## no_text.

See also

SAP Note 1978560

Regards

Clemens

6 REPLIES 6
Read only

Clemenss
Active Contributor
0 Likes
3,546

Hi Michael,

I'm not yet on 7.40, also I don't know if KNTTP is defined other than CHAR1. Also the use of a text constant 'K' may be not appreciated. Try to define CONSTANTS cg_knttp_k TYPE EBAN-KNTTP VALUE 'K' or use pragma ## no_text.

See also

SAP Note 1978560

Regards

Clemens

Read only

0 Likes
3,545

Hi Clemens,

thanks for your update.

Maybe this is a solution for this, but my whole editor looks like this (the pic was only an example):

Is there something new I missed? I'm on 731...

Thanks

Michael

Read only

tino_engel2
Explorer
0 Likes
3,545

Hello,

I have the same Problem.

The editor colors lots of the source code in red.

And the bad thing is that after some red code, the code completion (strg+space) does not work anymore for this ABAP statement.

In my eyes this is a bug in the new SAP gui.

Best regards, Tino

Read only

Maxxim
Explorer
0 Likes
3,545

Hello,

commenting out the syntactical error text type in the abap_specs.xml seems to be a workaround.

The file is located in %USERPROFILE%\AppData\Roaming\SAP\SAP GUI\ABAP Editor\

BR,

Maxim

Read only

0 Likes
3,545

Hello Maxim,

For me that fixes the display of "syntax errors".

But the code completion still does not work.

Best regards, Tino

Read only

alessandroieva
Active Participant
0 Likes
3,545

Hi,

you could look at this post:

AI