Application Development 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: 

uc_objects_not_convertible runtime error :-(

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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

Former Member
0 Kudos

tkanks max but not work

Regards

Juan

Former Member
0 Kudos

Nobody?

Juan