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 : Screen Painter error

former_member574967
Participant
0 Likes
1,160

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
857

Hi,

lot of right answers! Is your question still not answered?

Please close the thread if your problem is solved.

Regards, Dieter

6 REPLIES 6
Read only

Former Member
0 Likes
857

Hi,

after SY_UCOMM set point NOT comma.

Regards, Dieter

Read only

Former Member
0 Likes
857

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

Read only

Former Member
0 Likes
857

There is a minor syntax error .

DATA : OK_CODE TYPE SY-UCOMM.

This staement should be ended with a '.' not with a comma.

Read only

Former Member
0 Likes
857

This is a consequences when full stop is replaced by comma.

Don't do it next time.

Read only

Former Member
0 Likes
857

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 here

hope you understand now... its BASIC abap...

Read only

Former Member
0 Likes
858

Hi,

lot of right answers! Is your question still not answered?

Please close the thread if your problem is solved.

Regards, Dieter