‎2007 Aug 16 11:05 AM
Dear all,
I have a statement which is giving syntax error in unicode check.
<b> DO 12 TIMES VARYING wa_0041 FROM pp0041-dar01 NEXT pp0041-dar02.</b>
No syntax error i am getting with the above statement, in non-unicode program.But when i activate unicode check in attributes, i am getting below syntax error.
<b>Error</b>: <i>"PP0041-DAR01" and "WA_0041" are type-incompatible</i>.
Plz help me in rectifying this error.
points will be rewarded for the helpfull answers.
Regards,
vineel
‎2007 Aug 16 11:19 AM
Hi,
This may be a round away solution
DO # OF TIMES VARYING info-ocd
FROM MY-ocd01
NEXT MY-ocd02
VARYING info-odt
FROM MY-odT01
NEXT MY-odT02
VARYING info-otm
FROM MY-otm01
NEXT MY-otm02 .
aRs
‎2007 Aug 16 11:12 AM
Hi,
Check the data type of the " PP0041-DAR01" and "WA_0041" or same or not.
Thanks.
‎2007 Aug 16 11:20 AM
Hi
PP0041 is a table which is having structure of P0041.Total 52 fields are there in P0041. But wa_0041 is a work area which is having only 2 fields among those 52.
Those 2 fields are of type Char and Date. This is the code which will helps u for better understanding.Plz check it.
<b>FORM get_date_0041 TABLES pp0041 STRUCTURE p0041
USING pdarx LIKE p0041-dar01
CHANGING pdate LIKE p0041-dat01.
DATA: BEGIN OF wa_0041,
darxx LIKE p0041-dar01,
datxx LIKE p0041-dat01,
END OF wa_0041.
.........
.........
.........
DO 12 TIMES VARYING wa_0041 FROM pp0041-dar01 NEXT pp0041-dar02.</b>
‎2007 Sep 12 1:38 PM
‎2007 Aug 16 11:19 AM
Hi,
This may be a round away solution
DO # OF TIMES VARYING info-ocd
FROM MY-ocd01
NEXT MY-ocd02
VARYING info-odt
FROM MY-odT01
NEXT MY-odT02
VARYING info-otm
FROM MY-otm01
NEXT MY-otm02 .
aRs