submit background job with date selection

As mentioned in earlier submit report versions post you can make use of SUBMIT statement from your ABAP program in order to schedule any other ABAP program in background. However recently i have met a situation where user wants to decide the date and frequency of this background program. Therefore you may want to populate some fields in JOB_CLOSE of scheduling background job using an interface. BP_START_DATE_EDITOR provides this interface by collecting required information from the user.

I have implemented this function module in the following code snippet.

You may also like

  • read SM37 logs of background jobs (0)
    Recently i had a requirement to trigger a background job from my custom program. Background job had a standard SAP report as step and report was processing a business logic. After this […]
  • SUBMIT command versions (0)
    In ABAP , if you want to directly execute a report from another program ,you can use . Using submit you can also create dynamic background jobs, call a report with its selection screen […]
  • stop background job if there is an already running job with the same name (0)
    SAP does not provide a functionality to prevent dublicate background job scheduling. Therefore if you schedule a background job more frequent than the run time of background job, there […]