‎2007 Aug 14 2:51 PM
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
‎2007 Aug 14 3:22 PM
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
‎2007 Aug 14 3:22 PM
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
‎2007 Aug 14 5:09 PM
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
‎2007 Aug 14 5:14 PM
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