We're in the process of converting our programs to make them unicode compliant.
I'm having problem with one of them.
When I run UCCHECK on the program I grt the following message:-
"P0008-LGA01" and "WTYPE" are type-incompatible.
My code snippet is as follows:-
INFOTYPES: 0001, 0003, 0008, 0014. DATA: BEGIN OF wtype, lgann LIKE p0008-lga01, betnn LIKE p0008-bet01, END OF wtype. DO 20 TIMES VARYING wtype " uccheck is complaining about this line. FROM p0008-lga01 NEXT p0008-lga02. IF wtype IS INITIAL. EXIT. ELSEIF wtype-lgann IN s_lgann. MOVE 'Y' TO v_update8. MOVE wtype-lgann TO i_wagetype-lgann. MOVE sy-index TO i_wagetype-record. COLLECT i_wagetype. CLEAR i_wagetype. ENDIF. CLEAR wtype. ENDDO.
Any of you guru's got any ideas on how I can fix this to make it uncode compliant.
I would appreciate it if you could show me new code snippet based on my own code so the changes are easily identifiable.
Many thanks in advance.
In Unicode just follow the below code. The unicode error will not appear.
DO 20 TIMES
NEXT p0008-lga02 .