Sequence of events execution in ABAP reports

can anyone explain me the Sequence of events execution in ABAP reports

Ámit Güjärgoüd wrote:
> search-before-post  Event Must before any posting.Else  <delete-after-input event triggered by moderator> would be trigger and thread may be going to Dump as well without ST22 information(What haapend,How to correct error) available 
>
> Edited by: Ámit Güjärgoüd on Oct 7, 2008 7:42 AM
this looks perfect ABAP event sequence example.

Similar Messages

  • Execution of abap reports

    Hi Everyone,
    Can anyone please provide me some tutorial on execution of Reports using TCD mode or SAPgui.
    it would be fine if i get only steps also.
    Also please let me know how and when to GETGUI.since i get the following error
    Check Whether the Requested Session Is Open and Whether Scripting Is Activated in the RequesteD
    SYSTEM.
    I have checked scripting is enabled in customize local layout
    Thanks in advance,
    best regards,
    Priya
    Edited by: Priya_Agarwal121986 on May 13, 2009 6:39 AM

    Hello,
    You can automate the reports using the transaction SE38.
    Create the script and in the pattern select the TCD RECORD mode and start the transaction SE38 , enter the code and run as you do manually.
    Once the recording is done , parameterize all the input fields and also if the running of ABAP report changes any table check the table if the values are updated.
    If not record the whole process in SAPGUI and use getgui to capture the values in the output and compare the values with your expected values.
    Hope it answers your question.
    Thanks & Best regards,
    Ajau

  • What is the need of END-OF-SELECTION event in ABAP reporting

    Hi,
    Can anyone explain the need of the END-OF-SELECTION event in ABAP Reports?
    This event is used to terminate the previous event. Is that right? or is there any specific use of it?
    and when exactly we use this event while writing a report? I mean what purpose?
    Thanks,
    Paddu.

    Hi,
    END-OF-SELECTION makes more sense when you are using logical database in your program.
    See these links.
    http://help.sap.com/saphelp_46c/helpdata/en/34/8e74266df74873e10000009b38f9b8/frameset.htm
    http://help.sap.com/saphelp_46c/helpdata/en/9f/db9aca35c111d1829f0000e829fbfe/frameset.htm
    After all the data has been selected END-OF-SELECTION event writes the data to the screen
    The END-OF-SELECTION event is triggered in executable programs once the logical database has finished reading all data and before the list processor is started.
    Try to go thro this link.
    http://help.sap.com/saphelp_46c/helpdata/en/9f/db9a1435c111d1829f0000e829fbfe/frameset.htm
    Mostly end-of-selection is used in logical data base. It is not mandatory.
    Ex:
    If you use a logical database in your report then this event is mandatory because when all the data selection from the database is finished this events get triggers.
    For example if you are populating a internal table using a logical data base event 'GET' then you need this event because if you don't use this you get display again and again for each selection.
    START-OF-SELECTION.
    GET PERNR.
    itab-pernr = pernr-pernr.
    append itab.
    *this get triggers after all selection from database.
    END-OF-SELECTION.
    loop at itab.
    write:/ itab-pernr.
    endloop.
    Regards,
    Padmam.

  • Calling IP function in ABAP report

    Hi guys,
    I would like to execute a planning function of BIIP from an ABAP report. Which function module has to be used or is there a different approach? For the old BPS planning function there was the API_SEM_BPS....
    Regards
    Stefan

    Hi Stefan,
    I think there is no way to call a planning function of IP in a report. But we can call planning sequences using the program
    RSPLS_PLSEQ_EXECUTE.
    In your case, you can create a planning sequence which contains the planning function and filter, and in your ABAP report, call the program RSPLS_PLSEQ_EXECUTE using the statement SUBMIT.
    Also, you can use the statement SUBMIT VIA SELECTION-SCREEN which will prompt you to give the Planning Sequence name at run-time of the execution of the ABAP report.
    Hope this helps.
    Please revert if unresolved.
    Regards,
    Srinivas Kamireddy.

  • Event flow in ABAP is different when executed via SE80 vs. via TCODE

    Hi,
    We have many existing custom ABAP report pgms that have a custom transaction code that executes them.  Regardless of how the pgms are invoked, the event sequence in the pgm is INITIALIZATION, AT SELECTION-SCREEN, START-OF-SELECTION. etc. 
    Now, when I create a new pgm with a transaction code to invoke it, the event sequence when executing the pgm via SE38 is as before (All 3 events above are triggered).  However when I invoke the pgm via the custom transaction code, only the event At SELECTION-SCREEN is executed.  (Not the INITIALIZATION or the START-OF-SELECTION events).
    We have upgraded our SAP GUI from 6.4 to 7.1.   We are upgrading our system from 46.C to ECC6.  I get this error in ECC6 and also in the old system 46.C which is causing me to question whether the SAP Gui is involved.  We are using SAP GUI 7.1 in both the 46.C and ECC6 systems.
    Any help will be appreciated!
    Thanks,
    Deb

    Hi All,
    Here is my ABAP Code.  I have put break points in the code so I can track the sequence.
    REPORT ZDEBNEW .
    data zdeb(2) type c.
    tables kna1.
    SELECTION-SCREEN BEGIN OF BLOCK A WITH FRAME TITLE TEXT-002.
    SELECT-OPTIONS: I_KTOKD for KNA1-KTOKD.
    SELECTION-SCREEN END OF BLOCK A.
    INITIALIZATION.
      zdeb = '1'.   "break
      sy-subrc = sy-subrc.
    PAI
    AT SELECTION-SCREEN.
      zdeb = '2'.  "break
      sy-subrc = sy-subrc.
    START-OF-SELECTION.
      zdeb = '3'.  "break
      sy-subrc = sy-subrc.
    END-OF-SELECTION.
      zdeb = '4'.   "break
      sy-subrc = sy-subrc.
    As for the type of transaction I am using...I created it via SE93 and specify SELECTION SCREEN 1000.  I classify it as a Professional User transaction.  One other thing I have noticed is that when I view the new pgm via SE80 I do not see Screen 1000 in the left navigation panel.  If I try to create such a screen in SE80, it says it already exists.  I can see Screen 1000 from tran SE51.  In one of the existing old pgms, I do see screen 1000 when I view SE80.
    Thanks for the help and interest!!!

  • Which event automatically executes in report by default ?

    which event automatically executes in report by default ?

    Hi,
    Abap is a event driven program all the event triggers sequentially but if no event is wrritten then everything comes under start-of-selection and it is triggered automatically.
    By the way sequence of events are:-
      1) initialization
      2) At selection-screen output
      3) At selection-screen on field
      4) At selection-screen on block
      5) At selection-screen
      6) Start-of-selection
      7) End-of-selection
      8) top-of-page
      9) end-of-page
    10) At line selection
    11) At PF<nn>
    12) At User command
    Reward some points
    Bye,
    Anomitro

  • Copy Command in ABAP report

    HI Gurus,
    I have a ABAP report - basic list, with lot of batch data on it. based on the report they will copy the batch numbers and paste in standard transactions.
    Users complaining to do a Ctrl + Y and then Ctrl + C then Ctrl + V to paste the batch numbers.
    Is there anything we can do programatically using hot sopt on batch numbers so we get the selected BATCH and execute copy command programatically when they click on BATCH number on basic list.
    All they need to do is Ctrl + V on standard transactions.
    Is there anyway to achieve this?
    Thanks Giri

    Giri - you would probably get more results if you mark this as a question. That way you can assign po1nts to helpful answers.
    In any event why don't you just do a CALL TRANSACTION when the user double clicks on a line?
    Rob

  • SAP ERP 2005 SR 2 IDES installation error in step "Run ABAP Reports"

    Hello,
    I'm installing SAP ERP 2005 SR 2 IDES on Win2003 R2 SP2 and Oracle 10.2 to create a test-system for my diploma thesis.
    During the step "Import ABAP" I got the following message:
    object_checker.log
    ERROR: 2008-05-21 20:50:38
    1 objects have error/ignore/execute or unknown status in the task lines.
    Invalid objects are saved in 'invalid_objects.txt' file.
    invalid_objects.txt
    package   object  type  action  status
    SAPDFACT  ?N      pkey  create
    but the installation went on until "Run ABAP Reports".
    Warnings and Errors in sapinst.log are:
    WARNING 2008-05-27 15:09:36
    Execution of the command "C:\usr\sap\IMP\SYS\exe\uc\NTI386\stopsap.exe name=IMP nr=00 SAPDIAHOST=imperia-sap" finished with return code -1. Output:
    STOPSAP: execution of C:\usr\sap\IMP\SYS\exe\uc\NTI386\sapntwaitforhalt.exe name=IMP nr=00 SAPDIAHOST=imperia-sap 3600 failed
    Details are written to C:\Programme\sapinst_instdir\ERP\SYSTEM\ORA\CENTRAL\AS\stopsap.log
    WARNING 2008-05-27 15:09:36
    Could not stop instance 'DVEBMGS00' of SAP system IMP.
    WARNING 2008-05-27 15:09:38
    Connect to message server (imperia-sap/3900) failed: NIECONN_REFUSED.
    WARNING[E] 2008-05-27 15:12:05
    FSL-06002  Error 1060 (Der angegebene Dienst ist kein installierter Dienst.) in execution of a 'OpenService' function, line (266), with parameter (sapccmsr.00).
    WARNING[E] 2008-05-27 15:21:42
    FRF-00007  Unable to open RFC connection.
    ERROR 2008-05-27 16:30:15
    FRF-00025  Unable to call function. Error message: connection closed without message (CM_NO_DATA_RECEIVED) .
    INFO 2008-05-27 16:30:19
    RFC connection closed.
    ERROR 2008-05-27 16:30:45
    MUT-03025  Caught ERfcExcept in Modulecall: connection closed without message (CM_NO_DATA_RECEIVED).
    ERROR 2008-05-27 16:30:47
    FCO-00011  The step runRADDBDIF with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CI_Instance|ind|ind|ind|ind|11|0|NW_CI_Instance_ABAP_Reports|ind|ind|ind|ind|2|0|runRADDBDIF was executed with status ERROR .
    Full log of today is available at [http://pastebin.com/f43531f97]
    Has anyone an idea how I can finish this installation?
    Thx
    Daniele

    It seems that the system did not come up and thus the RFC call fails.
    What´s the output of
    dev_w0
    dev_disp
    (in the ...work directory)?
    Markus

  • How to show Headers in ABAP report

    hii folks,
    plz try to solve my quesions:
    hw to show  two Headers in ABAP report output, like
    eg:
    for first two fields(vendor  A/C no. vendor name ) i have to shw header name like VENDOR  PR. DETAILS & for the nxt following fields(vendor city, state, country)i have to shw VENDOR ADDRESS.(plz gv a exaple)
    2Q) A  INISILIZATION event in report hw many times it triggers.
    3Q) In a ALV report once i double click on a selected record it has to shw its corresponing details.for(DOUBLE CLICK what we use & where i have to defind it)
    thanking u
    sweta.

    1. Please let me know whether it is for Classic list report or ALV.
    2. Initilization is triggered only once when the report is loaded to memmory.
    3.
    3.1.) Declare user_command in events:
    DATA: ls_event type slis_alv_event.
    move 'USER_COMMAND' to ls_event-form.
    append ls_event to gt_events.
    3.2.) Getting cell value ." within the form USER_COMMAND:
    FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
    RS_SELFIELD TYPE SLIS_SELFIELD.
    Check function code
    CASE R_UCOMM.
    WHEN '&IC1'. "--> check your own sy-ucomm once you double click the line item
    Check field clicked on within ALVgrid report
    IF RS_SELFIELD-FIELDNAME = 'EBELN'.
    Read data table, using index of row user clicked on
    READ TABLE IT_EKKO INTO WA_EKKO INDEX RS_SELFIELD-TABINDEX.
    ENDIF.
    ENDCASE.
    ENDFORM.
    For More details, please refer to following threads.
    Re: Drill down report
    double click on cell in alv report
    Regards,
    Lijo Joseph
    *reward if useful

  • How to open a Promotion from an ABAP report/program?

    Hello SDN,
    I have a normal ABAP report and would like to open a specific promotion (markteing project) after a PAI event.
    I know it is the OBJTYPE=BUS2010030 (the businesspartner is objtype BUS1006), but how can I open it?
    Regards from Germany,
    Friederike

    The solution:
    DATA: lt_time   TYPE crmt_mktpl_cldr_time_ranges,
          lo_tpm    TYPE REF TO cl_crm_mktpl_cldr_data,
         prom_guid TYPE cgpl_guid16.
      CREATE OBJECT lo_tpm
      EXPORTING
        im_add_periods = lt_time.
    Jump to the Marketing Planner
      CALL METHOD lo_tpm->navigate_to_object
        EXPORTING
          im_data_object = promotion_guid.

  • Error when running abap report

    Hai,
    I am trying to install sap netweaver 7.0 with oracle database in windows platform.there is an error (RADDBDIF was executed with status error)occured when it starts running the abap report the error is
    ERROR file opened at 20101009 160212 India Standard , SAP-REL 700,0,66 RFC-VER 3 841439 MT-SL
    T:4660 Error in program 'sapinst': ======>      Exception condition "WRITE_FAILED" raised.                                     
    T:4660 Error in program 'sapinst': <* RfcReceive [2] : returns 3:RFC_SYS_EXCEPTION
    T:4660 Error in program 'sapinst': <* RfcCallReceive [2] : returns 3:RFC_SYS_EXCEPTION
    >TS> Sat Oct 09 16:06:38 2010
    T:4660 Error in program 'sapinst': ======>      Exception condition "WRITE_FAILED" raised.                                     
    T:4660 Error in program 'sapinst': <* RfcReceive [3] : returns 3:RFC_SYS_EXCEPTION
    T:4660 Error in program 'sapinst': <* RfcCallReceive [3] : returns 3:RFC_SYS_EXCEPTION
    ERROR file opened at 20101009 163515 India "WRITE_FAILED" raised.                                     
    T:4660 Error in program 'sapinst': <* RfcReceive [4] : returns 3:RFC_SStandard , SAP-REL 700,0,66 RFC-VER 3 841439 MT-SL
    T:4660 Error in program 'sapinst': ======>      Exception condition YS_EXCEPTION
    T:4660 Error in program 'sapinst': <* RfcCallReceive [4] : returns 3:RFC_SYS_EXCEPTIION
    Please help me to solve this problem.

    Hi Steve,
    Usually there is a common reasons why the execution of report             
    RADDBDIF fails with 'WRITE_FAILED':                                                                               
    1. There are problems with read/write permissions for user <sid>adm       
    which prevent a proper access of either '/usr/sap/trans' or               
    '/usr/sap/trans/tmp' - you should check this very carefully especially    
    when the 'trans'-directory is NFS-mounted from a different host.    
    2. There are problems with the hostname resolution (reverse hostname      
    lookup).                     
    Please check the file hosts whether it contains the following entry      
    <IP number of transport host> <Name of transp.host> SAPTRANSHOST                                                                               
    3. Permission error during the logon -                                     
    did you change the PWD of DDIC as you set in the beginning of the          
    installation. Did you try to logon with DDIC into the system through       
    SAPLOGON? it it working?                      
    4. Please do a test, log onto your system with a SAPGUI(with user DDIC into   
    Client 000) and check whether Reports RSWBOINS and RADDBDIF can be         
    executed manually in Transaction SE38.                                     
    If manual execution of Report "RADDBDIF" in Transaction SE38 leads to a    
    short dump "WRITE_FAILED", the alias "SAPTRANSHOST" was probably not       
    found or there were problems when writing into the transport directory.    
    During the installation, if you enter the local computer for the           
    request for the SAP Tranport Host, this is used correctly. However, if     
    you enter another host name, it must also be accessible under the alias    
    "SAPTRANSHOST"; otherwise, R/3 will not function correctly and the         
    termination mentioned above occurs.                                       
    5.                                                                       
    Please also review Note 117395 :: Authorization problems                  
    for file I/O on Windows                                                   
    Regards,
    Paul

  • Want to have own selection screen  in HR-ABAP report using LDB

    Hi experts,
            I am working on HR-ABAP report using LDB pnp and infotypes..But, here we get the built in selection criterion..but I want my own selection screen to be displayed..whats the solution for this??? Is it possible to create my own selection screen instead of default one..and how???
    Please help me..its very urgent..

    Hi,
    chk this out:
    Create Report Categories                                                                               
    In this step, you define the report categories and determine the layout
       of the standard selection screen for these report categories. You can 
       create report categories for programs or queries that are based on the
       PNP or PNPCE logical databases.                                                                               
    The definition of report categories is divided into two sections:                                                                               
    o   In the Change Report Category view, you define general attributes 
           such as sort order, input fields for date, and so on.                                                                               
    o   In the Change Selection Criteria view, you define which selection 
           fields of the logical database should be avaliable on the selection
           screen.                                                                               
    Example                                                                               
    You want to set up your system so that your employees can only start  
       evaluation reports for Payroll if they use a payroll area. Within a   
       payroll area, you should be able to select according to personnel     
       number. Additional selection criteria should not be possible and you  
       should not be allowed to enter a sort sequence.                       
    Standard settings                                                                               
    The standard system already contains report categories. You can find the 
    attributes of the report categories in the table.                                                                               
    Note the following five report categories in particular:                                                                               
    o   Report category ' ' is the SAP default report category for     
        programs that are based on the PNP logical database.                                                                               
    o   Report category PNPCE is the SAP default category for programs that  
        are based on the PNPCE logical database.                                                                               
    o   Report category '00000000' is the customer-specific default category 
        for programs that are based on the PNP logical database.                                                                               
    o   Report category '0PNPCE' is the customer-specific default category   
        for programs that are based on the PNPCE logical database.                                                                               
    o   Report category __X2001 is the default category for Queries  that    
        are based on an InfoSet of the PNP LDB.                                                                               
    o   Report category QUEPNPCE is the default category for queries that    
        are based on an InfoSet of the PNPCE LDB.                                                                               
    The default report categories are used when a report is called if    
        the report has not been assigned a report category.                  
    Parameters and Options for Report Categories of the LDB PNP and PNPCE  
    Parameters and Options in Screen Area General Data                     
       If you activate this parameter, you can only enter data on the data
       selection period if you use reports that have been assigned. The   
       same date entries are then used for the person selection as for the
       date selection.                                                                               
    o   Matchcode allowed                                                  
       If you activate this parameter, you have use of a Matchcode        
       pushbutton (search help) if you use reports that have been assigned.
       This pushbutton enables you to perform the person selection.                                                                               
    o   Sort allowed                                                       
       If you activate this parameter, you have use of a Sort pushbutton if
       you use report that have been assigned. This pushbutton enables you
       to define a sort order before you execute the report.                                                                               
    o   Organizational structure allowed                                   
       If you activate this parameter, you have use of an Org.Structure   
       pushbutton if you use reports that have been assigned. This        
       pushbutton enables you to perform the person selection.            
       Note:                                                              
       For more information about these options, see the online           
       documentation under this path:                                     
       SAP Library -> Human Resources -> Reporting in Human Resources     
       Management -> Standard HR Reports -> Report Selection Screen in    
       Human Resources Management.                                                                               
    Parameters and Options in Screen Areas Data Selection Period/Person    
    Selection Period/Payroll Area/Period/Year                                                                               
    o   Options for data selection period and person selection period (key 
        date and so on)                                                    
        Here you define which options for date and person selection are    
        available for reports that have been assigned.                                                                               
    o   Options for payroll area/period/year                               
        Here you define which options for selection using payroll          
        area/period/year are available for reports that have been assigned.                                                                               
    Parameters and Options in Screen Area Selection View                                                                               
    o   Type/Name                                                          
        This parameter enables you to use selection views to define report 
        categories. You use the selection view selected here to determine  
        which fields are available in the Dynamic Selectionsy.                                                                               
    Note:                                                              
        You create selection views for the PNP and PNPCE logical databases 
        in the Object Navigator (SE80):                                    
        1. Start the Object Navigator (SE80)                               
        2. Choose Workbench -> Edit Object.                                
        3. Choose the More... tab page and the Selection view on this tab  
        page.                                                              
        4. Choose Create.                                                  
        5. In the Create Selection View dialog box, choose the For any     
        tables option.                                                     
        6. In the Name of view field, enter a name for your selection view.
        7. In the Tables dialog box, enter the name of the table from which
        you want to use fields.                                            
        Note:                                                              
        When you enter the table name, observe the naming convention in    
        Personnel Administration:                                          
        Infotype number: nnnn -> table name: PAnnnn                        
        8. Choose Continue.                                                
        9. In the Functional groups area, define functional groups by      
        assigning a name and a number.                                     
        10. Assign fields from the selected tables to the functional groups
        by entering the number of the desired functional group in front of 
        each field.                                                        
        11. Save your entries.                                                                               
    For more information about adjusting the dynamic selections using 
    your own selection views, see the online documentation under the  
    following menu path:                                              
    SAP Library -> Human Resources -> Reporting in Human Resources    
    Management -> HR Standard Reports -> Report Selection Screen in   
    Human Resources Management -> Enhancing the Selection Screen -    
    Dynamic Selections.                                                                               
    If you do not want to offer dynamic selections, make the following
    settings:                                                                               
    -   LDB PNP: In the Selection view field, enter PNP_NO_FREE_SEL.  
    -   LDB PNPCE: Leave the Selection view field empty.                                                                               
    Parameters and Options in Screen Area Data Selection Period/Person   
    Selection Period/Payroll Area/Period/Year                                                                               
    o   Available input parameters, date or period entry (today, key date,
       all, and so on), and standard value.                             
       Using the Standard value option, you define which of the selected
       options is shown.                                                                               
    Parameters and Options in Screen Area CE Selection Fields                                                                               
    o   CE selection fields (external person ID, grouping reason, grouping
       value)                                                           
       Using the options in this area, you define whether the external  
       person Id, grouping reason, or grouping value are available on the
       selection screen.                                                
       Note:                                                            
       These parameters are only relevant for you if you implement      
       Concurrent Employment (see also note 517071).                                                                               
    Parameters and Options in Screen Area Selection view                                                                               
    o   Dynamic selections as dialog box                                  
        If this switch is set, you can call the dynamic selections as a   
        dialog box.                                                                               
    o   Dynamic selections active                                         
        If this switch is set, the dynamic selections of the logical      
        database are active at the start of the report.                                                                               
    Note that the following combinations are possible for the last two
        options mentioned:                                                                               
    Dyn.Sel. as dialog box/Dyn.Sel. active: inactive/inactive         
        Dyn.Sel. as dialog box/Dyn.Sel. active: inactive/active           
        Dyn.Sel. as dialog box/Dyn.Sel. active: active/inactive                                                                               
    Activities                                                                               
    1.  Choose Edit -> New entries.                                                                               
    2.  Enter an abbreviation and a long text for the report category.         
        The customer name range for report categories is 0-9.                                                                               
    3.  Select the For the PNPCE logical database checkbox, if you want to     
        create a report category for a program or for queries of the PNPCE     
        logical database.                                                                               
    4.  In the General Data screen area, choose the desired options.           
        If you want to use selection IDs, you must have first created and      
        grouped selection Ids. The IMG path to do this is given in the         
        parameter description section.                                                                               
    5.  In the Data selection period/person selection period or Selection      
        period screen area, choose the desired options.                                                                               
    6.  In the Selection view screen area, choose the desired options.                                                                               
    7.  In the CE selection fields screen area, choose the desired (only       
        possible for report categories of the LDB PNPCE).                                                                               
    8.  Save your entries.                                                                               
    9.  Choose the subactivity Permitted selection criteria.                                                                               
    10. Choose Edit -> New entries.                                                                               
    11. In the Select option field, use the input help to select each field    
        that should be available on the selection screen.                                                                               
    12. Select the checkbox in the 1.page column, if you want this selection   
        field to be available directly when you call the selection screen.                                                                               
    Further notes                                                                               
    13. If you want to copy entries, you still have to enter the selection     
        parameters again in the subsequent screen.                                                                               
    o   If you create the report category '000000000', a selection screen is   
        generated according to report category '00000000'for all reports for   
        which a report category has not explicitly been assigned.                                                                               
    Assign Report Categories                                                                               
    In this step, you assign a report category to your reports.                                                                               
    Example                                                                               
    You have created your own report, for example ZPCTEST1, and would like
        it to have the selection screen that corresponds to that of the       
        evaluation report for Payroll, which is assigned to report category   
        '__M00001'.                                                           
        Assign report category '__M00001' to the report.                                                                               
    Requirements                                                                               
    You must have defined the Report Categories.                                                                               
    Standard settings                                                                               
    SAP Standard Reports:                                                                               
    In the standard system, reports are assigned a report category. If you
        want to override these assignments, perform the activities described  
        here. If you want to assign report categories to standard reports using
        SE38, this represents a modification.                                                                               
    Customer-Specific Reports:                                                                               
    For reports you have developed yourself, you can either assign report 
        categories by performing the activities described here or directly in SE38.
    Recommendation                                                                               
    Only assign a report category if you have created your own reports or if  
    the selection screens in the standard system do not meet your             
    requirements.                                                                               
    Activities                                                                               
    1.  Choose Edit -> New entries.                                                                               
    2.  Perform the required assignment using the Program name and Report     
       category fields.                                                                               
    3.  Save your entries.                   
    reward if helpful
    regards,
    madhumitha

  • Use of Events in OOPS ABAP

    Hi all,
        Can anybody please say me what is the exact use of EVENTS in OOPs ABAP. Can anybody please explain me with an example.
    Thanks in advance.

    hi,
    By triggering an event, an object or a class announces a change of state, or that a certain state has been
    achieved.
    Events link objects or classes more loosely than direct method calls do. Method calls establish precisely
    when and in which statement sequence the method is called.
    However, with events, the reaction of the
    object to the event is determined by the triggering of the event itself.
    Events are most often used in GUI implementations.
    Other external object models, such as COM, ActiveX Controls etc, also provide events.
    At the moment of implementation, a class defines its
    instance events (using the statement EVENTS) and
    static events (using the statement CLASS-EVENTS)
    Classes or their instances that receive a message when an event is triggered at runtime and want to react
    to this event define event handler methods.
    Statement : (CLASS-)METHODS <handler_method> FOR EVENT <event> OF <classname>.
    These classes or their instances register themselves at runtime to one or more events.
    Statement : SET HANDLER <handler_method> FOR <reference>. (for instance events)
    SET HANDLER <handler_method>. (for static events).
    A class or an instance can trigger an event at runtime using the statement RAISE EVENT.
    Both instance and static events can be triggered in instance methods.
    Only static events can be triggered in static methods.
    Events can only have EXPORTING parameters which must be passed by value.
    Triggering an event using the statement RAISE EVENT has the following effect:
    the program flow is interrupted at that point
    the event handler methods registered to this event are called and processed once all event handler methods have been executed, the program flow starts again.
    If an event handler method in turn triggers an event, then the program flow is again interrupted and all event handler methods are executed (nesting).
    Events are registered using the command SET HANDLER. Registration is only active at program runtime.
    Events cannot be persistent.
    You want to register an object to an event belonging to another object. The SET HANDLER... statement
    enters the registration in that object’s list. All handlers for one event are entered in this list.
    When the event is triggered, the list shows which event handler methods need to be called.
    Event handler methods are triggered by events (RAISE EVENT), although they can also be called like
    normal methods (CALL METHOD).
    The interface of the event handler method consists solely of IMPORTING parameters. Only parameters
    from the definition of the corresponding event (event interface) can be used.
    An event interface only has EXPORTING parameters and is defined using the EVENTS statement in the declaration of the event. The
    parameters are typed in the event definition and the typing is passed to the event handler method, that is,
    the interface parameters of the event handler method cannot be typed in the definition of the event handler
    method.
    In addition to the explicitly defined event interface parameters, the implicit parameter SENDER can also be
    listed as an IMPORTING parameter for instance events. This passes on a reference to the object that
    triggered the event.
    Events are also subject to the visibility concept and can therefore be either public, protected or private.
    Visibility establishes authorization for event handling :
    all users only users within that class or its subclasses
    only users in that class.
    Event handler methods also have visibility characteristics. Event handler methods, however, can only have
    the same visibility or more restricted visibility than the events they refer to.
    The visibility of event handler methods establishes authorization for SET-HANDLER statements: SET
    HANDLER statements can be made anywhere in that class and its subclasses only in that class
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 14, 2008 2:45 PM

  • Pushbutton on the application bar on an abap report

    Hello All,
    I need to have a pushbutton (labelled Download) on the application bar on the abap report screen .
    This button should enable me to download the report contents in a file format (like excel).
    Please can you guys help me acheive this.How should the button with this functionality be placed in application bar?
    Thanks in advance for the kind help
    Swati

    Hi Swathi,
    In such case, as said above, create a new GUi status and then assign to the report using the below statement:
    AT PFnn.
    Effect
    This obsolete statement defines an event block whose event is triggered by the ABAP runtime environment during list display - provided the screen cursor is on a list line and a function is selected using the function code PFnn. Here nn stands for a number between 01 and 24. In the standard list status, these function codes are assigned to the function keys of the input device.
    Then what processing needs to be done when the user presses the button, will be written in the below control statement..
    AT USER-COMMAND
    Effect
    This statement defines an event block whose event is triggered by the ABAP runtime environment if, during the display of a screen list, a function with a self-defined function code was chosen.
    Note
    Self-defined function codes are all those that include character combinations, except for the following:
    The function codes "PICK" and "PFnn" ("nn"stands for 01 to 24) do not cause the event AT USER-COMMAND, but the events AT LINE-SELECTION and AT PFnn.
    All function codes that start with the character "%" are interpreted as system functions and do not cause the event AT USER-COMMAND. The system functions for lists are listed in the following table 1.
    The function codes in the following table 2, likewise, do not cause the event AT USER-COMMAND, but are handled by the list processor.
    Table 1
    Function code Function
    %CTX Call a context menu
    %EX Exit
    %PC Save to file
    %PRI Print
    %SC Search for ...
    %SC+ Find next
    %SL Search in office
    %ST Save to report tree
    Table 2
    Function code Function
    BACK Back
    P- Scroll to previous page
    P-- Scroll to first page
    P+ Scroll to next page
    P++ Scroll to last page
    PFILE name Store list lines in a text file named "abap.lst" in standard character representation in the standard directory of the application server. If a name is entered using name, this is converted to lowercase letters and used as the file name.
    PL- Scroll to first line of the page
    PL-n Scroll n lines back
    PL+ Scroll to last line of the page
    PL+n Scroll n lines up
    PNOP No effect
    PP- Scroll back one page
    PP-n Scroll n pages back
    PP+ Scroll one page forward
    PP+n Scroll n pages forwad
    PPn Scroll to beginning of page n
    PRI, PRINT Print
    PS-- Scroll to first column
    PS++ Scroll to last column
    PS- Scroll one column to the left
    PS-n Scroll n columns to the left
    PS+ Scroll one column to the right
    PS+n Scroll n columns to the right
    PSn Scroll to column n
    PZn Scroll to line n
    RW Cancel
    Example
    This program works with a self-defined GUI status MYLIST. The function that is linked there with the function code MY_SELECTION causes the event AT USER-COMMAND during list display and also creates details lists.
    REPORT demo_at_user_command.
    START-OF-SELECTION.
      SET PF-STATUS 'MYLIST'.
      WRITE 'List line'.
    AT USER-COMMAND.
      IF sy-lsind = 20.
        SET PF-STATUS 'MYLIST' EXCLUDING 'MY_SELECTION'.
      ENDIF.
      CASE sy-ucomm.
        WHEN 'MY_SELECTION'.
          WRITE: / 'You worked on list', sy-listi,
                 / 'You are on list', sy-lsind.
      ENDCASE.
    Regards
    Shiva

  • 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

Maybe you are looking for