syntax-check command

ABAP, Java, BSP, etc.
4 Beiträge • Seite 1 von 1
4 Beiträge Seite 1 von 1

syntax-check command

Beitrag von technocrat ( / / 0 / 3 ) »
Hi,

I have to write a report to conduct a syntax check on the custom program selected through the selection screen and capture all the errors in the program including the line numbers for the errors.

I have tried using the 'syntax-check' command however it will capture only the first error in the program.

Can someone help me with the same and let me know if there is any other command that can be used or any other alternative.

Thanks in advance.

gesponsert
Stellenangebote auf ABAPforum.com schalten
kostenfrei für Ausbildungsberufe und Werksstudenten


Beitrag von Frank Dittrich (Expert / 674 / 0 / 15 ) »
It is possible to capture all errors.
But it doesn't make much sense, because the syntax checker usually gets so confused by the first error that all subsequent error messages should better be ignored until you fix the first one.

syntax-check command

Beitrag von technocrat ( / / 0 / 3 ) »
Hello Frank,

Thank you for your immediate reply. I would agree with you on your reply however I would be grateful if you can let me know the procedure for capturing all the errors including the line numbers as this is for an upgrade tool that we are developing and what we need is a rough idea to make the assessment of the system.

Thanks and Regards.

Beitrag von Frank Dittrich (Expert / 674 / 0 / 15 ) »
In SY-SAPRL 6.20, it's mentioned in the documentation (press F1 on SYNTAX-CHECK).
It's not documented in release 4.x .
In 4.6B I've encountered several bugs when searching for all errors (instead of just the first error).
I didn't check whether all the bugs I discovered in 4.6 have been fixed in 6.20.
this is for an upgrade tool that we are developing and what we need is a rough idea to make the assessment of the system
Are you planning an update?
From/to which SY-SAPRL?

Or do you want to sell a general purpose update tool?
Wich releases do you want to support?

A SYNTAX-CHECK which displays all errors is not at all useable for your purpose, because it's poorly implemented.
(Much worse than what you might expect if you compare the results with the diagnostics of a C compiler.)
There are better options than a syntax check.

Seite 1 von 1

Vergleichbare Themen

9
Antw.
4098
Views
ABAP Syntax-Check per Fuba?
von tmaurer » 26.04.2006 12:01 • Verfasst in ABAP® Core
8
Antw.
3740
Views
Syntax Fehler bei Ausführung
von Littlered » 25.05.2005 14:17 • Verfasst in ABAP® Core
3
Antw.
2061
Views
Syntax farbig darstellen
von Webdanny » 14.11.2005 09:27 • Verfasst in ABAP® für Anfänger
4
Antw.
2030
Views
Neue OpenSQL Syntax?
von Murdock » 04.10.2021 10:27 • Verfasst in ABAP® für Anfänger
0
Antw.
3576
Views
Syntax Fehler nach update über SPAM
von Franzman1981 » 03.06.2008 10:29 • Verfasst in Exchange Infrastructure

Über diesen Beitrag


Unterstütze die Community und teile den Beitrag für mehr Leser und Austausch

Newsletter Anmeldung

Keine Beiträge verpassen! Wöchentlich versenden wir lesenwerte Beiträge aus unserer Community.
Die letzte Ausgabe findest du hier.
Details zum Versandverfahren und zu Ihren Widerrufsmöglichkeiten findest du in unserer Datenschutzerklärung.

Unbeantwortete Forenbeiträge

Daten an Tabelle binden
vor 2 Tagen von Bright4.5 1 / 620
aRFC im OO-Kontext
vor 4 Wochen von ralf.wenzel 1 / 2248
Hilfe bei SWEC/SWE2
letzen Monat von retsch 1 / 8837