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

Write a program that would schedule another program in background multipul

Former Member
0 Likes
413

Hi All,

I need to write a program that would schedule another program in background multipul times according to input we provided on different application servers.

For ex:- In table FKKVKP, i am having 2.1 millons contract accounts. I need to write a program(A) that should take 5000 contract accounts at a time as a input and schedule another program(B) in background with input of 5000 contract accounts. And program A ,again schedule program B on differrent application servers , till 2.1 millions contract accounts get used.

Thanx in advance.

Regards,

Dilip Kushwah

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
380

Hi,

In your custom prpgram use the FM

JOB_OPEN

SUBMIT statement.

CLOSE_JOB

JOB_SUBMIT

you can use the options available in the submit statement to process 5000 records in a single job.

2 REPLIES 2
Read only

Former Member
0 Likes
380

hi,

1) Carry out the recording for the required transaction using SHDB.

2) Use batch input method to create session this is done by three FMs

bdc: open_group, bdc_insert, close_group.

3) A session is created , which can be seen in transaction SM 35.

4) Use the standard program RSBDCSUB to configure the session created in SM35.

This way you can achieve your requirement.

Check this links too for more information

Batch input [http://help.sap.com/saphelp_nw04/helpdata/en/fa/097015543b11d1898e0000e8322d00/frameset.htm]

[http://help.sap.com/saphelp_nw04/helpdata/en/4c/4c0e8a725311d396a80004ac96334b/frameset.htm]

[http://help.sap.com/saphelp_nw04/helpdata/en/4c/4c0e8a725311d396a80004ac96334b/content.htm]

Thanks

Sharath

Read only

Former Member
0 Likes
381

Hi,

In your custom prpgram use the FM

JOB_OPEN

SUBMIT statement.

CLOSE_JOB

JOB_SUBMIT

you can use the options available in the submit statement to process 5000 records in a single job.