‎2007 May 03 8:08 AM
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.
‎2007 May 03 8:20 AM
Try this:
Field-symbols <FS> type C .
ASSIGN WORKOUT TO <FS> CASTING TYPE C.
BAPISDITM = <FS>.
‎2007 May 03 8:31 AM
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
‎2007 May 07 12:13 PM
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).
‎2007 May 07 12:17 PM
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.