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 MOVE STATEMENT IN ECC 6.0

Former Member
0 Likes
634

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.

6 REPLIES 6
Read only

former_member404244
Active Contributor
0 Likes
577

Hi priya,

iN the program attributes remove the checking for uniocde checks.it will work.

regards,

Nagaraj

Read only

Former Member
0 Likes
577

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

Read only

Former Member
0 Likes
577

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.

Read only

0 Likes
577

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

Read only

former_member404244
Active Contributor
0 Likes
577

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

Read only

Former Member
0 Likes
577

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..