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

Former Member
0 Likes
902

can we schedule the program in background without transaction code and selection screen.

in my program there is no transaction code and selection screen parameters.and this need to be execute every 5 hours. tell how to do this.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
869

yes u can..

goto sm36,

in steps u give the report name.

dont enter any variant...

in start condition u have a button as period... there select other period and give ur values..

10 REPLIES 10
Read only

Former Member
0 Likes
869

Dear Ramesh,

to shcedule a program in background, no need of any tcode and selection screen.

u need to shcedule it in SM36 and SM37 for scheduling and checking the jobs.

in SM36 select wizard and give the time as per ur requirement.

Rgds,

Kiran

Read only

0 Likes
869

i have the program name and through se38 i executed and in the selection screen i have inputted the values and saved as varaint. I did not created a transaction code for this.

can i schedule this also in background with the variant which i have created.

Read only

0 Likes
869

Transaction code is not needed.

Sure shot solution.:

Program with variant is always needed to schedule a job.

Thanks,

Babu Kilari

Read only

0 Likes
869

Hi Ramesh ,

i have the program name and through se38 i executed and in the selection screen i have inputted the values and saved as varaint. I did not created a transaction code for this.
can i schedule this also in background with the variant which i have created.

Yes you can use your created variant for BACKGROUND execution of your program.

After selecting the variant follow the same procedure .

Regards

Pinaki

Read only

0 Likes
869

Hi,

OOnce you have entered your variant... Goto Program-> excute in Backgroud... After this goto SM37 and check for your data..

Read only

Former Member
0 Likes
870

yes u can..

goto sm36,

in steps u give the report name.

dont enter any variant...

in start condition u have a button as period... there select other period and give ur values..

Read only

Former Member
0 Likes
869

Hi Ramesh,

This is simple.

Goto SE38. Type the program name.

Then choose the menu item Program->Execute->Background. Then Click schedule in the 'Execute Report in Background' Screen. Then give a job name and then give a time and Then click schedule periodically. Then give in the hours field the value 5.

Thanks and best Regards,

Suresh

Read only

Former Member
0 Likes
869

Hi ,

SM36 and SM37 are the transactions to difine back ground job and job selection respectively.

In SM37 you can execute the background job , that is created in SM36.

In the SM36 specify a job name and press ENTER and then in text screen specify the program

name that you want to schedule in the background and SAVE . So the job with the specified jobname

will be scheduled .

In the Transaction SM37 spcify the JOBname and check the Job status as SCHED.

Now execute it .

Regards

Pinaki

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
869

link: [Doc|http://help.sap.com/saphelp_bw21c/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm]

Read only

Former Member
0 Likes
869

yes you can.

Go to T code SM36

Give job name say Z_JOB

press START CONDITION button.

click date/ Time

Give scheduled date and Time .

click Periodic job.

Click on Periodic Values . click hourly...

save it..

click on step and give program name..

You need not have selection screen or T code.

just you have to type prog name