Skip to Content
0
Former Member
Oct 31, 2009 at 05:41 AM

UC_OBJECTS_NOT_CONVERTIBLE in Virtual key figure

225 Views

Hello folks

I am getting the dump in my virtual key figure code in user exit

UC_OBJECTS_NOT_CONVERTIBLE

Short text

Data objects in Unicode programs cannot be converted.

What happened?

Error in the ABAP Application Program

The current ABAP program "SAPLXRSR" had to be terminated because it has

come across a statement that unfortunately cannot be executed.

Error analysis

The statement

"MOVE src TO dst"

requires that the operands "dst" and "src" are convertible.

Since this statement is in a Unicode program, the special conversion

rules for Unicode programs apply.

In this case, these rules were violated.

********************************Here is my code***************************

field-symbols <l_zplant>.

field-symbols <l_zloc_supp>.

field-symbols <l_zloc_mfgr>.

field-symbols <l_zmanu_mat>.

field-symbols <l_zvmin_ipr>.

field-symbols <l_currency>.

assign component g_pos_ZMMDAML1_ZPLANT

of structure c_s_data to <l_zplant>.

assign component g_pos_ZMMDAML1_zloc_supp

of structure c_s_data to <l_zloc_supp>.

assign component g_pos_ZMMDAML1_zloc_mfgr

of structure c_s_data to <l_zloc_mfgr>.

assign component g_pos_ZMMDAML1_zmanu_mat

of structure c_s_data to <l_zmanu_mat>.

assign component g_pos_ZMMDAML1_zvmin_ipr

of structure c_s_data to <l_zvmin_ipr>.

assign component g_pos_ZMMDAML1_currency

of structure c_s_data to <l_currency>.

select single /BIC/ZGLB_SUPP into ZGLB_SUPP

from /BIC/PZLOC_SUPP

where /BIC/ZPLANT = <l_zplant> and

/BIC/ZLOC_SUPP = <l_zloc_supp>.

select single /BIC/ZGLB_MFGR into ZGLB_MFGR

from /BIC/PZLOC_MFGR

where /BIC/ZPLANT = <l_zplant> and

/BIC/ZLOC_MFGR = <l_zloc_mfgr>.

select /BIC/ZCOND_AMT COND_CURR

FROM /BIC/AZMMDGPB000

INTO TABLE ITAB_CONDITION

where

/BIC/ZGLB_SUPP = ZGLB_SUPP and

/BIC/ZGLB_MFGR = ZGLB_MFGR and

/BIC/ZMANU_MAT = <l_zmanu_mat> and

DATEFROM <= SY-DATUM and

DATETO >= SY-DATUM

group by

/BIC/ZGLB_SUPP /BIC/ZGLB_MFGR /BIC/ZMANU_MAT /BIC/ZCOND_AMT COND_CURR.

SORT ITAB_CONDITION BY /BIC/ZCOND_AMT COND_CURR DESCENDING.

READ TABLE ITAB_CONDITION INTO WA_CONDITION INDEX 1.

IF SY-SUBRC = 0.

<l_zvmin_ipr> = WA_CONDITION-/BIC/ZCOND_AMT.

MOVE WA_CONDITION-COND_CURR to <l_currency>.>>>>>>>ERROR STATEMENT

  • <l_currency> = WA_CONDITION-COND_CURR.

ENDIF.

REFRESH ITAB_CONDITION.

Regards

Poonam