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

ABAP COMPILATION ERROR

Former Member
0 Likes
710

Hi,

I am running the following code in abap editor

DATA: LEN TYPE I VALUE 10,

POS TYPE I VALUE 11,

TEXT(10) VALUE ‘1234567890’

WRITE AT POS (LEN) TEXT .

Following error i am getting when i compile

Field "1234567890" is unknown. It is neithere in on of the specified tables nor defined by a DATA statement.

Could you please let me know the solution.

Thanks,

RamuV

3 REPLIES 3
Read only

Former Member
0 Likes
579

hi,

You missed '.' at the end of ‘1234567890’. Place this to avoid the error.

DATA: LEN TYPE I VALUE 10,

POS TYPE I VALUE 11,

TEXT(10) VALUE ‘1234567890’.

WRITE AT POS (LEN) TEXT .

Read only

Former Member
0 Likes
579

Hi

declaration is not having full point and '.' is missing

DATA: LEN TYPE I VALUE 10,

POS TYPE I VALUE 11,

TEXT(10) VALUE ‘1234567890’.

WRITE AT POS (LEN) TEXT .

Check this

regards

shiva

Read only

Former Member
0 Likes
579

There appear to be some garbage characters in this line and your WRITE is incorrect. Cut and paste this:

DATA: len TYPE i VALUE 10,
      pos TYPE i VALUE 11,
      text(10) VALUE '1234567890'.

WRITE AT pos(len) text .

Rob