10-09-2013 3:02 PM
HI Folks,
Implemented several enhancement but never got this type issue.
There is a implicit enhancement present at the top include in a type declaration shown below. If I implement that enhancement, then code below that gets into RED.
I am able to declare additional fields to that TYPES with below syntax :
TYPES : MATNR TYPE MATNR.
If I activate the program,it gets activated,But do not have any idea why it is RED
Is it a problem ? Any Idea on this ? Or is there any other procedure to declare additional fields to the TYPES in a standard program
Thanks in advance
Regards
Ansumesh
10-09-2013 3:11 PM
No problem, the program can be activated, but the Abap editor has some "difficulties" to format the statement broken by the enhancement as it was inserted in the middle of a single statement.
Regards,
Raymond
10-09-2013 3:17 PM
Thanks for your quick response.
You mean to say, it is not a problem and it will not lead to any DUMP.
I need one more info. While we implement implicit by Right Click->Create Implementation.. . apart from CODE, we also get DECLARATION in the pop-up screen
What is that actually ?
Regards
Ansumesh
10-09-2013 3:31 PM
The syntax highlighting of ABAP code happens on presentation server based on some simple rules.
Rules have list of keywords, multi-line statements etc.
The red color only indicates violation of one of the rules on presentation server, and it does not necessarily mean a syntax error.
One such example would be to write "select a from b into table c." and press enter.
Although this statement does not need endselect, the new ABAP Editor auto-indents the next line, suggesting that endselect is also required.
10-09-2013 4:02 PM
Declaration when you add some declaration (DATA) and code for code statements (MOVE)
Regards,
Raymond