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

Error in UNICODE system

Former Member
0 Likes
590

Dear ABAPers,

I am working in the Upgrade Project.In our project we are moving all the objects from SAP4.6c to ECC6.0.

When i am moving one program from SAP4.6 c to ECC6.0 i am getting the following error message.

DATA : WORKOUT(5000).

DATA : BAPISDITM LIKE TABLE OF BAPISDITM WITH HEADER LINE.

MOVE WORKOUT TO BAPISDITM.

This is the Error message.

"BAPISDITM and WORKOUT are not mutually convertable in unicode program".

But the program is working fine in the SAP4.6C.

It is very critical Please help me.

Thanks & Regards,

Ashok.

4 REPLIES 4
Read only

Former Member
0 Likes
565

Try this:

Field-symbols <FS> type C .

ASSIGN WORKOUT TO <FS> CASTING TYPE C.

BAPISDITM = <FS>.

Read only

Peter_Inotai
Active Contributor
0 Likes
565

Hi Ashok,

The problem is that structure BAPISDITM contains also non-char fields.

Can you try the following? it depends also what should be the logic of the program from functional point of view:

DATA : workout TYPE bapisditm.
DATA : bapisditm TYPE TABLE OF bapisditm WITH HEADER LINE.

MOVE workout TO bapisditm.

Best regards,

Peter

Read only

rahulkavuri
Active Contributor
0 Likes
565

hi I have a solution to your problem, I know its late but may be it will help others who might be facing similar errors.

you are trying to move character type structure WORKOUT TO BAPISDITM which has fields such as QUANTITY and UNIT which arent character. So thats the error you are facing.

To resolve this you need to move the workout to BAPISDITM by using offset.

BAPISDITM-ITM_NUMBER = workout+0(6).

Read only

Former Member
0 Likes
565

internal tables with header lines are allowed in ECC 6.0

try this if it works

DATA : WORKOUT(5000).
DATA : BAPISDITM LIKE TABLE OF BAPISDITM ,
            wa_BAPISDITM  type BAPISDITM. 

MOVE WORKOUT TO wa_BAPISDITM.