Skip to main content
Solved

Schedule a job 4 days after the period end date

  • September 5, 2023
  • 2 replies
  • 91 views

Forum|alt.badge.img+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 ?

Best answer by Tracy Norwillo

@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

2 replies

Forum|alt.badge.img+10
  • Author
  • Hero (Customer)
  • 62 replies
  • September 7, 2023

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


Forum|alt.badge.img+14
  • Hero (Partner)
  • 220 replies
  • Answer
  • September 8, 2023

@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