on 01-28-2008 1:11 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, for starters, you've defined a number of fields more than once.
Rob
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
14 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.