cancel
Showing results for 
Search instead for 
Did you mean: 

curent period calculation

Former Member
0 Kudos

gUYS

I am trying to calcualte amounts which is for that whole year from when user enter the value

say user enter as 06-2007 ...then i want to calculate all value from 06- 01 ..2007 and similarly if they enter 10-2007 ...then i want all cumulated value to the begining of the year... that is 10-2007 to 01-2007

is there ant sap customer exit available?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Create user entry variable on 0CALMONTH then create a

restricted key figure with 0CALMONTH (# Not assigned -

0CALMONTH variable). This fulfills your requirement.

Prasad

Former Member
0 Kudos

Create a customer exit variable, named WYTENT.

Let say the upper value (entered by the user) will be entered in a single mandatory variable, named WVO_MTHS

and code this into the ZXRSRU01program.

  when 'WYTENT'.

    if I_step = 2.

      loop at I_T_VAR_RANGE into loc_var_range
      where vnam = 'WVO_MTHS'.

        clear l_s_range.

        concatenate loc_var_range-low(4) '01' into l_s_range-low.
        move loc_var_range-low to l_s_range-high.

        l_s_range-sign = 'I'.
        l_s_range-opt = 'BT'.

        append l_s_range to e_t_range.
        exit.

      endloop.

    endif.

Former Member
0 Kudos

hi prasad

i didn't understand (# Not assigned - ?

where this value will be?

does this give me cumulated value from jan to user entered month?

Former Member
0 Kudos

Hi,

Yes it will give cumulated value.if user enters 5 then it will show the values from 0-5.

Prasad

Former Member
0 Kudos

prasad

i tried to pick date range between #notassigned value and the variable which populated with user entered date . but it is giving me error as select proper value for 0calmonth

i assume its not recognised # value.

you saying # assigned value is always first month of the the year of 0calmonth?

Former Member
0 Kudos

Hi,

There is no standart exit for YTD calculation.Please check the doc below that is telling how to do YTD calculation.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/25d98cf6-0d01-0010-0e9b-edcd4597...

Regards.

Former Member
0 Kudos

thanks for the NOTE.bUT I am trying to use 0calmonth (just month and year) to get YTD calculation. is there any way i can determine without any exit?