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.
4325
Views
ABAP Syntax-Check per Fuba?
von tmaurer » 26.04.2006 12:01 • Verfasst in ABAP® Core
8
Antw.
4056
Views
Syntax Fehler bei Ausführung
von Littlered » 25.05.2005 14:17 • Verfasst in ABAP® Core
3
Antw.
2215
Views
Syntax farbig darstellen
von Webdanny » 14.11.2005 09:27 • Verfasst in ABAP® für Anfänger
4
Antw.
2335
Views
Neue OpenSQL Syntax?
von Murdock » 04.10.2021 10:27 • Verfasst in ABAP® für Anfänger
0
Antw.
3989
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

Aktuelle Forenbeiträge

Hilfe zum FB MATERIAL_MAINTAIN_DARK
vor 23 Stunden von black_adept gelöst 8 / 1728
HR-Entgeltnachweis
Gestern von ChrisB 4 / 2289

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.

Aktuelle Forenbeiträge

Hilfe zum FB MATERIAL_MAINTAIN_DARK
vor 23 Stunden von black_adept gelöst 8 / 1728
HR-Entgeltnachweis
Gestern von ChrisB 4 / 2289

Unbeantwortete Forenbeiträge

Export von Spools in XLSX
vor 4 Tagen von abapamateur 1 / 261
Feldberechnung ME32K
vor einer Woche von ZF_SAPler 1 / 846
MS-Word als Editor
letzen Monat von tekko 1 / 4364