cancel
Showing results for 
Search instead for 
Did you mean: 

OSS Notes : YTD. QTD Value copied from Current period Balance in Structure

Former Member
0 Kudos

Hi Friends . Please suggest if there is any OSS Notes that trace this problem , we are usinga structure which has CURRENT PERIOD BALANCE , YTD , QTD . NOW All values of CURRENT PERIOD BALance is copied to YTD and QTD, even we have defined correctly. I tried using just restricted key figure without structure same problem again

I have this YTD Customer Exit Variable with the Range option

and Code is as below. Can u tell why this is always showing the current period balance instead of YTD

WHEN 'ZVR_YTDBUD'.

if i_step = 2 or i_step = 3.

clear loc_var_range.

loop at i_t_var_range into loc_var_range.

if loc_var_range-VNAM = 'ZVMFISCPER'.

if sy-subrc = 0.

YTD_YEAR = loc_var_range-low(4).

YTD_YEARH = loc_var_range-low(7).

concatenate YTD_YEAR '001' into YTD_CURRENTYEAR.

CLEAR L_S_RANGE.

L_S_RANGE-LOW = YTD_CURRENTYEAR.

L_S_RANGE-HIGH = YTD_YEARH.

L_S_RANGE-SIGN = 'I'.

L_S_RANGE-OPT = 'BT'.

append l_s_range to e_t_range.

exit.

endif.

endif.

endloop.

endif.

Thanks

Soniya Kapoor

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Where did you define the variable for 0FISCPER which you are using in the exit ?

Make sure in the query designer the variable is in the restriction of Current period balance key figure and not in columns/free characteristics or filters.

Former Member
0 Kudos

Haven't looked at the code, but

- Why should YTD and QTD balance not be equal to current balance?

Balance is supposed to be the net existing value (in this case on the last date of the specified period) and would be the same for current period and for periods YTD and QTD.

Am I missing something?