on 02-07-2008 5:25 PM
I posted this on BI general, but thought may be this is a better place..please respond..
Hi all, I am trying to implement a virtual char and I foolowed the how to paper from SAP...My example is a very simple one where I want to test how this concept works. What I wanted to do is to be able to assign a constnt value to the characteristic 0PLANT, but I get the following runtime error when I test the report in RSRT.
UC_OBJECTS_NOT_CONVERTIBLE - Data objects in Unicode programs cannot be converted.
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 the code I had in the method: IF_EX_RSR_OLAP_BADI~COMPUTE
method IF_EX_RSR_OLAP_BADI~COMPUTE.
field-symbols <fs_0material> type any.
field-symbols <fs_0plant> type any.
data: l_plant type /BI0/OIPLANT.
assign component p_cha_0material of structure c_s_data to <fs_0material>.
assign component p_cha_0plant of structure c_s_data to <fs_0plant>.
<fs_0plant> = l_plant.
endmethod.
I tried to search in SDN and on Service market place but could not find proper documents. Can someone help?
Also our BI system is Unicode.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok I am past the error message and can actually execute it throught RSRT, but I dont see the virtual chars being filled in the output result. I can see through debug mode that the Virtual char in this case ZMRPDATE getting a value and also c_s_data being filled with that value, but finally when it outputs the result in RSRT it shows nothing. Is there any step that I am missing??
METHOD IF_EX_RSR_OLAP_BADI~COMPUTE .
field-symbols <fs_zmrpdate> type any.
field-symbols <fs_0material> type any.
field-symbols <fs_0plant> type any.
field-symbols <fs_zberw2> type any.
data: l_plant(4) type c.
l_plant = 'ABCD'.
if p_cha_0plant is not initial.
assign component p_cha_0material of structure c_s_data to <fs_0material>.
assign component p_cha_0plant of structure c_s_data to <fs_0plant>.
assign component p_cha_zmrpdate of structure c_s_data to <fs_zmrpdate>.
assign component p_kyf_zberw2 of structure c_s_data to <fs_zberw2>.
endif.
select single /bic/zmrpdate from /bic/azpur_mdp00 into (<fs_zmrpdate>)
where
material = <fs_0material> and
plant = <fs_0plant>.
<fs_0plant> = l_plant.
<fs_0material> = l_plant.
******<fs_zmrpdate> = sy-datum.
<fs_zberw2> = '999'.
************
Write afte the above step I could see that the C_S_DATA has changed, but the output result in RSRT will not the fields filled, they are still blank!!!!!!!!!!!!!!!!
Edited by: Ram Gowda on Feb 11, 2008 11:15 AM
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.