Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem in Unicode programs

Former Member
0 Likes
606

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

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
577

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

4 REPLIES 4
Read only

Former Member
0 Likes
577

Hi,

Check the data type of the " PP0041-DAR01" and "WA_0041" or same or not.

Thanks.

Read only

0 Likes
577

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>

Read only

0 Likes
577

Simply you re write the question!

Answer ?

Read only

former_member194669
Active Contributor
0 Likes
578

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