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
931

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

venkat_o
Active Contributor
0 Likes
661

<li>I dont know whether you get confused or you are very new to ABAP? <li>Put comma(,) after Occurs 10.

DATA: BEGIN OF tab OCCURS 10,
         sign(1),
         option(2),
         low LIKE lfa1-lifnr,
         high LIKE lfa1-lifnr,
       END OF tab.
Thanks Venkat.O

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

venkat_o
Active Contributor
0 Likes
662

<li>I dont know whether you get confused or you are very new to ABAP? <li>Put comma(,) after Occurs 10.

DATA: BEGIN OF tab OCCURS 10,
         sign(1),
         option(2),
         low LIKE lfa1-lifnr,
         high LIKE lfa1-lifnr,
       END OF tab.
Thanks Venkat.O

Read only

0 Likes
661

Thank you, Venkat. You are right, I am new in ABAP.