Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying a date

4390qfjma
Member
0 Kudos
271

I need to display the dates in the AY columns. The Start Dt and End Dt is the dates the project is valid for.

Our organizations AY dates are 09/01 (Sept 01) through 08/31 (Aug 31).

If the project valid dates start within the Current AY, I need to display the Start Dt through the last day of the AY, unless the End Dt is before the last day of the AY.

AY 2022 dates are 09/01/2021 - 08/31/2022; AY 2023 dates are 09/01/2022 - 08/31/2023; AY 2024 dates are 09/01/2023 - 08/31/2024;

In row 1, AY 2022 should display 9/1/2021 (first day of AY 2022) - 03/31/2022 (End Dt), as start date is in a prior AY not being displayed.

In row 2, AY 2022 should display 4/1/2022 (Start Dt) - 08/31/2022 (last day of AY 2022); AY 2023 should display 9/1/2022 (first day of AY 2023) - 03/31/2023 (End Dt).

Etc.

Thank you in advance for any insight on how to fix this.

2 REPLIES 2

moshenaveh
Community Manager
Community Manager
0 Kudos
215

Welcome to the SAP Community! Thank you for visiting us to get answers to your questions.

Since you're asking a question here for the first time, I'd like to offer some friendly advice on how to get the most out of your community membership and experience.

First, please see https://community.sap.com/resources/questions-and-answers, as this resource page provides tips for preparing questions that draw responses from our members. Secondly, feel free to take our Q&A tutorial at https://developers.sap.com/tutorials/community-qa.html as well, as that will help you when submitting questions to the community.

Finally, I recommend that you include a profile picture. By personalizing your profile, you encourage readers to respond: https://developers.sap.com/tutorials/community-profile.html.

I hope you find this advice useful, and we're happy to have you as part of SAP Community!

xiswanto
Active Participant
0 Kudos
215

People can't really help, unless some details is mentioned such as:

1. where is this process happening ( SAP GUI screen, downloaded excel file, excel mail attachment, etc )
2. You are showing the image of data with shown value, not sure whether it is expected result, or current result ( if current, which part went wrong? )
3. are you having difficulties writing the syntax, or the logic, or other thing else you need help with? (because you sound like you want the code to be written for free to me)