cancel
Showing results for 
Search instead for 
Did you mean: 

LY and CY for YTD & MTD values for User Entry Variable under 0CALMONTH

vijay_velpula2
Explorer
0 Kudos

Dear All,
I need to calculate Current Year and Last Year for YTD & MTD values for a Key Figures based on the value that the User enters in the Variable under 0CALMONTH.

How we can write ABAP code to satisfy single User entry for all 4 Key figures.

Can you share the ABAP code for this requirement.


Your help will be greatly appreciated.

Regards,

Vijay

Accepted Solutions (0)

Answers (1)

Answers (1)

nora_roch
Advisor
Advisor
0 Kudos

Hi Vijay,

if you are not a programmer check out the Variable Type: Replacement by Variable.

You could use a range restriction with the user input variable and the respective replacement variable with offsets.

Cheers,

Nora