Skip to Content
-1

Process chain scheduling through program

Feb 07 at 06:58 AM

55

avatar image
Former Member

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!

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Sandra Rossi Feb 07 at 07:20 AM
1

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)

Share
10 |10000 characters needed characters left characters exceeded
Raymond Giuseppi
Feb 07 at 12:51 PM
0

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).

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member 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.

Share
10 |10000 characters needed characters left characters exceeded