Solved

Schedule a job 4 days after the period end date

  • 5 September 2023
  • 2 replies
  • 51 views

Userlevel 3
Badge +10

I am wanting to schedule a quick report to run 4 days after the period end date - how is best to do this please ?

icon

Best answer by Tracy Norwillo 8 September 2023, 23:01

View original

2 replies

Userlevel 3
Badge +10

I have found that I can do this using the following syntax which returns a date, i also want to add the time 0600 hours is that possible ?

 

 ifsapp.accounting_period_api.Get_Until_Date_For_Year_Period('102',ifsapp.accounting_period_api.Get_Acc_Year_Period('102'
     ,Add_Months(to_date('10/'||(extract(month from sysdate))||'/'||(extract(year from sysdate)),'dd/mm/yyyy'),-1))) + 4

Userlevel 4
Badge +11

@JannetteC  

This seems to work for me in Apps 10 assuming you’re scheduling a database task and using a custom schedule: 

accounting_period_api.get_until_date_for_year_period('102',accounting_period_api.get_curr_acc_year_period('102')) + 4.25

Reply