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

batch job

Former Member
0 Likes
681

Hello All,

I am new to batch jobs.

(1)my requirement is i have to write a program, which should run only after successful completion of an existing job. how should i do this? please provide the knowledge.

and one more thing

(2)the program that i should write is a selection screen program, with some input variants. is this possible.

Thanks a lot in advance.

Best Regards,

Amarender Reddy B.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
640

Hi,

1)my requirement is i have to write a program, which should run only after successful completion of an existing job. how should i do this? please provide the knowledge.

simply write your program in the normal way you do otherwise. And when you schedule the job, add the programs as steps in the job in the order they should be executed. This way the steps ( programs with variants ) will be executed one by one in the same order you specified while creating the job. If there are any errors in one of the job, the entire job will fail and the remaining jobs in the chain will not be executed.

(2)the program that i should write is a selection screen program, with some input variants. is this possible.

I'm not clear what you mean. I'm guessing you are asking if you can schedule such a program or not. The answer is yes, if so.

regards,

Advait

5 REPLIES 5
Read only

Former Member
0 Likes
640

Hi,

Add you program as an additional step to the job and in you program

use FM BP_JOB_SELECT to check the status of the job on which completion you should progress.

Cheers,

KD

Read only

Former Member
0 Likes
641

Hi,

1)my requirement is i have to write a program, which should run only after successful completion of an existing job. how should i do this? please provide the knowledge.

simply write your program in the normal way you do otherwise. And when you schedule the job, add the programs as steps in the job in the order they should be executed. This way the steps ( programs with variants ) will be executed one by one in the same order you specified while creating the job. If there are any errors in one of the job, the entire job will fail and the remaining jobs in the chain will not be executed.

(2)the program that i should write is a selection screen program, with some input variants. is this possible.

I'm not clear what you mean. I'm guessing you are asking if you can schedule such a program or not. The answer is yes, if so.

regards,

Advait

Read only

0 Likes
640

Hello Advait,

Thank you very much now i understood, the meaning 'adding a step ' in my FS.

my second doubt is : when we have a selection screen program, if we schedule this, how the user will be able to give the input, when selection screen come up.

what i understood from your point is that, we can give the variant also while adding the step, in that case always the same variant is taken, while running the job?

Plase clarify these also.

Best Regards

Amarender Reddy B

Read only

0 Likes
640

Hi,

Yes that is correct, the values that you set when you create a variant will be taken as default values while running the program in background, if you specified that variant while defining the job.

The user can also choose a variant when running the job in foreground, and then make changes to the values and run the report in foreground or background.

regards,

Advait

Read only

0 Likes
640

thank u