Skip to Content
-1

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 a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Feb 07, 2018 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 a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 07, 2018 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 a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 07, 2018 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.