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: 

Error in Syntax check in code

Former Member
0 Kudos

Hi,

We are developing a report, where we have written the following piece of code:

LOOP AT lt_kondd2.

DO.

If lv_first = "X". "1

READ TABLE lt_kotd2 WITH KEY knumh = lt_kondd2-knumh.

Else. "1

READ TABLE lt_kotd2 WITH KEY knumh = lv_smatn.

Endif.

Some Statements.

Enddo.

Some statements

Endloop.

During syntax check the above code is giving the following error:

Field "READ" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.

Please help point out what could be wrong.

Thanks,

Peter

1 ACCEPTED SOLUTION

Former Member
0 Kudos

>

>

If lv_first = "X".                                            "1

You are using double quotes (") rather than single quotes (').

Next time, do more desk checking before posting here.

Rob

3 REPLIES 3

Former Member
0 Kudos

>

>

If lv_first = "X".                                            "1

You are using double quotes (") rather than single quotes (').

Next time, do more desk checking before posting here.

Rob

0 Kudos

Thanks Rob and Amit.

Rob your suggestion was correct and it solved the problem. Need to check more thoroughly next time.

Regards,

Peter

Former Member
0 Kudos

Dont worry ...... Things like these keep happening

Anyways dont 4get the " " nxt time