How to trigger an event when a job is cancelled

Hi,
Can anyone help me out wid a transaction that will trigger an event when a job is
cancelled....??
My scenario is :
When a job is cancelled (SM37) or in cancelled status  i want notify to certain ppl thru emails.
How do i go abt doing the same??
Its Urgent...
Answers will be rewarded.
regards,
Rohan

Hi,
please check out the link below it might help you
http://help.sap.com/saphelp_nw2004s/helpdata/en/71/a8a77955bc11d194aa0000e8353423/content.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/97d2e8b3-0b01-0010-b787-b8ce558a51c2
for table name and list of function please check out the links below it will help you
http://www.erpgenie.com/sap/abap/tables_system.htm
http://www.sap-img.com/abap/function-list.htm
**************please reward points if the information is helpful to you**********

Similar Messages

  • How to trigger a mail when a job gets cancelled

    Hi experts,
                     I have a requirement to trigger a mail to the user when a job fails or gets cancelled.I need to add this part in the program for which the job is running.
    Kindly help,any sample code will be very helpful.
    thanks in advance,
    regards,
    Ashwin

    check this thread out. Hope this might help you
    how can i insure that job finished and good  and send mail to the user  ?
    Regards,
    Santosh

  • How to trigger a event when WBS gets changed in Cj02

    Hello,
    I have a requirement where I need to send create an idoc and send the idoc to external system when WBS is created or changed.  Currently, I have the following setup:
       - I have created a YBUS2054 as a subtype of BUS2054 using SWO1
       - YBUS2054 has been delegated to BUS2054
       - created an CHANGED event in the YBUS2054. This event is implemented and then released
       - created a type linkage (object type=YBUS2054, event=CHANGED, receiver type null, and receiver function module = zz_create_wbs_idoc) using SWETYPV. This function is supposed to create an idoc when CHANGED event occurs. I just don't know how to trigger the event to occur.
       - all the port, define idoc type, logical system, and etc are setup
       - when I try to create an entry in "Event for Chagne Document" using SWEC with change doc object=PROJ, business object type = YBUS2054, with on change, I get "Key for change doc object PROJ and business object type YBUS2054 are incompatible".
    I tried various configurations, and I was not successfully in creating an event on CHANGED
    can you please advise what I am missing in getting the changed event to trigger?
    Thank you in advance,
    Shawn

    Hi,
    If the change doc doesnt exist, check if you can create an event using BSVW.
    Also use the event log to see if there are other sap standard events happening.
    I checked the package belonging to CJ02 to see if there is something useable, but didn't find anything: CN_PSP_OPR
    If there are no sap standard ways to get an event, you'll have to find a badi/enhancement spot and include some coding to start the event using fm SAP_WAPI_CREATE_EVENT.
    Kind regards, Rob Dielemans

  • Figuring out how to trigger an event when a component is visible on screen?

    Hey guys, I got this arraycollection i'm setting on TAB 1 of
    my tab navigator. I'm using this array collection as a dataprovider
    for my grid on TAB 2. I dynamically add rows with an AS function
    and that seems to work fine when i click on a button on tab 2.
    However, I want my function to get called everytime i switch
    from tab 1 to tab 2.
    It seems simple enough but some events seem to run the
    function more than once and that probably isn't the most efficient
    way like the render event or updateComplete.

    also, what I'm noticing is if i have:
    -main application Tab Navigator with 2 canvases
    -- Canvas1
    ---componentA
    ---componentB
    --Canvas2
    ---ComponentD
    ---ComponentE
    the show event registers for Canvas1 and 2 but never
    dispatches for the canvas inside of any of the components?? Any
    ideas?

  • How to trigger a event when there in any change in category in the service request

    Hello Experts
                            I need to set Employee responsible dynamically when the exact category is chosen in the service request. i am following a approach to register a function module in the crmv_events so that the event will be called as soon as categorization is changed in service request.I have never configured crmv_events.please guide me its urgent.
    Please tell me if a better approach is available.
    I will award points immediately .Reply as early as possible as its urgent.
    Thanks in advance

    Hi Rashmi,
    I would say, instead of doing it from any event function module, do it from web ui bol layer itself.
    Define get P method of category and set event on the value change. Create that same event from event handler and write the code for getting(use FM) and setting emp responsible in that event using bol programming.
    Please let me know if you need the codes for doing all this.
    It would be great if you can paste the the screen shot of the view you are using in web ui.
    Thanks,
    Bhushan

  • How to trigger the event when leave current iView

    Hi Expert,
    We have this common senario: when leave current iView(eg, change the menu, close the window etc) we need to notify user whether they want to save current content or not, but I found wdDoExit(in views or coponent controller) can not be triggered
    Is there any event we can use to reside these logic?
    Thanks in advance.
    Best Regards,
    William

    How about trying to use the wdDoBeforeAction event?  You can use a flag to keep track of whether or not there is unsaved data, and check it in the above-mentioned event.
    Walter

  • How to trigger an event when a file is created.

    Hi!
    I need labview to wait until a file is created in a certain folder (by other program) and then perform a task.
    Is this possible?
    I have no idea how to implement it.
    Thank you!
    Solved!
    Go to Solution.

    File System Watcher does what you want if you don't want to poll.
    I can't remember where I found this VI but attached is an example of it working.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
    Attachments:
    Monitor File Changes FileSystemWatcher_working.vi ‏37 KB

  • How to trigger a mail once BG job finished.

    Hi,
    Could anyone please let me know how to trigger a mail once Background job finished. I let you give one scenario where exactly I require this concept. Say, I execute t.code MB52 with particular variants in background to find stuck qty(s) of material(s) in given site(s).Now I want that system will trigger a mail to concern team once job finished.
    Thanks,
    AK

    You can try using workflow transaction SBWP.
    you need to create a distibution list in the above transaction and add the requested mail ids to it.
    then when you create a jon using transaction SM37 you have the option SPOOL LIST RECIPIENT where you can add the created distibution list
    so when ever the job has run sucessfully then a mail is sent to all the mail id's in the list.
    hope this helps.
    cheers
    sundeep

  • How to trigger own events?

    How can you create your own events to be triggered?
    For instance, I have an InputStream that I've got through a Socket that's listening for incoming data. I want to signal/trigger an event when data comes in so that the gui (in another class) can take appropriate actions. How can you do this?

    The basic idea is this:
    public interface SockeListener
        void dataEvent(/* pass a parameter if needed.  Often an event interface is added */);
    public class MySocket
         private final List listeners = new ArrayList();
         public void addListener(SocketListener listener)
              listeners.add(listener);
         public void removeListener(SocketListener listener)
              listeners.remove(listener);
         private void triggerEvent()
               for (Iterator i = listeners.iterator(); i.hasNext();)
                    ((SocketListener) i).dataEvent();
    }Check out the PropertyChangeSupport class also.

  • How to trigger an event in the program

    Hi,
    I have a program. The purpose of the program is to retrieve the data matching the selection criteria and downlod the same to a file.
    In the selection screen, I have a parameter called 'EVENT'. Here, user enters some event name. Generally, they enter the 'Background job processing events'.
    So, my requirement is... once the files are successfully downloaded, the program should trigger the 'EVENT' specified in the selection screen at run time.
    Can someone help me in this regard. How to trigger an EVENT in the program. Is there any Function Module or Method available in SAP which triggers the EVENT at runtime.
    And is there any table available in SAP which stores all the events available in SAP. Because, whenever the user enters an EVENT in the selection screen, we should check whether the event is valid or not. So, if there is any table available which has all the events then, it will be easy I guess. or is there any other way to validate the EVENT name.
    Please help me. Thanks in advance,
    Best Regards,
    Paddu.

    Hello Paddu,
    have a look at tables
    - btcsev, btcsed (system events)
    - btcuev, btcued (user events)
    and use function BP_EVENT_RAISE.
    kind regards
    Walter Habich

  • How to trigger a workflow when data inside a table changes

    Hi
    How to trigger a workflow when data inside a table changes ??
    We need to trigger a workflow when STAT2 field value in PA0000 table changes.
    rgds
    Chemmanz

    Make use of Business Object BUS1065. In this business Object you have an attribute Status which you can use. There are a number of events that will get triggered when the status is changed.
    Thanks
    Arghadip

  • Dictionary Search Help - how to trigger an event after F4 help

    Hi,
    I been searching the web lately to find a way to trigger an event after using the F4 input help.
    Here is an example of what I would like to do:
    - I have a WD form with a inputfield in it.
    - The input field is bound to datalement "LIFNR".
    - In my context I have specified the Input Help Mode to "Dictionary Search Help"
    - And the Dictionay Search Help is set to "KRED"
    A user will the click on F4 to start the Search help, then pick a LIFNR and the WD inputfield wil be filled.
    What I want is to trigger an event when this is happening.
    Does anyone have som tips or guides for me regarding this problem?
    Thanks in advance! =)

    Hi Mathias Hagen
    Actually there is no straight way of doing this , but still you can trigger a event in F4 search help ...  below is very informative blog to trigger the F4 search help by chris
    Firing a WDA event on using a Search Help - how to do it, without an NDA
    regards
    Chinnaiya P

  • How to send a mail to the user when a job gets canceled?

    Hi experts,
                      I need to send a mail when a job gets canceled to the user.I know the FM for sending mail and i can find if a job is canceled from tbtco,but i want to know how to send the mail from the same program ,once it got canceled ?
    thanks in advance,
    helpful answers will be awarded with points
    regards,
    ashwin

    Hi Ashwin
    Use the below peace of code:
    REPORT ZBCJOBMONITOR .
    TABLES: SOMLREC90,
            TBTCO.
    DATA: MAILDATA   LIKE SODOCCHGI1.
    DATA: MAILTXT    LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
    DATA: MAILREC    LIKE SOMLREC90 OCCURS 0  WITH HEADER LINE.
    DATA: I_TBTCO    LIKE TBTCO OCCURS 0 WITH HEADER LINE.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001 .
    SELECT-OPTIONS: S_JOB FOR TBTCO-JOBNAME.
    SELECT-OPTIONS: S_JOBC FOR TBTCO-JOBClass.
    SELECT-OPTIONS: S_REC FOR SOMLREC90-RECEIVER.
    SELECTION-SCREEN END OF BLOCK B1.
    START-OF-SELECTION.
      CLEAR:    MAILDATA, MAILTXT, MAILREC, I_TBTCO.
      REFRESH:  MAILTXT, MAILREC, I_TBTCO.
      PERFORM GET_ABENDED_JOBS.
      PERFORM BUILD_RECEIVERS.
      LOOP AT I_TBTCO.
        PERFORM BUILD_TEXT_MESSAGE.
        PERFORM SEND_MAIL_NODIALOG..
      ENDLOOP.
         Form  BUILD_TEXT_MESSAGE
    FORM GET_ABENDED_JOBS.
      SELECT * FROM TBTCO
              INTO CORRESPONDING FIELDS OF TABLE I_TBTCO
                         WHERE JOBNAME IN S_JOB
                           AND STATUS = 'A'
                           AND JOBCLASS IN S_JOBC
                           AND SDLSTRTDT = SY-DATUM.
    ENDFORM.
         Form  BUILD_TEXT_MESSAGE
    FORM BUILD_TEXT_MESSAGE.
      DATA: DATE(10) TYPE C.
      DATA: TIME(10) TYPE C.
      MAILDATA-OBJ_NAME = 'MONITOR'.
      MAILDATA-OBJ_DESCR = 'Batch Job Monitor'.
      MAILDATA-OBJ_LANGU = SY-LANGU.
      CONCATENATE 'Job Name:' I_TBTCO-JOBNAME
                  INTO MAILTXT-LINE SEPARATED BY SPACE.
      APPEND MAILTXT.
      PERFORM FORMAT_DATE USING I_TBTCO-SDLSTRTDT
                                DATE.
      CONCATENATE I_TBTCO-SDLSTRTTM+0(2) ':'
                  I_TBTCO-SDLSTRTTM+2(2) ':'
                  I_TBTCO-SDLSTRTTM+4(2)
                     INTO TIME.
      CONCATENATE 'Start Date/Time:' DATE TIME
                INTO MAILTXT-LINE SEPARATED BY SPACE.
      APPEND MAILTXT.
      CONCATENATE 'Job Class:' I_TBTCO-JOBCLASS
                INTO MAILTXT-LINE SEPARATED BY SPACE.
      APPEND MAILTXT.
      MAILTXT-LINE = 'Job has terminated abnormally'.
      APPEND MAILTXT.
    ENDFORM.
         Form  BUILD_RECEIVERS
    FORM BUILD_RECEIVERS.
      LOOP AT S_REC.
        CLEAR MAILREC.
        MAILREC-RECEIVER = S_REC-LOW.
        MAILREC-REC_TYPE  = 'U'.
        APPEND MAILREC.
      ENDLOOP.
    ENDFORM.
         Form  SEND_MAIL_NODIALOG
    FORM SEND_MAIL_NODIALOG.
      CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
           EXPORTING
                DOCUMENT_DATA              = MAILDATA
                DOCUMENT_TYPE              = 'RAW'
                PUT_IN_OUTBOX              = 'X'
           TABLES
                OBJECT_HEADER              = MAILTXT
                OBJECT_CONTENT             = MAILTXT
                RECEIVERS                  = MAILREC
           EXCEPTIONS
                TOO_MANY_RECEIVERS         = 1
                DOCUMENT_NOT_SENT          = 2
                DOCUMENT_TYPE_NOT_EXIST    = 3
                OPERATION_NO_AUTHORIZATION = 4
                PARAMETER_ERROR            = 5
                X_ERROR                    = 6
                ENQUEUE_ERROR              = 7
                OTHERS                     = 8.
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.
         Form FORMAT_DATE
    FORM FORMAT_DATE USING IN
                           OUT.
      CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
           EXPORTING
                DATE_INTERNAL            = IN
           IMPORTING
                DATE_EXTERNAL            = OUT
           EXCEPTIONS
                DATE_INTERNAL_IS_INVALID = 1
                OTHERS                   = 2.
    ENDFORM.
    Regards,
    Sree

  • How to trigger left_click_run event on ALV GRID

    Hiiiiiiii........
    Can any of u please tell me how to trigger left_click_run event on ALV GRID.
         There is an event LEFT_CLICK_RUN and  its a public accessed event. But the problem is , the corresponding  attribute of this event  "EVENT_LEFT_CLICK_RUN" which is needed to registered that event (We need to register our events through a method set_register_events  using table of type cntl_simple_events...) is protect accessed. So I am unable to use that attribute...Could u please tell  me is there any alternative way to register that event.......ANY POSSIBLE WAY?
    Thanks in advance,
    Rams

    I think you should use event selection_changed. Note that you shouldn't allow multiple selection for the tree at the same time, i.e. use: create object g_tree exporting \[...\] node_selection_mode = cl_gui_column_tree=&gt;node_sel_mode_single.
    For more information, see this thread: Urgently required :  cl_gui_alv_tree single_click event...

  • How to trigger email notification when users fail to reset your password in fim 2010 r2.

    Hi,
    how to trigger email notification when users fail to reset  your password in fim 2010 r2
    Regards
    Anil Kumar

    Hi Sylvain,
    I did all thing as you told me.First i created Criteria based Set after this we created a Workflow type Action and Actvities Type Notifcation Email template and finally i called this Workflow in MPR as Set Transition and call Set that i was created below.and
    check Advance View of Set this gives
    <Filter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Dialect="http://schemas.microsoft.com/2006/11/XPathFilterDialect"
    xmlns="/Request[(Creator">http://schemas.xmlsoap.org/ws/2004/09/enumeration">/Request[(Creator = 'b0b36673-d43b-4cfa-a7a2-aff14fd90522') and (RequestStatus = 'Denied or PostProcessingError')]</Filter>
    But this is not working for me so please tell me where i am wrong.
    Regards
    Anil Kumar

Maybe you are looking for

  • New Toshiba L850 Blue Screen Of DEATH!!

    Well I just purchased this baby on the 28th of august and now its the 14 of september and ive gotten the blue screen of death multiple times. I have tried restoring it with the backup i made when i first booted it and tried system repair. I have neve

  • Non-cumulative Inventory cube to snapshot Inventory cube scenario

    We currently have a non-cumulative Inventory cube in production system and the stock values match to ECC data. Now we want to build a snapshot cube (to improve query performance) and the question is can we use the current cube (non-cumulative) as dat

  • InDesign CS6 Plug-in development problem

    Hello, IDE:Visual Studio 2010 Platform:Windows7-32 Version:Indesign CS6 Database:MySql-5.0.67-win32 ODBC:ODBC-5.1 The source code: URI uri("odbc://New/?table=jo_user#user_id,username,reset_key,activation,register_time,login_ count");//int,varchar,tin

  • Pages icon won't dock

    Pages application icon will not stay on dashboard dock. I also get "Pages cannot be opened  - 1712" message.

  • BW Proposal Doc. -- Help me out plz...,

    Can anybody pls send me the project proposal doc and estimation matrix chat for proposal..... Points assured... Mail Id:  [email protected] Thanks, Debasish