cancel
Showing results for 
Search instead for 
Did you mean: 

Custom T-code in background

Former Member
0 Kudos

Hi All,

Can we execute a Custom T-code in background by scheduling a background job?

If yes,how do we do this? When I tried through SM36, I could only enter ABAP program but I did not find any means to enter a custom T-Code.

Thanks,

Sowrabha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

We can Schedule Background jobs only on the basis of Program names but not on Customized T-Codes or Standard T-codes.

Our requirement is to run a job and get a report,if that job runs on T-code or Program but our Requiremnt is to get a Report as a result. If we create a new Zt-code as per the requirement which is linked to a Program in backend,so Final result is the same,but from SM36 we cannot mention t-codes only program names can be mentioned.

By

Shankar

Former Member
0 Kudos

Thanks Shankar!

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi All,

Thanks for all the replies. But my question was that- can we run a T-Code in background? It is a custom program and I myself have created the T-Code. I just wanted to know is there any means to schedule background job for the custom T-Code ,not for the program. Please reply if anyone has any idea about this.

Thanks,

Sowrabha

Former Member
0 Kudos

Hi Sowrabha,

STEPS IN BACKGROUND SCHEDULING:

1. Use tcode SM36

2. Click Job wizard in the button set and Click Continue

3. Enter Job name and press continue

4. Select ABAP program and press Continue then enter Program name and press continue

and again press Continue

5. Set Schedule type immediately and continue

6. Select periodic job checkbox, press continue

7. Select none of the above and click on other periods – give one-minute and then press create

Press continue and then press complete.

For Displaying ALV Grid in Background Job

/people/prashant.patil12/blog/2007/02/20/displaying-alv-grid-in-background-job

Also refer this link

http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm

former_member737313
Participant
0 Kudos

Hi,

If you want to schedule a back ground job for the Custom T.code it can be done. Identify the program name which gets executed when ever the custom t.code is entered.

As you said in SM36 enter the custom program to be executed but if you are looking directly for the T.code to be executed then i am not sure whether it can be done.

Thanks,

Ranjith

Former Member
0 Kudos

Your custom TCode would certainly be running a program in the background so you can give the name of the program instead of the Tcode.

Former Member
0 Kudos

goto t.code SE93 ...

there give the t.code and get the program name there....

now goto sm36 ..

give the program name and variant and

scheduling a background job