Dear Guru!
Good Day !, I am having an issue in creating the query in bex designer for calculating material aging, the logic to this query as follow: Following key figure variable is required to use in calculation for getting material againg
1st var -Batch Manufacturing Data ( Document posting date )
2nd var- To get Current Data (this i need without any customer exit code ? how to calculate it ?)
3rd var - user input variable on 0CALday
I am confused here , shall i go and build the query with following logic using Info Cube 0IC_C03 ( but how to get the current system date without writing code ? this is my question )
User will enter the Date using 3rd variable, so till that date, the data will retrieve from InfoCube.
So till that date, the Age of Materials will calculates in report and it will display in buckets i.e. 0-30 Days, 31-60 Days, and 61-90 Days like that. So the Total stock will display in each buckt
Column side of query having following fileds
( Stock , Difference , 0-30 Days, 30-60 Days, 60-90 Days, 90-120 Days,120-180 days, 180- 365 Days)
Difference (Formula) calculated as ( Current day value - Batch Manufacturing Date)
0-30 days calculated as ( (current day value- batch manufacturing date) <=30) x Stock )
30-60 Days calculated as (( Difference > 30 ) AND ( Difference <= 60)) X Stock
Characteristics:
Material
Batch
Plant
Note: Batch is having Manufacturing date as an attribute ( How to set it out ? )
Time Characteristics:
0Calday.
KeyFigure:
Valuated stock qty (0VALSTCKQTY)