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

syntax error. SAP 3.1 version -> ECC6

Former Member
0 Likes
325

Friends,

Following statement given syntaxt error in ECC6.

It is working fine in SAP 3.1.

I need to copy the code from SAP 3.1 to ECC6.

DO VARYING l_char FROM l_text2+99

NEXT l_text2+98.

Please help me in this regard ASAP.

Thanks in advance.

2 REPLIES 2
Read only

Former Member
0 Likes
301

I was able to get the following to work:

DO 100 TIMES VARYING l_char FROM l_text99(1) NEXT l_text98(1) RANGE l_text.

...

ENDDO.

I had to add the "100 TIMES" or the loop continued beyond the range of the variable and short-dumped.

Hope this helps,

Mark S.

Read only

Former Member
0 Likes
301

What is the syntax error it is giving....?