Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

what is the difference between syntax error runtime error?

what is the difference between syntax error runtime error?

Tags:
Former Member
Former Member replied

Hello

A program with a syntax error cannot be executed.

The program with a runtime error can be executed but dumps under certain conditions.

Example: You have a division statement in your program. If for some reason the denominator becomes zero then you will get a runtime error (something like DIVISION_BY_ZERO).

Syntax errors are static error that can be detected by the compiler.

Runtime errors are dynamic error that cannot be detected by the compiler.

Regards

Uwe

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question