Skip to Content
0
Jan 28, 2008 at 01:11 PM

reg syntax error in ECC6.0

26 Views

hi,

Iam getting syantax error for this small code in ECC 6.0.

plz help in solving this.

here is the full code.

DATA: WS-01(1) TYPE C VALUE '1',

WS-02(1) TYPE C VALUE '2',

WS-03(1) TYPE C VALUE '3',

WS-04(1) TYPE C VALUE '4',

WS-05(1) TYPE C VALUE '5',

WS-06(1) TYPE C VALUE '6',

WS-07(1) TYPE C VALUE '7',

WS-08(1) TYPE C VALUE '8',

WS-09(1) TYPE C VALUE '9',

WS-10(1) TYPE C VALUE 'A', "Omit letter 'A'

WS-10(1) TYPE C VALUE 'B',

WS-11(1) TYPE C VALUE 'C',

WS-12(1) TYPE C VALUE 'D',

WS-14(1) TYPE C VALUE 'E', "Omit letter 'E'

WS-13(1) TYPE C VALUE 'F',

WS-14(1) TYPE C VALUE 'G',

WS-15(1) TYPE C VALUE 'H',

WS-18(1) TYPE C VALUE 'I', "Omit letter 'I'

WS-16(1) TYPE C VALUE 'J',

WS-17(1) TYPE C VALUE 'K',

WS-18(1) TYPE C VALUE 'L',

WS-19(1) TYPE C VALUE 'M',

WS-20(1) TYPE C VALUE 'N',

O TYPE N VALUE '24', "Omit letter 'O'

WS-21(1) TYPE C VALUE 'P',

WS-22(1) TYPE C VALUE 'Q',

WS-23(1) TYPE C VALUE 'R',

WS-24(1) TYPE C VALUE 'S',

WS-25(1) TYPE C VALUE 'T',

WS-29(1) TYPE C VALUE 'U', "Omit letter 'U'

WS-26(1) TYPE C VALUE 'V',

WS-27(1) TYPE C VALUE 'W',

WS-28(1) TYPE C VALUE 'X',

WS-29(1) TYPE C VALUE 'Y',

WS-30(1) TYPE C VALUE 'Z',

WS-31(1) TYPE C VALUE '0',

NUM_LENGTH TYPE N VALUE '8'. " Length of stored no.

DATA : MAX_VAL(2) TYPE N VALUE '31'.

DATA: BEGIN OF NUM_TAB OCCURS 35,

CHAR(1) TYPE C,

VAL LIKE SY-INDEX,

END OF NUM_TAB.

initializes internal table with character values from data

DO MAX_VAL TIMES VARYING CHAR FROM WS-01 NEXT WS-02 .

MOVE: CHAR TO NUM_TAB-CHAR,

SY-INDEX TO NUM_TAB-VAL.

APPEND NUM_TAB.

ENDDO.

regards

vaja