Skip to Content

I need to trigger a procedure when a program ends.

Hellos SAPients!

I need to trigger a procedure when the user has left (or is leaving) my program, is there a way to do it? Something like an "Unload-of-program." event?

Thanks in advance for your help.

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 Jun 07, 2007 at 05:03 AM

    Hi,

    I believe there is no event like unload-of-program..

    What exactly do you want to do in triggering the procedure...Please explain

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 07, 2007 at 05:11 AM

    Hi,

    Is it not satisfying the requirements if you call the FORM CHANGE_IDOC_STATUS before the output is shown..

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

    • No, because the user has several options to process the items in the List, for example, he can view the list and process only the regular items, then goes back to selection screen and selects clearance items, then back again to selection screen and process price changes.

      I need to be sure that the Idoc is updated in the last moment of usage of the program, that is, when the user leaves.

      Thanks.

  • author's profile photo Former Member
    Former Member
    Posted on Jun 07, 2007 at 05:19 AM

    Hi,

    What if the user presses /n to go out of the program..There is no event for your scenario...

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

    • Hello SAPients!

      I have a new idea, I just don't know if it is feasible:

      My question is: Is there a programmatic way of knowing the program that a user is running?

      I'm thinking on triggering a "monitor program" when the user first enters the main program and have it running in background. If this "monitor program" detects that the user is not longer running the main program then it should trigger the IDoc update and terminate. Is it possible? I need two things: 1) A way to know what program is being executed by the user and 2) A way to have the "monitor program" running in background.

      Thank you in advance for your comments.

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.