Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
139

Business requirement is to get the Aging Analysis report data for any Month End date of Current Year. For example, Mar 31st, Apr 30th , Oct 31st, etc;

There is standard Fiori App – Aging Analysis which have the field ‘Open on Key Date’ as shown below…

jagdish_panjwani2_0-1730362312634.png

…this field has only the restricted values like First day of current year, Last day of current month, etc…month end dates are not available.

jagdish_panjwani2_1-1730362342548.png

 

These values come from another Fiori App – Manage Date Functions

jagdish_panjwani2_2-1730362342550.png

 

jagdish_panjwani2_3-1730362342554.png

 

As per requirement, we need to introduce twelve new date functions in Manage Date function App which will give the Month end dates like LAST_DAY_OF_JAN_MONTH, LAST_DAY_OF_FEB_MONTH, so on.

Good thing is this App allows to create Custom date functions shown below…and maintain the month end date like 10/31/2024.

jagdish_panjwani2_4-1730362342556.png

With this approach we must maintain 12 date functions referring to the month end date of current year (now it is 2024). But if we maintain like this, we must maintain for every new year 2025, 2026…so it is not a one time activity. Also, the number of date functions will keep incrementing every year…this allowed me to Re-THINK about the alternate approach/solution.

 

When explored I found it gives other possible values like Yesterday, First day of , Last day of,  as the Base date.

The whole objective is to make the 12 new date functions dynamic so that every year it will automatically represent the month end date…which will eliminate the need to create it every year.

jagdish_panjwani2_5-1730362342559.png

-------------------------------------------

Let’s do some calculations using paper and pencil-

Last day of Dec Month = Last day of current year(Simple) [e.g; for year 2024 it is 31.12.2024 ]

The last day of the year can be used as the reference to determine the other month end dates –

Last day of Nov Month = From last day of current year minus 1 Month [ 31.12.2024 – 1 month = 30.11.2024]

...

Similarly, Last day of Jan Month = From last day of current year minus 11 Month [ 31.12.2024 – 11 month = 31.01.2024]

-------------------------------------------

Now, let's go to the Manage Date Function Fiori App to dynamically create date function say for month end November...it will be like –

1 month Ago From Last Day of Current year...so we are using all the dynamic variables to determine the month end dates.

jagdish_panjwani2_6-1730362342561.png

When simulated, it gives 11/30/2024

jagdish_panjwani2_7-1730362342562.png

Likewise, we can create other date functions to get the month end date dynamically…and it will appear in the value help of the field ‘Open on key date’ of the Aging Analysis App, which can be used to get the report data.

 

Thank you!

--Jagdish Panjwani

 

Labels in this area