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: 

How to check syntax errors in ABAP Queries

Former Member
0 Kudos

HI Guys,

How to check syntax errors in ABAP queries, Can please provide the T-Codes.

Advande thanks to everybody.

Thanks,

Gourisankar

7 REPLIES 7

Former Member
0 Kudos

hI,

In SE38 screen just press CTRL + F2.

Thanks.

0 Kudos

It is saying "Does not exit"

thanks,

gourisankar

0 Kudos

Hi,

If your program doen't contain any error means, Its saying Information like "Your Program is Suntatically correct".

Thanks.

0 Kudos

HI,

Can we check syntax errors in ABAP queries itself.

Thanks,

Gourisankar

0 Kudos

Hi,

please check the link

http://www.sap-img.com/abap/what-is-sap-queries.htm

Thanks.

0 Kudos

Hi

with these you can check syntax errors and performance points

Hi

these all are doing t he same thing that is checking the program for better performance

Tools for Performance Analysis

Run time analysis transaction SE30

SQL Trace transaction ST05

Extended Program Check (SLIN)

Code Inspector ( SCI)

Run time analysis transaction SE30 :This transaction gives all the analysis of an ABAP program with respect to the database and the non-database processing.

SQL Trace transaction ST05: The trace list has many lines that are not related to the SELECT statement in the ABAP program. This is because the execution of any ABAP program requires additional administrative SQL calls. To restrict the list output, use the filter introducing the trace list.

The trace list contains different SQL statements simultaneously related to the one SELECT statement in the ABAP program. This is because the R/3 Database Interface - a sophisticated component of the R/3 Application Server - maps every Open SQL statement to one or a series of physical database calls and brings it to execution. This mapping, crucial to R/3s performance, depends on the particular call and database system. For example, the SELECT-ENDSELECT loop on a particular database table of the ABAP program would be mapped to a sequence PREPARE-OPEN-FETCH of physical calls in an Oracle environment.

The WHERE clause in the trace list's SQL statement is different from the WHERE clause in the ABAP statement. This is because in an R/3 system, a client is a self-contained unit with separate master records and its own set of table data (in commercial, organizational, and technical terms). With ABAP, every Open SQL statement automatically executes within the correct client environment. For this reason, a condition with the actual client code is added to every WHERE clause if a client field is a component of the searched table.

To see a statement's execution plan, just position the cursor on the PREPARE statement and choose Explain SQL. A detailed explanation of the execution plan depends on the database system in use.

Extended Program Check

This can be called in through transaction SE38 or through transaction SLIN. This indicates possible problems that may cause performance problems.

Code Inspector (SCI)

You can call the Code Inspector from the ABAP Editor (SE38), the Function Builder (SE37), the Class Builder (SE24), or as a separate transaction (SCI).

The Code Inspector indicates possible problems. However, note that, especially with performance issues: There is no rule without exception. If a program passes an inspection, it does not necessarily mean that this program will have no performance problems.

reward if usefull

Former Member
0 Kudos

Hi Gourisankar,

Goto your coding, press CTRL + F3.

You will get a message in a dialog box , if there are errors.

Else , your program will get activated.

Reward if Useful.

Regards,

Chitra