Skip to Content
avatar image
-1
Former Member

Process chain scheduling through program

Hello Experts,

I need to schedule a process chain at a particular time though my ABAP code. I tried using the FMs RSPC_API_CHAIN_START and RSPC_API_CHAIN_SCHEDULE but they trigger the Process Chain immediately. I cannot find a solution to my problem so asking the experts if anyone has a solution to such a situation.

Thanks!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Feb 07 at 07:20 AM

    Wrap it into a background job scheduled at the time you want (either manually via transaction code SM36/SM37 or programmatically via function module JOB_OPEN and so on)

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 07 at 12:51 PM

    Create some event in SM62. Then in RSA1/RSPC schedule the process chain using this event in the start variant: Direct scheduling, Periodic job after event.

    Then trigger this event in your code with FM BP_EVENT_RAISE (from BW) or BP_REMOTE_EVENT_RAISE (from a source system).

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 07 at 09:10 PM
    -1

    Go with Sandra's suggestion or alternatively, do this:

    • Set the process chain start proc to 12/31/9999 at 23:59:59
    • Execute the process chain
    • Note down the job details
    • In your ABAP program, copy the above job using FM BP_JOB_COPY
    • Change the start date and time to your preference
    • Use FM JOB_CLOSE (and maybe JOB_SUBMIT)

    I have not done this and it may not work as easily. Look at FMs in BTCH function group and play around. Good luck.

    Add comment
    10|10000 characters needed characters exceeded