Skip to Content
0
Former Member
Feb 21, 2008 at 04:50 AM

Unicode - Valid area exceeded while executing DO...VARYING or WHILE...VARY.

53 Views

Hello experts,

While making one of my reports unicode compatible, i was asked to include range in addition to while or do stmts if it uses vary. But if i define like that, it leads to a run-time error DO_WHILE_VARY_NOT_IN_RANGE.

I tried with the below code.

DATA: BEGIN OF WORD,

ONE VALUE 'E',

TWO VALUE 'x',

THREE VALUE 'a',

FOUR VALUE 'm',

FIVE VALUE 'p',

SIX VALUE 'l',

SEVEN VALUE 'e',

EIGHT VALUE '!',

END OF WORD,

LETTER1, LETTER2.

DO VARYING LETTER1 FROM WORD-ONE NEXT WORD-THREE range word.

WRITE: LETTER1.

ENDDO.

Regards,

Vijayalakshmi