Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Background Job: execute steps in sequence from another system

suwandi_cahyadi
Contributor
0 Likes
2,227

Dear Experts,

Let's say that I have a background job with 3 steps:

- first step is to run a program in ECC

- second step is to run the program in CRM

- third step is to run a program in ECC

How to do this, that the 2nd step in CRM will be triggered once the 1st step in ECC is finished, and so is the 3rd step?

I'm thinking of using RFC that ECC will call a RFC enabled FM in CRM which will execute the second step program. But I'm not sure if this is a good solution since if the program runs for a long time, then the connection will stay open and we might need to increase the RFC time out value.

Thank you,

Suwandi C.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,357

You could build multiple background jobs, predecessor job would raise an event in the other system to trigger successor job. Last step of job call a report wrapping FM BP_REMOTE_EVENT_RAISE.

The RFC connection would only be opened during initial scheduling of jobs and raising of events.

Regards,

Raymond

Dear Experts,

Let's say that I have a background job with 3 steps:

- first step is to run a program in ECC

- second step is to run the program in CRM

- third step is to run a program in ECC

How to do this, that the 2nd step in CRM will be triggered once the 1st step in ECC is finished, and so is the 3rd step?

I'm thinking of using RFC that ECC will call a RFC enabled FM in CRM which will execute the second step program. But I'm not sure if this is a good solution since if the program runs for a long time, then the connection will stay open and we might need to increase the RFC time out value.

Thank you,

Suwandi C.

4 REPLIES 4
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,358

You could build multiple background jobs, predecessor job would raise an event in the other system to trigger successor job. Last step of job call a report wrapping FM BP_REMOTE_EVENT_RAISE.

The RFC connection would only be opened during initial scheduling of jobs and raising of events.

Regards,

Raymond

Read only

0 Likes
1,357

Hi,

I just want to be clear of the idea.

So, when the first background job is finished, it will call the FM BP_REMOTE_EVENT_RAISE to raise an event in CRM and triggering the second background job. Next, when the second background job is finished it will call the FM again to trigger the third background job in ECC?

Thank you,

Suwandi C.

Read only

0 Likes
1,357

Read only

Former Member
0 Likes
1,357

One of the option could be to use tRFC ( Idoc and/or Equivalent ) or qRFC ( If you need all the steps will run sequentially ).

The standard SAP communicates between ECC and CRM in similar way.

R