on 06-22-2011 2:50 PM
Hi Experts,
I got a requirement to calculate "Days without payment" in report level.
Days without payment = System Date - Payment Date.
(Payment date field is available in CUBE, but system date field is not available in the CUBE)
As we know, the difference b/w 2 dates is not possible directly.It can be possible by creating 2 formula variables with replacement paths on the dates and by writing aformula on these 2 formula variables.
But the thing is I dont have system date readily available, and I tried by using SAP Exit. But we cant create formula variable replacement path on another variable (SAP EXIT).
Do we have any SAP variable for formula with replacement path readily avaliable to get system date (or) any other suggession.
Please suggest me.
Thanks,
Sai Chand.S
Thanks.
Problem Solved...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arminder,
Thanks for ur reply.
Even if we make the 2 dates as key fig's,I guess we cant subtract 2 keyfig's to get number of days.
Thanks,
Sai Chand.S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arminder,
Thanks for your valuable answer.
I tried doing the same previously.As u said we can get system date by creating customer exit variable.
But the thing is to find difference b/w 2 dates, we cant do it directly, we need to create 2 formula variables with replacement path.
1) Var1 = Formula variable with replacement path on system date(custoer exit variable).
2) Var2 = Formula variable with replacement path on paymanet date.
Number of days = var1 - var2.
But as in 1st point, we cant create formula variable with replacement path on another variable, as system date is already a variable of type customer exit.
We can create replacement paths only on characteristics.
Please suggest me .
Thanks,
Sai Chand.S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok.. another way of doing the same thing is to have a key-figure of type date in your info-cube or dso (whatever is being used for reporting) and populate it with the same value as payment date. In this way in a CKF you can use the customer exit formula variable which is getting the system date and use the payment date key-figure for subtraction.
Regards,
Arminder Singh
Could some one please explain me when can we use formula variable with replacement path and i have seen docs related to replacement path of formula variable showing the difference between the dates, Is that the only case where we use formula variable with replacement path or are there any more scenarios?
Please provide me guidance.
Hi,
If you need the system date for some calculation then you can create a formula variable of type 'customer exit' and write a code to pupulate it with the system date.
Or did i missed something in your question? Let me know.
Regards,
Arminder
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.