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

Unicode MESSAGEG!3 error

Former Member
0 Likes
629

Hi,

I am doing unicode conversion of SAP programs.

For the below code, I am getting error <b>"LS_RGUMD-RECORD_KEY" and "LS_GLU1" are not mutually convertible in a Unicode program</b>."

DATA : LS_RGUMD type RGUMD.

DATA : LS_GLU1 type GLU1.

LS_RGUMD-RECORD_KEY = LS_GLU1.

LS_RGUMD-RECORD_KEY is char1900 and GLU1 is the structure with fields like char, cuky, numc etc.

Please help to address the issue.

Thanks,

Yogita

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
513

Hi ,

U cannot move a structure GLU1 directly to varaible RGUMD.

instaed u concatenate the value in the GLU1 structure into the varaible ,,,

i.e

Conactenate LS_GLU1-char LS_GLU1-cuky LS_GLU1-numc,,, into LS_RGUMD .

If there is more than one record , then u need to Loop the above statement.

Rveret back if any issues,

Reward with points if helpful.

Regards,

Naveen

3 REPLIES 3
Read only

Former Member
0 Likes
514

Hi ,

U cannot move a structure GLU1 directly to varaible RGUMD.

instaed u concatenate the value in the GLU1 structure into the varaible ,,,

i.e

Conactenate LS_GLU1-char LS_GLU1-cuky LS_GLU1-numc,,, into LS_RGUMD .

If there is more than one record , then u need to Loop the above statement.

Rveret back if any issues,

Reward with points if helpful.

Regards,

Naveen

Read only

Former Member
0 Likes
513

Hi Yogita,

write in this way,

data ls_rgumd type rgumd.

data ls_glu1 type glu1.

*create new structure ls_glu1_c

*with all the fields type c and length of the as in structure glu1

*like i have shown below.

type begin of ls_glu1_c,

RCLNT(3),

RLDNR(2),

RRCTY(1),

.

.

end of ls_glu1_c.

*now pass the ls_glu1 structure to ls_glu1_c.

ls_glu1_c = ls_glu1.

*then

LS_RGUMD-RECORD_KEY = LS_GLU1.

try this way it should help you.

Ali

Read only

Former Member
0 Likes
513

Hi Yogita,

write in this way,

data ls_rgumd type rgumd.

data ls_glu1 type glu1.

*create new structure ls_glu1_c

*with all the fields type c and length of the as in structure glu1

*like i have shown below.

type begin of ls_glu1_c,

RCLNT(3),

RLDNR(2),

RRCTY(1),

.

.

end of ls_glu1_c.

*now pass the ls_glu1 structure to ls_glu1_c.

ls_glu1_c = ls_glu1.

*then

LS_RGUMD-RECORD_KEY = LS_GLU1_C.

try this way it should help you.

Ali