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

Execute a program as Job

Former Member
0 Likes
1,400

Hi,

I have a program wich clean Ztables, but now I have to evaluate in one of table date, if month(date) less than two month of sy-datum, program must delete all records with this features, I need to know how to send to execute another program wich evaluate it.

Thanks in advance.

Regards

Tokio

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,347

Ho Tokio,

You can use SUBMIT from this program

Thanks

Pavan

7 REPLIES 7
Read only

Former Member
0 Likes
1,348

Ho Tokio,

You can use SUBMIT from this program

Thanks

Pavan

Read only

0 Likes
1,344

Hi Pavan, and how execute this program with out user trigger it usin SUBMIT, thanks.

Regards

Tokio

Read only

0 Likes
1,344

Ho Tokio,

If i understand correctly ... you need to execute a report program which will delete some old records as batch job.

but whenever you run program A, it identifies some records needs to be deleted then we need to run program B as backgrond job(it will takecare of deletion part).

If this is correct, you can create a job for program B, and maintain as AFTER EVENT. and in program A raise an event.

Thanks

Pavan

Read only

Former Member
0 Likes
1,344

Hi Tokio,

In order to submit the Program as a job you may use the following function modules.

1. JOB_OPEN --> to open the job.

2. JOB_SUBMIT

3. JOB_CLOSE.

Please let me know if u have further queries

Regards,

Pradeep Chintala.

Read only

0 Likes
1,344

Hi Pradeep

I will follow your advice and let you know.

Regards,

Tokio

Read only

Former Member
0 Likes
1,344

within same program, select the data and then u can delete the data from the Ztable. This program can be scheduled in background via SM36 and can run whenever required as specified in SM36.

Read only

Former Member
0 Likes
1,344

Thanks to all for answering

Through T/C SM36 I schedule program execution.