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

Waiting for the actions to get executed before submitting it

Hi Guys,

We have a peculiar peoblem wherein we are submitting a report via a job and returning to FM .

In the report we have to execute soame actions on the vehicle being submitted.

The problem is submit is doing its job much before the looping on actions and the status is getting changed with which when it is trying to execute actions its giving an error message sayingh vehicle locked by user/Data has been changed meanwhile.

Its very helpful if anyone providea us a way to submit via job but wait till the report is executed and rerun.

Thanks and Regards,

Raj

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2005 at 06:55 AM

    HI Rajashree,

    If i have understood your problem properly,

    You want to submit a job and return and and want to perform the next few statements only after processing for submitted report is over.

    ENQUE_SLEEP is a FM, insert it after submit job..return statement.

    you can do that by clicking the pattern button.provide some data for seconds, so it will wait before executing next statement and by the time the submitted report will be processed.

    Please give reward point to correct answer and close the thread once you get the correct answer.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 28, 2005 at 10:14 AM

    Hi Raj,

    maybe you could call the report from inside a FM.

    1. CALL FUNCTION func STARTING NEW TASK ...

    2. the FM calls your report

    3. In main program, do what you want

    3. use statement RECEIVE RESULTS FROM FUNCTION func. (with this statement you can catch the end of your report)

    I hope this will help.

    Manuel

    PS: im using release 4.7

    Message was edited by: Manuel Bassani

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2005 at 01:56 PM

    In the calling program, if you:

    submit report01
      and return.
    

    The calling program will wait until the submitted program finishes.

    Rob

    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.