Application Development 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: 

Syntax for Do statement

Former Member
0 Kudos

I have a Do statement as below and it gives me an error: COULD NOT SPECIFY THE ACCESS RANGE AUTOMATICALLY.THIS MEANS YOU NEED A RANGE ADDITION.

do max_per times varying l_fgcob-its from i0212-its01 next slctd_bplan-its02.

AM i MISSING SOME THING?

THANKS

KIRAN

2 REPLIES 2

Former Member
0 Kudos

use RANGE.



DO ... VARYING f FROM f1 NEXT f2.

For this statement, the fields f, f1, and f2 must be type-compatible with each other. To prevent memory contents being overwritten, a RANGE for valid accesses is introduced implicitly or explicitly for the following statements:

DO ... TIMES VARYING f FROM f1 NEXT f2 [ RANGE f3 ].

WHILE ... VARY f FROM f1 NEXT f2       [ RANGE f3 ].

former_member188685
Active Contributor
0 Kudos

do varying option is obsolete. Just check the F1 help and see what is wrong .

Post your coding with defintions.