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 syntax error: Comma without preceding colon (after ?)

richard_m2
Explorer
0 Likes
1,902

Hi,

I am getting syntax error during data declaration, can someone give input on what the error means?

Error: Comma without preceding colon (after SIGN(1) ?).

*This is part of the program:*

DATA: Begin of TAB occurs 10.

sign(1),

option(2),

low like lfa1-lifnr,

high like lfa1-lifnr,

End of TAB.

Thanks.

1 ACCEPTED SOLUTION
Read only

former_member156446
Active Contributor
0 Likes
1,263
DATA: Begin of TAB occurs 10,
sign(1),
option(2),
low like lfa1-lifnr,
high like lfa1-lifnr,
End of TAB.

or

data: ra_tab type standard table of selopt.

Hi,

I am getting syntax error during data declaration, can someone give input on what the error means?

Error: Comma without preceding colon (after SIGN(1) ?).

*This is part of the program:*

DATA: Begin of TAB occurs 10.

sign(1),

option(2),

low like lfa1-lifnr,

high like lfa1-lifnr,

End of TAB.

Thanks.

2 REPLIES 2
Read only

former_member156446
Active Contributor
0 Likes
1,264
DATA: Begin of TAB occurs 10,
sign(1),
option(2),
low like lfa1-lifnr,
high like lfa1-lifnr,
End of TAB.

or

data: ra_tab type standard table of selopt.

Read only

0 Likes
1,263

Thank you, Jay. This is duplicate message posting, the issue is resolved. I put period instead of comma.