Diff btw events in reports

what is the diff btw start of selection and end of selection

HI Raja,
Check out the link.
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9a0735c111d1829f0000e829fbfe/content.htm
<b>START-OF-SELECTION</b>      Point after processing the selection screen
The event START-OF-SELECTION gives you the possibility of creating a processing block after processing the selection screen and before accessing database tables using a logical database. You can use this processing block, for example, to set the values of internal fields or to write informational statements onto the output screen.
At the START-OF-SELECTION event, also all statements are processed that are not attached to an event keyword except those that are written behind a FORM-ENDFORM block
<b>END-OF-SELECTION      </b>          Point after processing all lines offered
by the logical database.
To define a processing block after the system has read and processed all database tables of a logical database, use the keyword END-OF-SELECTION.
This is the last of the events called by the runtime environment to occur. It is triggered after all of the data has been read from the logical database, and before the list processor is started. You can use the corresponding event block to process and format the data that the program has stored in internal tables or extracts during the various GET events.
The following program is connected to the logical database F1S.
REPORT EVENT_DEMO.
NODES SPFLI.
DATA: SPFLI_TAB TYPE SORTED TABLE OF SPFLI
WITH UNIQUE KEY CITYFROM CITYTO CARRID CONNID,
SPFLI_LINE TYPE SPFLI.
START-OF-SELECTION.
WRITE 'Demo program for END-OF-SELECTION'.
SKIP.
GET SPFLI FIELDS CARRID CONNID CITYFROM CITYTO.
MOVE-CORRESPONDING SPFLI TO SPFLI_LINE.
INSERT SPFLI_LINE INTO TABLE SPFLI_TAB.
END-OF-SELECTION.
LOOP AT SPFLI_TAB INTO SPFLI_LINE.
WRITE: / SPFLI_LINE-CITYFROM,
SPFLI_LINE-CITYTO,
SPFLI_LINE-CARRID,
SPFLI_LINE-CONNID.
ENDLOOP.
This program fills a sorted table with data from the logical database in the GET SPFLI event, and displays them in a list in the END-OF-SELECTIOn event. Depending on what you enter on the selection screen, the beginning of the list display might look like this:
For rest of events check:
http://help.sap.com/saphelp_46c/helpdata/en/9f/db9a1435c111d1829f0000e829fbfe/frameset.htm
Reward points if this Helps.
Manish
Message was edited by:
        Manish Kumar
Message was edited by:
        Manish Kumar

