05-18-2006 10:00 AM
Hello All,
We are facing a strange problem in simple abap program.
Following is the program .
PROGRAM DEMO_ELEMENTARY_DATA_OBJECTS.
DATA NCK1(40) type c .
NCK1 = THE.
WRITE NCK1.
When we try to check the program system throws error message stating
"Program ZNTEST Field "THE" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement."
Please let us know the cause of the problem.
Thank you.
Regards
Nimesh
05-18-2006 10:06 AM
Hi Nimesh,
Please copy your code into a notpad file and check it. The single quote used in 'the' will look diffrent. Change it in the note pad and copy the code into your ABAP editor. This will sovle your problem. We are also facing the same problem from few days.
Thanks and Regards,
Bharat Kumar Reddy.V
Message was edited by: Bharat Kumar Reddy Vaka
05-18-2006 10:04 AM
Hi Nimesh,
I think there is some special character coming for some reason. Delete the line NCK1 = 'THE' and re-write the same code and then try to activate.
I've done it on my system and its working.
regards,
Satyadev Dutta
05-18-2006 10:06 AM
Hi Nimesh,
Please copy your code into a notpad file and check it. The single quote used in 'the' will look diffrent. Change it in the note pad and copy the code into your ABAP editor. This will sovle your problem. We are also facing the same problem from few days.
Thanks and Regards,
Bharat Kumar Reddy.V
Message was edited by: Bharat Kumar Reddy Vaka
05-18-2006 10:06 AM
Hi Nimesh,
i have copy your code and it looks like this:
PROGRAM DEMO_ELEMENTARY_DATA_OBJECTS.
DATA NCK1(40) type c .
NCK1 = THE.
WRITE NCK1.
Line 3 is a Mistake, it should be:
NCK1 = 'THE'. (sign ' obove the #).
Hope i can help you.
Regards, Dieter
05-18-2006 10:06 AM
Check there is tow statement of
Program <b>ZNTEST</b> Field
PROGRAM <b>DEMO_ELEMENTARY_DATA_OBJECTS</b>.
Change first statement report proceeding with ur report name.
regards
vinod
05-18-2006 10:07 AM
Hi nimesh,
1. THE.
is creating the problem.
2. <b>The QUOTES are incorrect.</b>
3. It should be (')
(the key on the left of ENTER key)
regards,
amit m.
05-18-2006 10:07 AM
Hi,
it is because of the quote you are using.
now check this..
'THE' is different than you code.
PROGRAM DEMO_ELEMENTARY_DATA_OBJECTS.
DATA NCK1(40) type c.
NCK1 = 'THE'.
WRITE NCK1.
regards
vijay
05-18-2006 10:13 AM
Hi Bharat Kumar Reddy
You got me right.
Problem solved.
Thanks.
Regards
Nimesh
05-18-2006 10:18 AM
Hii
there's a problem with your <b>'</b> (colon)
DATA NCK1(40) type c .
NCK1 = 'THE'.
WRITE NCK1.
copy and paste this code..it will work
Regards
Naresh