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: 

Execute a program as Job

former_member184029
Participant
0 Kudos

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

Former Member
0 Kudos

Ho Tokio,

You can use SUBMIT from this program

Thanks

Pavan

7 REPLIES 7

Former Member
0 Kudos

Ho Tokio,

You can use SUBMIT from this program

Thanks

Pavan

0 Kudos

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

Regards

Tokio

0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

Hi Pradeep

I will follow your advice and let you know.

Regards,

Tokio

Former Member
0 Kudos

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.

former_member184029
Participant
0 Kudos

Thanks to all for answering

Through T/C SM36 I schedule program execution.