Pass control to end of selection

hi all..
in a certain consition i want control to be pass to
END-OF-SELECTION. it is working with STOP but on compiling warning message 'Obsolete Statement ' comes.
IS there any alternative.
Message was edited by: sharadha sharma

Hello Sharadha,
In which version u r working. U can also try REJECT stmt to leave the start-of-selection. However I did an extended program check and it didn't give me error abt obsolete stmt.

Similar Messages

  • What is the use of "end of selection" event in report

    Hi all
    As we can display the outputs in the "start-of-selection "using the write statement.
    Then what is the use of "end-of-selection" in reports.
    Please tell me with some real tiem examples.
    God points will be rewarded.
    Thanks

    Hi,
    The END-OF-SELECTION event is triggered in type executable programs once the logical database has finished reading all data and before the list processor is started.
    It tells the server that all the database reading is completed and no further reading is going to take place..
    For more details go through the following link:
    http://help.sap.com/saphelp_me21sp2/helpdata/en/9f/db9aca35c111d1829f0000e829fbfe/content.htm
    END-OF-SELECTION is used mostly when you are using Logical data base in your report. It is triggered when all selection get finished from the data base.
      You can use write statments in start of selection and end of selection also.
      But the one use of end of selection is... if you want to stop the processing of a certain code and directly display some message you can use this.
    start-of-selection.
      select data..
      process data
    if no data .
    stop.
    endif.
    write data
    end-of-selection.
    write : 'No data to display.
    Stop command will take the control to end of selection event.
    thanks,
    mahesh
    Message was edited by:
            I Can Solve It

  • Where does  the control moves at first at END-OF PAGE  or  END-OF-SELECTION

    Is END-OF PAGE triggered  like TOP-OF-PAGE from the AT-SELECTON-SCREEN  automatically with a write statement & where does  the control moves at first
    at END-OF PAGE  or  END-OF-SELECTION?

    Hi,
    1. End-of-selection:
    This event is triggered after the start-of-selection. to display the contents on the report.
    2.Top-of-page: Every time a new page is triggered. Mainly this is used for header of the report.
    3. End-of-page : every time the list data reaches the footer region of the page.
    This way first data is disaplyed then it reaches the footer..
    first End-of-selection then End-of-page
    These example may help u in detail...
    Leaving Event Blocks Using STOP
    If you use the STOP statement within an event block, the system stops processing the block immediately. The ABAP runtime environment triggers the next event according to the following diagram:
    Before and during selection screen processing, the next event in the prescribed sequence is always called. From the AT SELECTION-SCREEN event onwards, the system always jumps from a STOP statement directly to the END-OF-SELECTION statement. Once the corresponding event block has been processed, the system displays the list.
    The following program is connected to the logical database F1S.
    REPORT EVENT_TEST.
    NODES: SPFLI, SFLIGHT, SBOOK.
    START-OF-SELECTION.
    WRITE 'Test program for STOP'.
    GET SBOOK.
    WRITE: 'Bookid', SBOOK-BOOKID.
    STOP.
    END-OF-SELECTION.
    WRITE: / 'End of Selection'.
    This produces the following output:
    Test Program for STOP
    Bookid 00010001
    End of Selection
    As soon as the first line of SBOOK has been read, the system calls the END-OF-SELECTION event block.
    Exiting Event Blocks Using EXIT
    If you use the EXIT statement within an event block but not in a loop, the system stops processing the block immediately. The ABAP runtime environment triggers the next event according to the following diagram:
    Before and during selection screen processing, the next event in the prescribed sequence is always called. From the START-OF-SELECTION event onwards, the system starts the list processor directly when the EXITstatement occurs, and displays the list.
    If the EXIT statement occurs inside a DO, WHILE, or LOOP loop, it is the loop that terminates, not the processing block.
    The following executable program is connected to the logical database F1S.
    REPORT demo_program_exit_1.
    NODES: spfli, sflight, sbook.
    START-OF-SELECTION.
    WRITE 'Test Program for EXIT'.
    GET sbook.
    WRITE: 'Bookid', sbook-bookid.
    EXIT.
    END-OF-SELECTION.
    WRITE: / 'End of selection'.
    This produces the following output:
    Test Program for EXIT
    Bookid 00010001
    After the first line of SBOOK has been read, the list is displayed immediately.
    The following executable program is connected to the logical database F1S.
    REPORT demo_program_exit_2.
    NODES: spfli, sflight, sbook.
    DATA flag(1) TYPE c.
    AT SELECTION-SCREEN.
    IF carrid-low IS INITIAL.
    flag = 'X'.
    EXIT.
    ENDIF.
    START-OF-SELECTION.
    IF flag = 'X'.
    WRITE / 'No input for CARRID'.
    EXIT.
    ENDIF.
    GET spfli.
    GET sflight.
    GET sbook.
    END-OF-SELECTION.
    WRITE / 'End of Selection'.
    If the user does not enter a value for CARRID-LOW, the output appears as follows:
    No selection made for CARRID
    After the first EXIT statement, the next START-OF-SELECTION event is triggered. After the second EXITstatement, the output list is displayed.
    Regards.

  • 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

  • End-of-selection

    hi,
             what happend if i give select statement in end- of- selection.
                 end-of-selection.
                 select XXXX XXXX XXXXX from lfa1 into table itab where lifnr = lfa1-lifnr.
                 could u tell me clearly

    Hi Rajesh,
    When we will give select statement at end of selection, it will work.
    Basically End of selection does not restrict any select statement.
    Preferably we should not use select statement in end of selection. It is basically meant for displaying of data after all the operations are performed within the program.
    Regards,
    Reward points if useful.
    Navin

  • Do I need to set something when using Dynamic VIs to pass control values to an executable VI

    I am using VI server to pass control information from one VI to another.
    In the development system this works fine.
    How ever once I build the VI's into an executable the values from one of the VIs does not get passed.
    I use the same method in three different applications, 2 of the applications work fine, but one does not.
    The only thing I can think of is that there is something that needs to be set that I did (without realizing) in the first two but not in the third.
    All the Applications run fine.
    The problem that occurs is in the values passed. The same value gets passed everytime this turns out to be what ever the default was prior to running application builder.
    I a
    m currently using 6.02.

    Kandrew wrote:
    > I am using VI server to pass control information from one VI to
    > another.
    > In the development system this works fine.
    > How ever once I build the VI's into an executable the values from one
    > of the VIs does not get passed.
    >
    > I use the same method in three different applications, 2 of the
    > applications work fine, but one does not.
    Are you using Call by Reference or Set Control Value method? The second
    absolutely requires the Front Panel to be present to work properly. The
    LabVIEW application builder wants to remove the Front Panel by default
    if the VI hasn't been configured to show its front panel when called or
    doesn't have at least one Control Property Node in its diagram.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to pass a default value in selection screen of logical database pnpce

    Dear All,
    Can any one tell me how to pass a default value in selection screen of logical database pnpce .
    Regards
    Rakesh Singh

    Hi Rakesh,
    Go to SE36 (logical database Builder).First enter PNPCE in Logical Database and press documentation,here you will get the details of exactly what is PNPCE and how it works.After that select selections in subojects in se36 only and enter display ,there you have the include from where you acn get the idea.
    Regards,
    Rahul

  • Passing values to a dynamic selection screen via a report

    Hi,
    I have the following problem and need to seek your expertise urgently.
    In my program, I need to call another report by passing in parameters to the selection screen of other report. However, I could not pass values into a dynamic selection screen. I tried to use submit (report) with free selection but do not know how it works.
    Currently, I tried calling the function RS_REFRESH_FROM_DYNAMICAL_SEL and FREE_SELECTIONS_RANGE_2_EX. Using the object the first function has returned to me, I tried to append values such as fieldname etc to it. However, I realised the field names of a dynamic selection screen keeps changing. So I would not know how to pass a particular value to a selection field.
    Appreciate any help given.
    Thanks,
    CK

    Hello CK,
    Are you using logical database in your selection screen program attributes? If it is, look at include file DBxxxSEL for parameter named xxxDYNSE where xxx = logical database. Debug the program that has that dynamic selection, and look at field xxxDYNSE. This should give you a hint on how to populate the parameter when you submit the program.

  • About start-of-selection and end-of-selection

    Hi all,
      what is the functionality of start-of-selection and end-of-selection events in reports.

    Here we go :
    Start-of-selection is the event where you will code ur sql statements, this is the event which will be triggered automatically even for normal programs, not only for reports even if you dont specify this event in the program.
    At Selection screen is the event to validate the input values given in the selection screen using initialization event.
    First in the sequence AT SELECTION SCREEN event will be triggered and then START-OF-SELECTION.
    END-OF-SELECTION, will fire only when you actually write it after the selection of the data is over. Usually between the START and END OF SELECTION you fetch the data and after the END OF SELECTION, you process the data and write that as output as display the same as ALV.
    If helpful pl reward.
    Cheers.

  • Infoset Using Join - End of Selection

    I have created a Infoset from 2 tables and created a query based on the Infoset. Now I need to write the output from the query to a file in the app server. I think I need to write the code ' END OF SELECTION'. 
    1) How do I retrieve the values of the output table to write it in the file.
    2) I tried writing a small text in a file in End of Selection of the Infoset . When I executed the query.It didnt call that section of the code whereas same code when placed in start of selection, it worked. When is the Code in End of Selction is triggered.

    hi
    good
    go through these links, i hope thesell help you to solve your problem
    http://help.sap.com/saphelp_erp2004/helpdata/en/11/723c3b35703079e10000000a114084/content.htm
    http://help.sap.com/saphelp_46c/helpdata/EN/d2/cb43cc455611d189710000e8322d00/content.htm
    thanks
    mrutyun^

  • Possible to create a Message Box in response to end-user selecting "cancel" or "block" after clicking a link to a URL?

    Hi all:
    When an end-user clicks a link/button to connect to a URL, the security dialog automatically appears giving them the options of "Allow," "Block" or "Cancel".  Should they select "Block" or "Cancel," can we trigger a message box informing them they blocked or cancelled the connection?
    With traditional message boxes, we're causing them, ie
    var rtnFromBox = xfa.host.messageBox("Information is missing.\n\n Are you sure you want to continue?", "Missing Information",1,2);
    if (rtnFromBox == 4){
        xfa.host.messageBox("Okay, we'll keep going.","",1,0);
    But with the URL security dialog, we're not calling it from a variable - it just happens.
    I guess a similar question could be applied to a "Save" button.  Where if the end-user selects "cancel" on the "Save As" dialog, a warning could pop-up reminding them to save soon.
    Thoughts?  Thanks!
    Brian

    Radz,
    I didn't think so but figured I'd ask.  Thanks for the response though!
    Best,
    Brian

  • Passing control records to Idoc

    Hi,
    how can we pass control record data to Idoc?can we do that in mapping(GUI) in XI ,lets say if I am doing <b>file to Idoc</b> scenario.I know we can disable the control record field and use apply from payload.my concern is if we don't use apply from payload.
    I have read in SDN XI takes from sender or reciever business systems as they are  related to Logical systems(ref link:XI IDoc  control record data source?) ,does it mean that we don't map these cotrol record fileds in the mapping(GUI)?
    and also please tell me how XI can pass data from flat file to a particular IDOC?
    thank you.

    hi,
    have a look at blog to see what is being filled and how:
    /people/michal.krawczyk2/blog/2005/09/01/xi-idoc-adapter--edidc40--demystified
    you can also check my book in which I describe IDOC scenario configurations 
    <a href="/people/michal.krawczyk2/blog/2006/10/11/xi-new-book-mastering-idoc-business-scenarios-with-sap-xi"><b>Mastering IDoc Business Scenarios with SAP XI</b></a>
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • 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.

  • How to pass control from one component to other component

    Hi,
    I have a requirement to pass control from one component to other component.
    Here is my requirement.. l have two portal components, one is search component and other is result component. I have this search component as quick navigation iView where we can enter a value and results will display in results iView, it's a main iView.
    When search view gets the results, I will display the count in search view and result in results view. .i.e.. both the iviews are viewed at any time.
    Can any one advise me how to acheive this.
    Thanks,
    Chinna.

    Hi Sandeep,
    Thanks for the reply. I have gone through the EPCF API, and tried with doNavigate('iViewName').
    when I click on the button in search view (quikc navigation frame), instead of page getting refreshed in result iView, whole page is replaced by results iview. I want only search view and results view gets refreshed.
    can you please tell me which even should I use for this scenario...
    Thanks,
    Chinna

  • Is it possible to adjust or control the Image Tracer selection's colors?

    Hi there,
    I need to turn several of my photographs into vector images for textile printing.
    Is it possible to somehow adjust or control the Image Tracer selection to other colors like 10-11 (or other), instead of either 6 or 16 ?  If yes, please explain.
    Thank you,
    OC

    Sure. Tweak the settings, save it as a preset:
    Mylenium

Maybe you are looking for

  • How to print the client ip address at the server side( reqd for logging )??

    Hello everybody... joined this forum recently..... In RMI programming.... is there any way by which the server can know the the Client ip address or machine name.... i want to know this bcoz i need to create a log file as to who all had connected wit

  • Iweb not showing 'Gallery pages' on new Safari 5

    I just updated my Safari on my imac to the new 5 version, and suddenly when I view my iweb sites... all pages are ok apart from the gallery pages which are blank! No gallery images show at all.... Anyone have any idea..i went to the mac store and it

  • IPad - you apple ID has been disabled

    Out of a sudden "your Apple ID has been disabled" appeared when trying to update apps and download apps. It seems canny be resolved even readying the ID password. Why is it so? Is it the tune server / programme problem? Or is it a temporary problem w

  • SAP transaction

    I don't know how to insert a link in a page to a SAP transaction. If I insert the SAP transaction IVIEW in my page, the transaction does not open in a new window but in the page section (it's not useful, it's to small to use). I'd like to insert a li

  • MacBook Pro and Thunderbolt

    I Have A MacBook Pro Unibody Late 2009 could I  conect a thunderbolt display to it, becouse i really need to know.