‎2006 Dec 19 4:33 AM
hi EXPERTS,
THE FOLLOWING CODE WORKS FINE IN 4.6C BUT IN ECC 6.0 THE MOVE STATEMENT AT THE END THROWS ERROR.
""INNNN" and "I0008" are not mutually convertible. In Unicode systems, "INNNN" must have the same structure layout (fragment view) as"I0008", regardless of the length of the Unicode character."
DATA: i0001 LIKE p0001 OCCURS 0 WITH HEADER LINE,
i0008 LIKE p0008 ,
innnn like PRELP.
SELECT * INTO CORRESPONDING FIELDS OF TABLE i0001
FROM pa0001
WHERE begda <= 20061201
AND endda >= 20061201
AND pernr = 00014442 .
READ TABLE i0001 INDEX 1.
i0008-trfgr = i0001-persk.
CASE i0001-persg.
WHEN '4'.
i0008-trfst = i0001-persg.
WHEN '7'.
i0008-trfst = i0001-persg.
WHEN '8'.
i0008-trfst = i0001-persg.
WHEN OTHERS.
i0008-trfst = '1' .
ENDCASE.
MOVE i0008 TO innnn.
I'VE ALSO CHECKED THE SAME PROGRAM IN DEBUGGER IN 4.6C.
I'VE FOUND THAT THE VALUES FOR i0008-trfgr i0008-trfst ARE TOGETHER STORED IN THE FIELD DATA1 OF INNNN. BUT THIS DOES NOT HAPPEN IN ECC 6.0.
PLEASE HELP.
ITS URGENT.
‎2006 Dec 19 4:37 AM
Hi priya,
iN the program attributes remove the checking for uniocde checks.it will work.
regards,
Nagaraj
‎2006 Dec 19 4:39 AM
Hi ,
If you look at the structure of i0008 and innnn they are differeent , i0008 has many more fileds than innnn , so insted of move use move corresponding.
Hope this helps , if not please revert back.
Regards
Arun
‎2006 Dec 19 5:00 AM
I CAN'T CHANGE THE ATTRBUTES AS IT IS A USER EXIT AND MOREOVER DOES NOT HAVE ANY CHECKBOX FOR UNICODE CHECK.
I' VE TRIED WITH MOVE CORRESPONDING BUT IT STILL DOESNOT WORK.
PLEASE SUGGEST SOMETHING ELSE.
‎2006 Dec 19 5:11 AM
Hi Priya ,
Could you please compare whether the structure of both the structure are the same or not in ECC system.
If they are same one method would be try to move each field one by one and see where does the incompatibility occure.
Regards
Arun
‎2006 Dec 19 5:07 AM
Hi priya,
DATA: i0001 LIKE p0001 OCCURS 0 WITH HEADER LINE,
i0008 LIKE p0008 ,
declare innnn like this and check
innnn like p008.
regards,
Nagaraj
‎2006 Dec 19 5:09 AM
hello priya,
instead of select * ,pls choose the only concerned field which u want to fetch and then use corresponding clause..
hope it wil help..