‎2007 Jan 11 7:27 PM
I posted in BI General first but i think that the post belong to Abap forum,,,,
Hi we have the following error in runtime: uc_objects_not_convertible
The characteristic zmater_ds was created a reference of 0material
The code is:
ZXRSRU02:
l_s_chanm-chanm = '0MATERIAL'.
l_s_chanm-chanm = rrke_c_mode-read.
append l_s_chanm to e_t_chanm.
l_s_chanm-chanm = 'ZMATER_DS'.
l_s_chanm-chanm = rrke_c_mode-read.
append l_s_chanm to e_t_chanm.
ZXRSRTOP:
data: g_pos_0ic_c03_0material type i.
data: g_pos_0ic_c03_zmater_ds type i.
ZXRSRZZZ:
field-symbols <l_0material>.
field-symbols <l_zmater_ds>.
assign component g_pos_0ic_c03_0material
of structure c_s_data to <l_0material>.
assign component g_pos_0ic_c03_zmater_ds
of structure c_s_data to <l_zmater_ds>.
if <l_0material> = 'SO0001' or <l_0material> = 'GRSO001'.
<l_zmater_ds> = 'GRSO001'.
else.
if <l_0material> = 'GI0001' or <l_0material> = 'GRGI001'.
<l_zmater_ds> = 'GRGI001'.
else.
<l_zmater_ds> = <l_0material>. <<<<<< here is the dump
endif.
endif.
Thanks In Advance
Regards
Juan
‎2007 Jan 11 7:32 PM
Hi
Try to use MOVE instead of =.
MOVE statament should convert the data, anyway you should make sure those field have the data type.
Max
‎2007 Jan 11 8:04 PM
‎2007 Jan 12 12:27 PM