Skip to Content
author's profile photo
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Posted on Sep 27, 2007 at 09:10 PM

    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?

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 27, 2007 at 09:18 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded