Hi ,
Iam trying to generate Quarter value based on 0FISCPER. Iam implementing BADI to populate this value in report. I have created a Characteristic : ZQUAT type Numc. When I debug the BADI , iam not able to read 0FISCPER from the cube. Below is my series of declarations and compute logic.
Attributes:
P_CHA_0FISCPER Instance Attribute Public Type I
P_CHA_ZFQUARTER Instance Attribute Public Type I
Define:
When 'ZFI_C04'.
l_s_chanm-chanm = 'ZFQUARTER'.
l_s_chanm-mode = rrke_c_mode-no_selection.
APPEND l_s_chanm TO c_t_chanm.
l_s_chanm-chanm = '0FISCPER'.
l_s_chanm-mode = rrke_c_mode-read.
APPEND l_s_chanm TO c_t_chanm.
Compute:
FIELD-SYMBOLS <fs_fisc> TYPE /BI0/OIFISCPER.
FIELD-SYMBOLS <fs_quat> TYPE /BIC/OIZFQUARTER.
if P_CHA_0FISCPER > 0.
assign component P_CHA_0FISCPER of structure C_S_DATA to <fs_fisc>.
ENDIF.
if P_CHA_ZFQUARTER > 0.
assign component P_CHA_ZFQUARTER of structure C_S_DATA to <fs_quat>.
ENDIF.
If <fs_fisc>+4(3) = '004'.
<fs_quat> = 1.
endif.
This is my logic here..Iam not able to read any value into if P_CHA_0FISCPER >0. its showing '0' value here.
Any wrong declarations or assignments iam missing? Need help in this area.
regards
Sudhakar