Question:
I am downloading a set of records from an infocube into the local file. I have an amount field in the source structure. I want an additional column in the file where the amount is multiplied with 100.
So I have added a new field in the target structure and I have written the code in the TRANSFORM method.
But it is not downloading the added column in the file. Should I making changes else were too. Kindly advice.
Here is the code which I done.
clear e_t_data_out.
loop at i_t_data_in into l_s_data_in.
move-corresponding l_s_data_in to l_s_data_out.
l_s_data_out-zcalamount = l_s_data_in-amount * 100.
insert l_s_data_out into table e_t_data_out.
endloop.'
Thanks.
Answer:
clear e_t_data_out.
loop at i_t_data_in into l_s_data_in.
move-corresponding l_s_data_in to l_s_data_out.
l_s_data_out-zcalamount = l_s_data_out-amount * 100.
insert l_s_data_out into table e_t_data_out.
endloop.'
this should work...
Answer:
It is the same story. I am getting the additional column in the file.
clear e_t_data_out.
loop at i_t_data_in into l_s_data_in.
move-corresponding l_s_data_in to l_s_data_out.
l_s_data_out-zcalamount = l_s_data_out-amount * 100.
insert l_s_data_out into table e_t_data_out.
endloop.'
I tried by
clear e_t_data_out.
loop at i_t_data_in into l_s_data_in.
move-corresponding l_s_data_in to l_s_data_out.
l_s_data_out-zcalamount = l 100.
insert l_s_data_out into table e_t_data_out.
endloop.'
Still the column is not getting downloaded. Are we missing something?