Skip to Content

Execute a program as Job

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on May 23, 2007 at 12:49 PM

    Ho Tokio,

    You can use SUBMIT from this program

    Thanks

    Pavan

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

  • author's profile photo Former Member
    Former Member
    Posted on May 23, 2007 at 12:58 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 23, 2007 at 01:28 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 31, 2007 at 06:24 PM

    Thanks to all for answering

    Through T/C SM36 I schedule program execution.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.