Event Triggered when a Report is generated

Hi ,
When we execute a report is there a trigger which captures this event. I need to execute an APD once the report is executed.
Could you please give me the name of the event when a report is generated?

Thanks for the quick response.
I have tried with POST-FORM event. But it is not working for me.
Ihave defined a seq 10 with
a) Condition
Trigger Event = WHEN-NEW-FORM-INSTANCE
b) Action
Type = Builtin
Builtin Type = Forms_DDL
Argument = Script for creating a trigger
I have created another seq 20 with
a) Condition
Trigger Event = WHEN-FORM-NAVIGATE
b) Action
Type = Builtin
Builtin Type = Forms_DDL
Argument = scritpt to disable the trigger
When form is opened, trigger is getting created.
But when the user closes the form, it is not disabling the trigger. User closes the form by clicking on 'X' on the window.
As per your suggesion , I have changed the trigger event to POST-FORM in seq20. It is not working.
I have tried with WHEN-WINDOW-CLOSED event also.
Please help me in this.

Similar Messages

  • Dump when run Report RPTQTA00 - Generate Absence Quotas

    Hi,
    I run a report RPTQTA00 - Generate Absence Quotas. when we execute it, a runtime error display.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "SAPLHRP3" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
        The following syntax error occurred in program "/1PAPA/FEAT000BIMAP " in
         include "/1PAPA/FEAT000BIMAP " in
        line 0:
        "The program "/1PAPA/FEAT000BIMAP" is not Unicode-compatible, according"
        " to its program attributes."
        The include has been created and last changed by:
        Created by: "DDIC "
        Last changed by: "SAP* "
        Error in the ABAP Application Program
        The current ABAP program "SAPLHRP3" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    Pl. help...

    thanks dear..
    Please let me know, in Object Name, what should i insert...my program name or subroutine name where check of unicode not ticked.
    My Program Name -
                 RPTQTA00
    Subroutine -
                            /1PAPA/FEAT000BIMAP
    plz help

  • Any event triggered when deletion happens

    Hi guys,
    I wonder is there any way how to handle following scenario:
    We have custom BO which has association to Activity BO.
    User deletes Activity's instance and here I want that my custom BO's instance would be deleted together with this activity, as we have 1:1 relationship between Activity BO and mine custom BO.
    As I know, than none of events on activity could be triggered when row from Activity's OWL is removed, right? As possible work around I see MDR usage on my custom BO, but it won't be real time check if my custom BO instance still has association to activity. So another thought what I had, but I couldn't find the way how to get it working, is there any chance to trigger on my custom BOs OWL any actions (mass enabled action which checks if my instances has set association to activity)?
    Thanks,
    Uldis

    In case of an internal communication used, you would not receive a delete event.
    The backend would delete your custom object.
    Explained simple, internal communication creates, updates and deletes instances of objects (the destination object) based on modifications of a source object asynchronously in the background (you can define additional conditions when to create, update or delete).
    So you might use it to create and delete instances of your custom object.
    The approach using internal communication is just a suggestion and might not be what you need.

  • "Presave" Event triggered when the form is loaded.

    Dear all,
    I created an interactive form with an XML interface and I use it into a Web Dynpro ABAP.
    The version of my Adobe LiveCycle Designer is 8.0.
    My problem is that the "presave" event is triggered when the form is loaded.
    For example, if I place a field in the form and add the script " this.rawValue = "123"; " to the "presave" event of this field, the field will have the value "123" when I launch the Web Dynpro application.
    Then, if the user does not make any input and directly save the form, the "presave" event is not triggered.
    Does anyone know why I get such a behavior?

    Steeven, I was unable to test this scenario as Adobe Credentials are not installed in my system. But something similar from Java Script is referenced here in the below mentioned link.
    Please look if you find it useful:
    http://careerabap.blogspot.ca/2011/02/custom-dialog-box-message-while-saving.html
    Please reward if you find it useful.
    Regards,
    Nitin.

  • (FP Bug?) - Mc's/Sprite's events triggered when mouse leaves SWF area

    Hi guys,
    I wonder if somebody had a similar problem and can help out. I have a button on y=0 (may be either Movieclip or Sprite) with two events: ROLL_OVER and ROLL_OUT. Now when the mouse pointer leaves the SWF area, both of these events get triggered, even if the button is not hovered at all. There is no MOUSE_LEAVE event defined nor anything like that (see the code below). I realized that changing the y position of the button helps, strangely small numbers don't - if I set y=1 the bug still occurs, but y=20 solves the problem. What the hell? This happens only in Firefox on Mac, Safari seems to work alright. (FF 5.0.1 and 6 tested, on OSX 10.6.8 and 10.7)
    I uploaded a video to youtube in case somebody would be interested of seeing this from Windows (where I assume this doesn't happen, but cannot test at the moment - please leave feedback if you could - http://www.youtube.com/watch?v=YKWl50v_MIo - first 10 seconds are kinda crappy, sorry)
    Is this a Flash Player bug or am I missing something really badly here? Thanks!
    package {
        import flash.display.Sprite;
        import flash.display.Stage;
        import flash.display.StageAlign;
        import flash.display.StageScaleMode;
        import flash.events.Event;
        import flash.events.MouseEvent;
        import flash.display.MovieClip;
        import flash.text.TextField;
        public class Main extends Sprite {
            private var field:TextField;
            public function Main() {
                stage.align = StageAlign.TOP_LEFT;
                stage.scaleMode = StageScaleMode.NO_SCALE;
                //Set up the textfield
                field = new TextField();
                field.x = 200;
                field.y = 200;
                field.border = true;
                field.width = 200;
                field.height = 100;
                field.wordWrap = true;
                addChild(field);
                //Create and set up the MovieClip or Sprite - the MovieClip/Sprite must have content,
                //cannot be empty, otherwise the bug doesn't appear!
                var b:MovieClip = new MovieClip();
                b.graphics.beginFill(0xCCCCCC);
                b.graphics.drawRect(0, 0, 50, 50);
                b.graphics.endFill();
                addChild(b);
                b.y = 0;
                b.addEventListener(MouseEvent.ROLL_OVER, rollOverHandler);
                b.addEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
            private function rollOverHandler(e:MouseEvent):void {
                field.appendText("Over"+new Date().getTime()+"\n");
                field.scrollV = field.maxScrollV;
            private function rollOutHandler(e:MouseEvent):void {
                field.appendText("Out"+new Date().getTime()+"\n");
                field.scrollV = field.maxScrollV;

    Yep, strange thing. I filed a report so feel free to vote. https://bugbase.adobe.com/index.cfm?event=bug&id=2944625

  • Events triggered when the cross on the top-right corner is tapped

    Hi all,
    I am writing a program for Pocket PC using Personal Profile. I am trying to use WindowListener to make my program do something when the cross on the top-right corner of a frame is tapped. However, neither windowClosing nor windowClosed is triggered. Could anyone give me some hints about doing something when the cross on the top-right corner is tapped?
    Thanks,
    Jokeshing

    the answe to this is to use the windowIconified event. This is what is actually trigged when the X is pressed.

  • Any event triggered when SM35 session completed?

    Hi Guys.
    I wanted to know if there is an event that is triggered after a batch input session has been processed? We want to do something as soon as the batch input sessions are completed - may be something like sending mails to users etc.
    I know we can make a separate program that can check system tables to see the status of the session. But I remember reading somewhere sometime that a batch input session's completion triggers an event.
    Please advice.
    Thanks in adv.

    You can use FUNCTION RS_SEND_MAIL_FOR_SPOOLLIST If UNIX is being used,
    you may send a report to any internet mail with the following:
    REPORT ZSNDMAIL.
    DATA: COMND (200) type c.
    DATA: RESULT (200) type c.
    PARAMETERS: FILE (60) type c lower case default '/sapdata/sd_outbound/testmail.dat'.
    PARAMETERS: SUBJECT (60) type c lower case.
    PARAMETERS: EMAIL (60) type c lower case.
    INITIALIZATION.
    TRANSLATE EMAIL TO LOWER CASE.
    START-OF-SELECTION.
    TRANSLATE EMAIL TO LOWER CASE.
    CONCATENATE 'cat' FILE '| elm -s "' subject '"' email into comnd seperated by space.
    CALL 'SYSTEM' ID 'COMMAND' FIELD comnd 'TAB' FIELD UNIX_RESULTS-SYS.
    Loop at Results.
    write: /1 results.
    endloop .
    end-of-selection.

  • Re: AfterValueChange event triggered when it shouldn'tbe

    <[email protected]>
    Hi there,
    I'm hoping that someone out there has experienced the following (and
    knows why it is happening. ) :-)
    I have a couple of windows on which the AfterValueChange event is
    triggered on a field upon hitting the delete key.
    We all know that this should only happen upon leaving the field, ie. the
    field loosing focus. The problem is that I'm trying to recreate this in
    a simple test class, but now it won't happen. I still have the original
    windows on which it is happening, but I would like to construct
    something small and simple to send to Forte.
    Any ideas as to why this could be happening?
    Many thanks in advance.
    JacoIs the "Validate on KeyStroke" property turned on for the widget in the
    original window? I believe the AfterValueChange gets triggered every
    time you hit a key if it is.
    I can't think of anything else, off the top of my head. I haven't had my 1st
    pot of coffee yet....
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Hello Jaco,
    i could not reproduce the problem you have. The best way for a help in your
    case is a little sample which may be modified by others (forte-users).
    Please attach your PEX-Code in your next reply and describe it.
    I'am absolutly sure that we are able to give an helpfull answer.
    One question forward: 'Do you use the FunktionKey-Event in your Window(s)?'
    Sorry, but no other way exists to resolve your problem (We/I'am too far,
    for making a visit :-) ).
    At 08:14 09.10.98 GMT, you wrote:
    <[email protected]>
    Hi there,
    I'm hoping that someone out there has experienced the following (and
    knows why it is happening. ) :-)
    I have a couple of windows on which the AfterValueChange event is
    triggered on a field upon hitting the delete key.
    We all know that this should only happen upon leaving the field, ie. the
    field loosing focus. The problem is that I'm trying to recreate this in
    a simple test class, but now it won't happen. I still have the original
    windows on which it is happening, but I would like to construct
    something small and simple to send to Forte.
    Any ideas as to why this could be happening?
    Many thanks in advance.
    Jaco

  • Event triggered when a popup closes

    Hello All,
    I have a WD4A application. On one view(SECOND_VIEW) of a window(MAIN_WINDOW), there is a button. When the user clicks this button, a popup window displays.
    Now what i want is that when the popup closes, the previous view(second_view) does some action.
    So the question is how do i find out if the popup window has closed? I am able to close it, but how to inform the view that called it, that it is closed.
    P.S. The popup view is in a different window.

    HI Mithun,
    I had a similar requirement for which i used cross component programming technique. I am using the SUBSCRIBE TO BUTTON EVENT in the WDDOINT method of popup window to register an event handler to it's OK button.
      lo_window->subscribe_to_button_event(
                   button            = if_wd_window=>co_button_OK
                   button_text       = 'Select DOC NR.'
                   action_name       = 'SELECT'
                   action_view       = l_api
                   is_default_button = abap_true ).
    I have created a method TRIGGER_EVENT_NAV in COMPONENTCONTROLLER .In my event handle in popup windowr (action 'SELECT' in my case) i am calling the previously mentioned compcontoller method (TRIGGER_EVENT_NAV) by using this statement WD_COMP_CONTROLLER->TRIGGER_EVENT_NAV( ).
    Now create an event in your COMPONENTCONTROLLER ( eg. OP_SECOND_WDW  - this acts as your outbound plug ) and create a corresponding inbound plug in SECOND WINDOW ( IN_SECOND_WDW ). register this inbound plug (IN_SECOND_WDW) to event of component controller (OP_SECOND_WDW ).
    use this statement
    wd_this->fire_OP_SECOND_WDW_evt
    in the method TRIGGER_EVENT_NAV to trigger the event OP_SECOND_WDW from component controller. This event in  turn triggerrs the inbound  plug IN_SECOND_WDW of second window.
    Further naviagtion within the window is the normal INBOUND - OUTBOUND plug navigation.
    Let me know if you need any further input on this issue.
    Thanks,
    Vivek
    Edited by: Vivek Priyadarshi on Sep 29, 2010 4:45 PM

  • Which is first event triggred in interactive report

    pls let me know

    <b>The event are triggered depended on the way the output is generated . </b>
    for eg:
    "Initialization :
    triggered when the report is loaded in memory.
    "At selection-screen output :
    triggered when the selection screen is loaded in memory before being displayed.
    "At selection-screen / <field> :
    before leaving the selection screen.
    "start-of-selection :
    the first event for displaying the report.
    "end-of-selection :
    after the start-of-selection is completed.
    "classiscal report events.
    "top-of-page :
    every time a new page is started in the list.
    "end-of-page :
    every time the list data reaches the footer region of the page.
    "interactive report events.
    "top of page during line selection :
    top of page event for secondary list.
    "at line-selection :
    evey time user dbl-clicks(F2) on the list data.
    "at pF<key> :
    function key from F5 to F12 to perform interactive action on the list.
    reward  points if it is   usefull ....
    Girish

  • Event Triggered?

    Hi all
    Please tell me in the below code i mentioned which is the first event that gets triggered.I think its AT-SELECTION-SCREEn event.
    REPORT  ZPRE_5 .
    tables:s026.
    parameters:wrbtr1 type bseg-wrbtr.
    at selection-screen .
    if wrbtr1 is initial.
    MESSAGE 'Please enter a value' TYPE 'E'.
    endif.
    START-OF-SELECTION.
    Write:/ 'Hi1'.
    Write:/ 'Hi2'.
    END-OF-SELECTION.
    With Regards
    Vijay G

    Hi,
    It is At selection screen to be triggered first.
    then START-OF-SELECTION
    Event related to reports are not triggered based on any statements in ABAP.  
    The event are triggered depended on the way the output is generated . 
    for eg:
    Initialization : triggered when the report is loaded in memory.
    At selection-screen output : triggered when the selection screen is loaded in memory before being displayed.
    At selection-screen / <field> : before leaving the selection screen.
    start-of-selection : the first event for displaying the report.
    end-of-selection : after the start-of-selection is completed.
    classiscal report events.
    top-of-page : every time a new page is started in the list.
    end-of-page : every time the list data reaches the footer region of the page.
    interactive report events.
    top of page during line selection : top of page event for secondary list.
    at line-selection : evey time user dbl-clicks(F2) on the list data.
    at pF<key> : function key from F5 to F12 to perform interactive action on the list.
    Reward If Helpful,
    Jagadish

  • Standard event at end of report

    Hi guys,
    This is a really complex question and my manager expects me to know the answer to this just 'cause I'm certified, but I think this is very expert knowledge. The question is: Is there a standard event triggered at the end of EVERY ABAP report run in the system? The system debugging didn't help me much on this and I didn't discover anything with it. The functionality he's looking for is similar to the one in job scheduling, which allows you to schedule a job after the end of a previous job. So, in some way, we would like to catch the report's end an immediatly execute another on and so on.
    Let me know your thoughts,
    George

    >
    George Ardeleanu wrote:
    > OK, so now I heard about it. We want a standard event or what have you that gets triggered when EVERY report in the system ends. We don't wanna change our custom report for that. I was asking about a general event (standard) that will also give us the report name. Is there such a possibility?
    Hello,
    Never heard of one. I dont think that SAP will provide something of this sort, else it would not have kept space for user-defined events.
    Cheers,
    Suhas

  • *what are the step by step events trigger in interactive report*

    Hi gurus,
    pls explain event by event triggers in interactive report.
    points will be rewarded.
    Thanks,
    Balakrishna.

    Hi,
    Interactive reporting allows the user to participate in retrieving and presenting data at each level during the session.  Instead of presenting one extensive and detailed list with cluttered information, with interactive reporting you can create a condensed basic list from which the user can call detailed information by positioning the cursor and entering commands.
    Detailed information is presented in secondary lists. A secondary list may either overlay the basic list completely or appear in an additional dialog window on the same screen.  The secondary list can itself be interactive again. The basic list is not deleted when secondary list is created.
    User can interact with the system by:
    u2022     Double clicking or pressing F2
    u2022     Selecting menu option
    Like classical report, the interactive report is also event driven. Both the action mentioned above trigger events and code is written to handle these events.  The events triggered by this action are as follows:
    u2022     At line-selection
    u2022     At user-command
    u2022     Top-of-Page During Line-Selection for Secondary Page Header info
    Interactive report consists of one BASIC list and 20 secondary list. Basic list is produced by START-OF-SELECTION event. When the user double clicks on the basic list or chooses the menu option, the secondary list is produced. All the events associated with classical report except end-of-page are applicable only to basic list.
    AT LINE-SELECTION event
    Double clicking is the way most users navigate through programs. Double clicking on basic list or any secondary list triggers the event AT LINE-SELECTION. SY-LSIND denotes the index of the list currently created. For BASIC list it is always 0.  Following piece of code shows how to handle the event.
    Start-of-selection.
    Write: / u2018this is basic listu2019.
    At line-selection.
    Write : u2018this is first secondary listu2019.
    In this case the output will be displayed on basic list i.e.
    This is basic list.
    When user double clicks on this line, the event at line-selection gets triggered and secondary list is produced, i.e. This is first secondary list.
    You can go back to basic list by clicking on F3 or back icon on the standard tool bar.  For this list, the value of sy-lsind will be 1.
    HIDE technique
    In this case thins are much simpler. Consider the case, wherein you display fields from table sflight in basic list. When user double clicks on any sflight-carrid, you are displaying the detailed information related to that particular carrid on secondary list.  Hence there is a need to store the clicked carrid in some variable.  So that you can access this carrid for next list. ABAP/4 has facility; a statement called HIDE, which provides the above functionality.
    HIDE command temporarily stores the content of clicked field in system area.
    Syntax:
    HIDE <FIELDS>.
    This statement stores the contents of variable <f> in relation to the current output line (system field SY-LINNO) internally in the so-called HIDE area. The variable <f> must not necessarily appear on the current line.
    You have to place the HIDE statement always directly after the output statement i.e., WRITE for the variable <f>.  As when you hide the variable, control is passed to next record.  While writing, WRITE statement takes that record from header and writes it on to the list, but when writing onto your interactive list you will miss out 1st record.
    To hide several variables, use chain HIDE statement.
    As soon as the user selects a line for which you stored HIDE fields, the system fills the variables in the program with the values stored.  A line can be selected.
    u2022     By an interactive event.
    For each interactive event, the HIDE fields of the line on which the cursor is positioned during the event are filled with the stored values.
    The HIDE area is a table, in which the system stores the names and values of all HIDE fields for each list and line number.  As soon as they are needed, the system reads the values from the table.  (Please try to find the name of this table.)
    Sy-lsind indicates the index of the list and can be used to handle all the secondary lists.  When the user double clicks on the line or presses F2, sy-lsind is increased by one and this new sy-lsind can be handled.  For example:
    Write: / u2018this is basic listu2019.
    u2022     Will create a basic list.
    If sy-lsind = 1.
    Write: / u2018this is first secondary listu2019.
    Elseif sy-lsind = 2.
    Write: / u2018This is second secondary listu2019.
    Endif.
    When this code is executed,
    u2022     Basic list is produced.
    u2022     When the user clicks on the basic list, sy-lsind becomes one.
    u2022     AT LINE-SELECTION event is triggered.
    u2022     Whatever is written under IF Sy-lsind = 1, gets executed.
    u2022     Secondary list is produced.
    u2022     Again if user clicks on this list, sy-lsind becomes two.
    u2022     AT LINE-SELECTION gets triggered.
    u2022     Code written under IF Sy-lsind = 2, gets executed.
    A sample program for AT LINE-SELECTION.
    AT USER-COMMAND
    When the user selects the menu item or presses any function key, the event that is triggered is AT USER-COMMAND, and can be handled in the program by writing code for the same. The system variable SY-UCOMM stores the function code for the clicked menu item or for the function key and the same can be checked in the program.  Sample code would look like
    AT USER-COMMAND.
    Case sy-ucomm.
    When u2018DISPu2019.
            Select * from sflight.
            Write sflight-carrid, sflight-connid.
            Endselect.
    When u2018EXITu2019.
         LEAVE.
    If GUI status, suppose you have set menu bar for two items and the function code is u2018DISPu2019 and u2018EXITu2019 respectively. If the user clicks the menu item u2018DISPLAYu2019, then function code u2018DISPu2019 is stored in the sy-ucomm and whatever is written under the when u2018DISPu2019, gets executed. This is applicable for EXIT as well.
    Sy-lsind for the screen increases when the user clicks the menu item.
    Usually you have combination of all the three navigations in your user interface, i.e., you have to create menu bar, assign function code for the function keys and write code to handle all this in addition to handling double clicking.
    Things to remember while using all the combinations:
    u2022     Sy-lsind increases even if you select menu-item.
    u2022     When the user double clicks on particular line, value of sy-ucomm is u2018PICK.
    u2022     If you set sy-lsind = 2 for your 4th secondary list, when control is transferred to the 2nd secondary list, all the other lists after 2nd are lost or memory allocated to them is lost.
    u2022     Sy-lisel also gives you the value of clicked line but in this case you cannot differentiate between field. To retrieve the exact field, you have to know the field length of each field.
    u2022     If you use statement SY-LSIND = 1.
    The system reacts to a manipulation of SY-LSIND only at the end of an event, directly before displaying the secondary list. So, if within the processing block, you use statements whose INDEX options access the list with the index SY-LSIND, make sure that you manipulate the SY-LSIND field only after processing these statements. The best way is to have it always at the `as the last statementu2019 of the processing block.
    Regards,
    Bhaskar

  • Event triggered for checkbox in cl_gui_alv_grid

    Hi All ,
    I have a requirement like ,i give PO number on selection-screen.After execution, the items should be displayed on second screen ,which has some options on the top like before GR or after GR .(custom screen designed with cl_gui_alv_grid for display)
    I desgined checkboxes for each row of the line item.user can click on multiple rows and click on EXECUTE button on the screen.After that smartform should trigger and print .
    Now my query is how to capture the checkboxes which the user has entered (thru cl_gui_alv_grid) . Is there any event that gets triggered upon clicking the checkboxes?? I need the data of the corresponding row to process further .User can click on multiple items.
    Please respond
    Thanks

    Hi Hemanth
    You should have a field in your internal table matching the checkbox column in ALV.
    Call method CHECK_CHANGED_DATA of CL_GUI_ALV_GRID on user command for execute button,
    it will set the field  = 'X' for ticked lines in your internal table.
    Then use a loop on your internal table and find selected lines.
    You don't need an event triggered when user clicks.
    Edited by: Bulent Balci on Aug 3, 2010 4:42 PM

  • Require Maximum Rows & Columns to shown in report once generated....

    Hello,
    My client has a query that when a report is generated through Discoverer via the Oracle Self Service, it displays a limited set of rows and columns. The user has to click on the rows and column link (right above the displayed report) and then enter the values of how many rows or columns to exceed, to which then a whole report is refreshed displaying the desired data.
    The query my client has and wants to know is whether there is a possibility that the whole report, including maximum rows and columns, is displayed in one go, rather than clicking and setting up rows and column in every report again and again...??
    Thanks!

    Hi,
    I assume you talk about the discoverer viewer.
    In order to accomplish the user desire, the owner of the report should set once the columns and rows number to the max and save it like this.
    then every user will get the maximum number of rows (999) and columns.
    Tamir

Maybe you are looking for