Application Development 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: 

checking the syntax of a program

Former Member
0 Kudos

Hi,

I have a problem , in my program (ABAP editor) i want to check the syntax line by line and then wants to show all the errors together .

like now we go to abap editor n press check button it displays only one error at a time , my requirement is to check each word and statements line by line and then display all the errors on a single screen.

Is there any function module, class or method to solve my problem.

Please provide the solution ?

8 REPLIES 8

former_member188827
Active Contributor
0 Kudos

check tcode SLIN

ThomasZloch
Active Contributor
0 Kudos

Have you tried the option "display all syntax errors" in the ABAP editor, Utilities -> Settings -> Tab "ABAP Editor"?

Thomas

0 Kudos

Hi all,

thanx for giving replies but the solutions you have provided are for automatic syntax check, i do not want automatic my requirement is to code a program where you give any program and line by line it will check all the errors not warnings and then display . It is a part of project on the basis of this logic only i can move ahead.

.Please provide some solution .

0 Kudos

Hi,

have a look at Function Module 'EXTENDED_PROGRAM_CHECK'... this might help you (it's called within TA SLIN)

Regards,

Max

matt
Active Contributor
0 Kudos

If you look through the list of ABAP commands, you'll find there is one called "SYNTAX-CHECK". Write your program using this command.

matt

0 Kudos

can you give more details on SYNTAX-CHECK

i have checked in documentation but for PROGRAM they have not explained means no example is there.

matt
Active Contributor
0 Kudos

>

> can you give more details on SYNTAX-CHECK

> i have checked in documentation but for PROGRAM they have not explained means no example is there.

Which bit didn't you understand?

Use addition PROGRAM to specify in prog the name of an existing ABAP program to use its program attributes for the syntax check

kesavadas_thekkillath
Active Contributor
0 Kudos

Check fm EDITOR_SYNTAX_CHECK