Similar Messages

  • Diff btw R3 and BI reporting

    Hi All
    Pls explain me what is the exact diff btw R3 reporting i.e, FI,MM,SD,PS  and BI reporting.
    I have searched the forum but not able to find the answer
    Bhanu

    Hello,
    You have your answer here:
    BW vs. R/3 Reporting
    Regards,
    Jorge Diogo

  • Events in reporting

    Hi,
    experts please tell me the events in interactive reports in order and when they trigger.
    regards,
    vijay.

    Hi Vijay,
    You can also look at the following thread from SDN:
    Re: What is the Diff Classical and Interactive  report
    Sudha

  • Training & Event Management - Reports

    Dear Guru's
    I am implimenting TEM for my client for the first and am very new to the module. I have completed the configuration and testing.
    ISSUE: now when i try to extract a report based on feedback/Appraisals via PD/TEM - infosystems, i am only getting the header of the reports. Once i double click the template name only its leading to show the ratings and feedback.
    this will not work for my customer. i need a report which can extract the ratings per business event.
    Is there any way i can get these reports output in Grid format, similar to OM n PA reports and extract to an excel??.
    It will work for me even if i can get event wise report with all the ratings and feedback and if it could be extracted into a spreadsheet. as year end there would be a analysis done on the performances of the trainings conducted and attendees.
    Request you all if there is any standard process to get the expected details. if not...help me with some process that can be induced to get the expected.
    Apprecaite your quick responce.
    THanks in Advance.
    Priya R

    Hi Sandeep,
    i used S_PH9_46000451 as advised in the forum and this only gives the header info but not the individual ratings per event or employee.
    learn that FM HRHAP_DOCUMENT_GET_DETAIL can be used to get the appropriate report with ratings.
    Correct and help me if i have to do any thing else to get the result.
    Thanks,
    Priya

  • Which is the mandatory event in report program?

    which is the mandatory event in report program?
    Plz its urgent

    Hi,
    Its true, there is no mandatory event in a report program as such. You use events to organize your statements and control the flow of your program.
    For eg, following are some of the events used with their purpose :
    First event -
    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 : 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.
    at user-command
    And If the program contains no explicitly defined event blocks, all the statements in the program form the entire event block START-OF-SELECTION, which need not be defined explicitly but is taken by default.
    Hope it helps.

  • Proper use of END-OF-SELECTION event in report programme

    Hi,
    If we will write "WRITE" statements in side START-OF-SELECTION then it will help me to display the output.Then what is the need of END-OF-SELECTION .
    Can any body please tell me the <b>proper use of END-OF-SELECTION event in report programme.</b>

    This is the last of the events called by the runtime environment to occur. It is triggered after all of the data has been read from the logical database, and before the list processor is started.
    <b>In report programs using LDB for every value selected the program issues the output, to control this you would use END-OF-SELECTION.</b> Now if you call your output in this event, the output is made only after all the values are selected as per the selection criteria.
    suppose while coding, u need a logic like below:
    if a condition is satisfied continue with the report
    and if not satisfied, then display a message and end the report.
    then u can code like below.
    start-of-slection.
    if a = <condition>.
    do the following.......
    else.
    stop.
    end-of-selection.
    write: 'THIS IS END'.
    stop command triggers end-of-slection from anywhere.
    I hope it helps.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • Events of reports

    hi gurus,
           what are events in reports and when there are triggering.

    HI
    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 . 
    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.
    <b>interactive report events.</b>
    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.
    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.
    events in reports
    events of reports
    check the above threads
    Sail

  • WHAT ARE SUBEVENTS OF DIFFERENT EVENTS IN REPORTS ?

    WHAT ARE SUBEVENTS OF DIFFERENT EVENTS IN REPORTS ?
    BEST REGARDS,
    RYAN

    hi,
    output events are.........
    <b>start-of-selection.</b>
    using this event we can genarate basic list.
    <b>end-of-selection.</b>
    we can use this event also for genarating basic list
    <b>top-of-page</b>.
    this event is related to list, we can use this event to providing list header.
    <b>end-of-page.</b>
    this event is related to list, we can use this event to providing list footer.
    if our program reading data from logical database, in that case GET and
    GET LATE events triggered to  genarate report.
    <u><b>interactive repotrs.</b></u>
    we use <b>AT LINE -SELECTION</b> and <b>AT USER-COMMAND</b> events to genarate secondary events based on user actions.
    <b>TOP-OF-PAGE DURING LINE-SELECTION</b> EVENT, provides page heading to all secondary lists.
    PBO and PAI   events also used to genarating list.
    regards,
    AshokReddy.

  • WHAT ARE SUB EVENTS OF EVENTS IN REPORTS ?

    WHAT ARE SUB EVENTS OF EVENTS IN REPORTS I.E INITIALIZATION, AT SELECTION SCREEN, START OF SELECTION, END OF SELECTION. WHAT ALL EVENTS HAVE SUB EVENTS ? PLEASE EXPLAIN IN DETAIL.
    REWARD POINTS GUARENTEED FOR ANSWERS!!

    hi,
    Check out these:
    Processing time Meaning Default setting
    __BEGIN_OF_PROCESSING__ Before the beginning of
    data processing
    (blank)
    __BEGIN_OF_TRANSACTION__ Before the beginning of
    transaction data
    processing
    (blank)
    __BEGIN_OF_RECORD__ Before applying the
    conversion rules for a
    source structure
    Initialize the structure <segment>
    (Name of target structure)
    Batch Input, Direct Input:
    <segment> = init_<segment>.
    BAPI, IDoc:
    g_edidd_segnam = '...'.
    g_edidd_segnum = '....'.
    g_edidd_psgnum = '......'.
    g_edidd_hlevel = '..'.
    Clear <segment>.
    __END_OF_RECORD After applying the
    conversion rules for a
    source structure
    Transfer_record.
    __END_OF_TRANSACTION__ After finishing transaction
    processing
    Transfer_transaction.
    __END_OF_PROCESSING__ After finishing data
    processing
    (blank)
    transfer_record. Transfers the current record (i.e. for the current target
    structure) to the output buffer.
    transfer_this_record '...'. Transfers a record of another target structure to the output
    buffer. The name of the target structure has to be specified as
    argument in single quotes.
    at_first_transfer_record. Transfers the current record to the output buffer, if it is the first
    transaction.
    on_change_transfer_record. Transfers the current record to the output buffer, if it has
    changed compared to the last record.
    transfer_transaction. Writes the current transaction to an output file. All records of
    Legacy System Migration Workbench
    38
    the output buffer are transferred to the output file.
    skip_record. The current record is not transferred to the output buffer.
    skip_transaction. The current transaction is not written to the output file.

  • Tell me 'events in reports' in order wise

    tell me 'events in reports' in order wise
    whether it is same as interactive and ALV's ?

    Hi
    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.
    Rgds,
    Prajith

  • Priority events in reports

    what is the seq of events that will trigger in reports

    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 .
    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.
    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.
    events in reports
    events of reports
    check the above threads
    plz reward if found useful
    Message was edited by:
            p498863

  • What i sthe diff b/w   Interactive Report  and ALV Interactive report

    Hi All,
    I want to know the basic diff b/w Interactive  report and ALV interactive report.
    Can any one tell me the exact diif.
    Thanks in Advance,
    Jd

    hi jagadish,
    both are used for same purpose
    interactive report means an output list which displays basic details & allows user to interact, so that a new list is populated based on user-selection. With interactive list, the user can actively control data retrieval and display during the session. a total no of 21 lists including main list are genearetd in interactive lists.
    I suggest to use ALV.by using ALV we can display in Grid as well as list format.
    Output format will be good . Sorting,Filtering facilities are provided by itself.We can have column headings also. using oops we can also do alv reporting.
    if helpful reward some points.
    with regards,
    suresh babu aluri.

  • Problem in Event driven report

    Dear Gurus...I created the following procedure to implement Event Driven Reporting:
    CREATE OR REPLACE procedure ABC.eve_drv_rep as
    myPlist system.SRW_PARAMLIST;
    myIdent system.SRW.Job_Ident;
    BEGIN
    myPlist := system.SRW_PARAMLIST(system.SRW_PARAMETER('',''));
    system.srw.add_parameter(myPlist,'GATEWAY','http://192.168.1.133/reports/rwservlet);
    system.srw.add_parameter(myPlist,'SERVER','rep_appsrv_frhome1');
    system.srw.add_parameter(myPlist,'REPORT','y:\02\02\Gry_02_01.rep');
    system.srw.add_parameter(myPlist,'USERID','def/xyz@nml');
    system.srw.add_parameter(myPlist,'DESTYPE','email');
    system.srw.add_parameter(myPlist,'DESFORMAT','PDF');
    system.srw.add_parameter(myPlist,'DESNAME','[email protected]');
    myIdent := system.srw.run_report(myPlist);
    EXCEPTION
    when others then
    raise_application_error(-20001,'Error sending email.Error: '||sqlerrm);
    --Dbms_Put.Put_Line('Error sending email.Error: '||dbms_util.get_detailed_sqlerrm);
    END;
    Procedure is created successfully but when I execute this procedure, I get the following error:
    ORA-20001'Error sending email.Error: ORA-20999
    ORA-06512: at "Nml.Eve_Drv_Rep", line 17
    ORA-06512: at line 1
    Can u guess where is the problem?
    2ndly I want to know that whether I should give IP address or Application Server Machine Name in GATEWAY parameter?
    And in SERVER parameter either I should give the Application Server Machine Name or Report Server name installed on Application Server Machine?
    Lastly from where I can get the complete list of Parameters to be added in SRW.Add_Parameter like SERVER, GATEWAY etc.
    Please note that we r using Database 10g Rel.2 and Forms and Reports services on Application Services and the report being called was developed in Reports 10g.

    Hi,
    Consider this corrected code.
    REPORT zztest
    NO STANDARD PAGE HEADING
    LINE-COUNT 36(3)
    LINE-SIZE 250.
    DATA: BEGIN OF itab OCCURS 0,
    carrid TYPE sbook-carrid,
    connid TYPE sbook-connid,
    fldate TYPE sbook-fldate,
    custtype TYPE sbook-custtype,
    class TYPE sbook-class,
    bookid TYPE sbook-bookid,
    END OF itab.
    DATA a TYPE i.
    SELECT carrid connid fldate custtype class bookid
    FROM sbook INTO CORRESPONDING FIELDS OF TABLE itab.
    SORT itab.
    ULINE.
    WRITE :1 'CARRID', 20'BOOK ID', 37'CLASS'.
    ULINE.
    LOOP AT itab .
    <b>  AT NEW carrid.
        WRITE: 1 itab-carrid.
      ENDAT.
      WRITE : 20 itab-bookid.
      WRITE : 40 itab-class.</b>
      AT END OF carrid.
        ULINE.
      ENDAT.
    ENDLOOP.
    <b>Your problem was.</b>
      AT NEW carrid.
        WRITE: 1 itab-carrid.
      ENDAT.
      WRITE : <b>/</b>20 itab-bookid. "New Line <b>/</b>
      WRITE : 40 itab-class.
    Regards,
    Arun Sambargi.

  • Regarding Intialisation event in reports

    Hi..
    Plz explain me the usage of Intialisation event in reports. I have read somewhere by using intialisation event we can do 2 things
    1) can provide default values in selection screen.
    2) can provide authorizations on report.
    But I am unable to understand what we meant by providing authorizations. plz help me in this regard.
    Regards
    veerendra

    Hi,
    initialization events helps us in
    giving default values
    to any variable
    that may be the selction screen field values
    parameters: P_matnt type mara-matnr
    initialization.
    p_matnr = '777777'.
    then when you see the selection screen this value will be seen
    2) can provide authorizations on report.
    yes we can provide authorizations on report in this event
    also
    we usually check the sy-uname
    and we will maintain a ztable for authorizations
    and if we found that user name and some code associated with the uname
    then we will allow him to go ahead
    other wise we will give a message that
    'you are not authorized'/
    thanks & regards,
    Venkatesh

  • Error in event driven reporting

    Dear Gurus...I created the following procedure to implement Event Driven Reporting:
    CREATE OR REPLACE procedure ABC.eve_drv_rep as
    myPlist system.SRW_PARAMLIST;
    myIdent system.SRW.Job_Ident;
    BEGIN
    myPlist := system.SRW_PARAMLIST(system.SRW_PARAMETER('',''));
    system.srw.add_parameter(myPlist,'GATEWAY','http://192.168.1.133/reports/rwservlet);
    system.srw.add_parameter(myPlist,'SERVER','rep_appsrv_frhome1');
    system.srw.add_parameter(myPlist,'REPORT','y:\02\02\Gry_02_01.rep');
    system.srw.add_parameter(myPlist,'USERID','def/xyz@nml');
    system.srw.add_parameter(myPlist,'DESTYPE','email');
    system.srw.add_parameter(myPlist,'DESFORMAT','PDF');
    system.srw.add_parameter(myPlist,'DESNAME','[email protected]');
    myIdent := system.srw.run_report(myPlist);
    EXCEPTION
    when others then
    raise_application_error(-20001,'Error sending email.Error: '||sqlerrm);
    --Dbms_Put.Put_Line('Error sending email.Error: '||dbms_util.get_detailed_sqlerrm);
    END;
    Procedure is created successfully but when I execute this procedure, I get the following error:
    ORA-20001'Error sending email.Error: ORA-20999
    ORA-06512: at "Nml.Eve_Drv_Rep", line 17
    ORA-06512: at line 1
    Can u guess where is the problem?
    2ndly I want to know that whether I should give IP address or Application Server Machine Name in GATEWAY parameter?
    And in SERVER parameter either I should give the Application Server Machine Name or Report Server name installed on Application Server Machine?
    Lastly from where I can get the complete list of Parameters to be added in SRW.Add_Parameter like SERVER, GATEWAY etc.
    Please note that we r using Database 10g Rel.2 and Forms and Reports services on Application Server on Widows Server-2003 platform and the report being called was developed in Reports 10g.

    A few remarks:
    Remove the exception handler, since it masks the exact error.
    Turn on debugging, because it will give you better information about the error.
    srw.start_debugging;
    srw.stop_debugging;Did you configure an smtp server in server_name.conf?
    Are you able to run the report directly from your browser with the same URL?
    where I can get the complete list of Parameters to be added in SRW.Add_Parameter like SERVER, GATEWAY etc.Oracle has manuals for everything.
    http://download.oracle.com/docs/cd/E12839_01/bi.1111/b32121/pbr_evnt001.htm#i1007523

Maybe you are looking for

  • How do I import iTunes library from old PC to new PC using Home Sharing?

    I have an old PC with the latest version of iTunes. I have a new PC with an empty new version of iTunes. How do I import the library to the new PC iTunes? I thought Home Sharing was the way to go, but I can't get it to work. Also tried syncing my iPh

  • "Adobe After Effects CS6" can't be opened because the identity of the developer cannot be confirmed."

    I downloaded After Effects CS6 trial. when I press on it , it says "Adobe After Effects CS6" can't be opened because the identity of the developer cannot be confirmed." what should i do ?

  • DR and DA

    I have a question regarding the DR attribute (PDF/A Spec): In the interactive form dictionary the DR attribute is defined as: "A document-wide default value for the DR attribute of variable text fields" and then the DR attribute can be used again in

  • Different LC amount for same exchange rate at Incoming & Outgoing payment

    Hi I have created an incoming and outgoing payment separately. One of the amount is the same between Incoming and Outgoing payment with same currency and same exchange rate, but system generated LC amount with a rounding difference of SGD 0.01. Examp

  • My response is French has removed by Toshiba

    My reponse is french has removed by Toshiba !!! See the email receive this day : "Dear Forum User, As international most used language, we have defined English as standard language. On this way whole content will be understandable for all Toshiba Sup