on 2024 May 28 5:16 AM
Hi Experts,
Given a date in integer format, how to find the nearest Monday of it in SAP SAC data action.
We have a date in interger format in a measure called: "Shipment Date", that will be entered by the planner, and we need to find the nearest Monday after 10 days, that's the max "Delivery by Date".
So, for example, Shipment date is: 05/27/2024, the delivery date should be calculated as: 06/03/2024, instead of 06/10/2024, as this is the nearest Monday to date: 06/06/2024, when added 10 days to 05/27/2024.
Thanks,
SP
Request clarification before answering.
Hi @SP9 , I´m afraid this can´t be solved with a data action. If it´s an option for you, it´s more likely you can solve it with scripting in a story. -- Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @SP9
I doubt that you will find a good solution for that in SAC.
But you could maybe testing if you can utilize the Date's Day name colunm:
I'm not sure if you can access this... but even if it might become a complex logic?!
Good luck,
Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 11 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.