Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8652

Re: Question about CALDAY/FACTORY CALENDAR DAY

$
0
0

Hi Loed,

 

You will have to write an ABAP routine for that. One option is to do that in the Transformation if you choose for supplementing this information as a persistent field data staging. Alternatively you could think of a Virtual Characteristic.

 

As I explained the logic is quite straight forward:

  • The basic rule is to check which day of the week and assign the corresponding value to the Key Figure (Monday - Friday = 1, Saturday = 0.5 and Sunday = 0);
  • Special rule is to check if the date is a Public Holiday and set/overwrite the Key Figure to 0;
  • Another special rule is the last Saturday of the Month (something like add 7 days and check if this date is in the new month), if this is the last Saturday, then set/overwrite the Key Figure to 1.

 

I would prefer this way rather than uploading a flat file with all maintenance effort involved.

 

Best regards,

Sander


Viewing all articles
Browse latest Browse all 8652


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>