Skip to Content
author's profile photo Former Member
Former Member

Scheduling question

Hi Guys,

We have two programs, one ABAP program called a UNIX script and get a text file from receiver server, and place it to our server in some directory.

Other program run and take that file as input and do some calculation and send back this file using the UNIX script back to the receiving server in different directory.

I Schedule this programs in one-steps, under one job.

My question is that if first program couldnÂ’t be able to find input file from receiving server it should stop and does not process the second program in Scheduling.

How I can achieve this task guys, I know there is Command called "STOP”, will it work in my scenario.

Please share your input/suggestions.

Thanks

Bye

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    Posted on Nov 17, 2005 at 08:44 PM

    Yeah STOP will Work.

    It won't go for Second Process.

    Regards.

    vijay

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 17, 2005 at 08:46 PM

    Hi ,

    Instead of scheduling two programs why don't you call the second program from the first program, if the first program gets some data.

    Thanks

    Govind.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 17, 2005 at 08:44 PM

    As these 2 are independent programs, i will suggest you to add a check in second program. If the file is opened successfully then only process further else stop processing in second program.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 17, 2005 at 08:53 PM

    Hi,

    In the first program keep a memory varaible and pass 'X' if the file is not there and export that value to memory.

    In the Second program import the value from the memory and if the value is 'X' than exit from the Program.

    Hope this helps you out.

    Let me know if this helps and reward me .

    Regards,

    Naidu.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 17, 2005 at 09:12 PM

    Is the process like this:

    Program A submits program B then program C.

    Program B processes a file but may not be successful.

    Program C processes a file if B is successful?

    If so, program B can export to memory some value "success" or "fail".

    Program A imports the value. If it is "success" it submits program C; otherwise, it doesn't.

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

    • I am not talking about the error log, I am suggesting issuing an error message in your first program like below

      if <filenotfound>.

      message e000 with 'File Not Found'.

      endif.

      This will <b>cancel</b> the job and thus the second step will not be executed. The error message will go into the job log.

      Srinivas

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2005 at 09:56 AM

    Hi,

    You might also want to have a look at the new Job Scheduling capabilities of SAP NetWeaver. You can find more information about this on SAP Service Marketplace under quick-link job-scheduling (http://service.sap.com/job-scheduling)

    Kind regards,

    Edwin Esser

    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.