cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with this scenario....

Former Member
0 Kudos

Hi, here I want the out amount to be calculated with the variable ranges..

I attached the report output.

I took doc.no and doc.date in column,

restricted doc.date with current day ( date changed to  05.05.2006)

2 variables as manual entry, 2 variables as customer exit.

with those manual entry variables i calculated different dates for 2 customer exit variables using ABAP

everything is going fine till here.

when i drag amount in a selection n restrict it with range of customer exit variables in doc.date

the output does not shows the value for the range

its just show the output  for the particular date 

dates

05.05.2006

05.04.2006

i want the output to show the total sum of amount for 30 days (or the no. which user enters)

Accepted Solutions (0)

Answers (1)

Answers (1)

yasemin_kilinc
Active Contributor
0 Kudos

Hi Praveen,

Please change date as constant selection in your selection key figure.(also add the variables for that date range)

Regards

Yasemin...

Former Member
0 Kudos

thanks,but the output is the same

Former Member
0 Kudos

Hi Praveen,

i think, first you have to remove the document date drill down.

also, since you are restricting the document date = 05.05.2006,it always tries to fetch data from backend only for thsi date. you need to modify this filter at runtime, to fetch the date ranges according to your KF requirements.

eg. the first KF wants data from 01.05.2006 - 05.05.2006 and the second KF for 06.06.2006 - 08.06.2006

.you need to modify the documetn date restriction to 01.05.2006 - 08.06.2006

regards,

Sakthi

Former Member
0 Kudos

thanks, but this time no data at output

Former Member
0 Kudos

Hi Praveen,

i hope this is what your requirement(sample output as below):-

CustomerAmount(01.05.2006 - 05.05.2006)Amount(06.05.2006 - 10.05.2006)
C1$100 $500
C2$200 $700

if so, can we do this way: on KF1, restrict the document date with user input variable 1

and KF2 with user input variable 2.

if user enters first user input variable as  01.05.2006 - 05.05.2006

and the same way for the second one. in that case, no  need of further logic to determine the variable ranges.

Let us know if this works?

Regards,
Sakthi.

Former Member
0 Kudos

hi, end user will manually enter a date for that date i have to calculate previous 30, 06, 90... dates

i.e 

26.08.2014- user entry date

using abap i calculated these dates

27.07.2014-(-30)

27.06.2014(-60)

28.04.2014-(-90)

when i restrict the date to the amount in a selection result should be as u showed

but it does not..

Former Member
0 Kudos

Hi Praveen,

Got it.

so only thing you have to make sure.. after deriving your different value ranges. you need to modify the documetn date variable which user entered , to 28.04.2014 - 26.08.2014.

i hope this you have done in Istep_2. then in backend it will get all the required data and feed into the KFs according your variable set ups.

regards,

Sakthi

Former Member
0 Kudos

Also, please check your individual variables getting the right logic by debugging.

regards,
Sakthi

Former Member
0 Kudos

Thank you