Application Development and Automation 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: 
Read only

checking the syntax of a program

Former Member
0 Likes
3,091

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
Read only

former_member188827
Active Contributor
0 Likes
1,838

check tcode SLIN

Read only

ThomasZloch
Active Contributor
0 Likes
1,838

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

Thomas

Read only

0 Likes
1,838

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 .

Read only

0 Likes
1,838

Hi,

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

Regards,

Max

Read only

matt
Active Contributor
0 Likes
1,838

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

Read only

0 Likes
1,838

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.

Read only

matt
Active Contributor
0 Likes
1,838

>

> 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

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,838

Check fm EDITOR_SYNTAX_CHECK