‎2009 Nov 26 10:05 AM
Hi Experts ,
I need your help. Actually i have started working in ABAP as welll. need to know that below is the coding being done for Screen Painter and need your help in troubleshooting error. the Error is :
"Program ZSCREENPAINTER1
"TYPE LINE" or "LIKE LINE" expected, not "BEGIN". ."
coding that i have done is :
PROGRAM ZSCREENPAINTER1.
DATA : OK_CODE TYPE SY-UCOMM,
types: BEGIN OF EKPO,
EBELP TYPE EBELP,
BUKRS TYPE BUKRS,
WERKS TYPE WERKS,
MATKL TYPE MATKL,
END OF EKPO.
thanks & regards ,
M.S
‎2009 Nov 26 12:36 PM
Hi,
lot of right answers! Is your question still not answered?
Please close the thread if your problem is solved.
Regards, Dieter
‎2009 Nov 26 10:10 AM
‎2009 Nov 26 10:11 AM
Hello,
Replace ',' with '.' after the statement DATA : OK_CODE TYPE SY-UCOMM.
Data is used to declare variables and TYPES is used to declare independent types, so once your DATA statement ends put a '.'
In your code you have a comma(,) after it. Replace the comma with period and the error will be rectified.
Regards,
Sachin
‎2009 Nov 26 10:12 AM
There is a minor syntax error .
DATA : OK_CODE TYPE SY-UCOMM.
This staement should be ended with a '.' not with a comma.
‎2009 Nov 26 10:22 AM
This is a consequences when full stop is replaced by comma.
Don't do it next time.
‎2009 Nov 26 10:27 AM
just to add to all these answers..
'.' (Dot) acts as end of statement in ABAP as ';' works for C..
and ':'(colon) is used for pipeline or chaining more than one statement.. and chained statements are joined using ','(comma)
so
left side : right side1,
right side2,
right side3.
"this actually means..
left side right side1. " ends here
left side right side2. " ends here
left side right side3. " ends herehope you understand now... its BASIC abap...
‎2009 Nov 26 12:36 PM
Hi,
lot of right answers! Is your question still not answered?
Please close the thread if your problem is solved.
Regards, Dieter