cancel
Showing results for 
Search instead for 
Did you mean: 

reg syntax error in ECC6.0

mallikarjun_vaja
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

In unicode field names were not allowed with - symbol

wa-20 is not allowed

wa_20 is allowed

if you use wa-20 you will get syntax errors.

Regards,

sivachalasani.

SantoshKallem
Active Contributor
0 Kudos

is that unicode warnings u r getting?

change WS-** TO WS_**

REMOVE HYPHEN AND PLACE UNDERSCORE.

WS_10 AND WS_29 are repeating

REGARDS.

SANTHOSH

Former Member
0 Kudos

Well, for starters, you've defined a number of fields more than once.

Rob