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

syntax error:

Former Member
0 Likes
489

Hi,

for the following code i am getting the synatx error:

DESCRIBE TABLE lt_marc LINES sy-tfill.

WRITE: /0 ‘number of entries in marc:’ , 60 sy-tfill.

-


Field "‘NUMBER" is unknown. It is neither in one of the specified.

tables nor defined by a "DATA" statement.

-


i tried various options but error remains the same.

any ideas?

Raj

4 REPLIES 4
Read only

Former Member
0 Likes
441

hi,

it seems that you have copied this code from some flat file or some where else.

so remone comman from statement ‘number of entries in marc:’ and put back from keybord.

and instead of using 0 (zero) in write:/0 use some number .

reward if useful

Read only

Former Member
0 Likes
441

Hi,

Try this code..

Data: Var like sy-tfill.

DESCRIBE TABLE lt_marc LINES var.

WRITE: /1 ‘number of entries in marc:’ , 60 var.

Hope it helps..

Regards,

Chithra

Edited by: Chithra Saravanan on May 2, 2008 9:28 PM

Read only

Former Member
0 Likes
441

Hi,

2 problems with your code...

1) The single quote marks ' in your code is not the correct quote mark... try re-entering them...

2) /0 is not a valid column position... use /1

WRITE: /1 'number of entries in marc:', 60 sy-tfill.

Dave...

Read only

vinod_vemuru2
Active Contributor
0 Likes
441

Hi Raj,

Check this statement.

DESCRIBE TABLE lt_marc LINES sy-tfill.

U are trying to fill system variable in describe table. This is not required.

When u execute describe table it will automatically fills the system variables. Second thing is WRITE:/0 even though it is syntactically correct generally we will start at position1.

So Do like below.

DESCRIBE TABLE lt_marc.

WRITE: /1 ‘number of entries in marc:’ , 60 sy-tfill.

It will solve ur problem.

Thanks,

Vinod.