Application Development 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: 

scheduling a bdc program

Former Member
0 Kudos

Hi Gurus,

I want to know the correct procedure of scheduling a bdc program.

I know there is a method using the program RSBDCSUB , but i need

to know how do i schedule a bdc session program in background using

SE35 or SE36.

thanks

pv

4 REPLIES 4

Former Member
0 Kudos

Hi,

Here is the perfect link to create the Background job and maintaining the Jobs

http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/2c513897110872e10000009b38f889/content.htm

Regards

Sudheer

Former Member
0 Kudos

in sm36 you can

schedule a job by giving some job name (this can be any name )

in job class u can give prority of that job

execute target is the server name where that job shuld execute

on application tool bar

u will find some push buttons like start condition

etc...

start condition :- after some job or etc...

step :- you can give a variant name ( for inputs)

Former Member
0 Kudos

Use transaction <b>SM35</b>.Select the session and press F5 (process in background). Or press the execute button (F8) and tick off 'Background'.

Rob

Former Member
0 Kudos

Hi Pandrangi,

There are 3 ways to schedule a background job without going to SM36.

1. Using FM's : JOB_OPEN, JOB_INSERT and JOB_CLOSE

2. Using SUMBIT report_name VIA JOB job NUMBER job_number

3. If the program has a selection-screen, then go to the Selection-Screen. In Menu, select Program->Execute In Background.

here is the sample code


CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = jobname
IMPORTING
jobcount = jobcount.

SUBMIT rfkk_mass_act_single_job
USER sy-uname
VIA JOB jobname NUMBER jobcount
WITH p_jobno = t_jobtab-jobno " parameters of report
WITH p_jobnam = t_jobtab-jobname
WITH p_jobcnt = t_jobtab-jobcount
WITH p_progn = c_progn
WITH p_laufi = p_basics-runkey-laufi
WITH p_laufd = p_basics-runkey-laufd
WITH p_interv = 'X'
WITH p_xdebg = ' '
AND RETURN.

CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = jobcount
jobname = jobname
strtimmed = 'X'
IMPORTING
job_was_released = l_job_released.

<b>Reward points if the answer is helpful.</b>

regards

Satish