AT SELECTION-SCREEN stops report

Hello,
I run a report using the AT SELECTION-SCREEN stmt.
Below AT SELECTION-SCREEN is an IF ... ELSE block. Within that block the report checks, whether the user input (made in a SELECT-OPTIONS) complies some requirements.
I check for example, if that what the user types in matches a defined string...
But if i use an AT SELECTION-SCREEN, the report does not continue after execution after that!
It returns to the selction screen...
How can I achieve, that the report continues with execution...?
Thx,
holger

Hi Holger,
1. This is the default behaviour.
2. For report purpose execution,
   the event is
   START-OF-SELECTION ( and not at selection-screen)
3. However u CAN ACHIEVE this by :
   after all validations , use the syntax
   LEAVE TO LIST-PROCESSING.
4.  I tried the same at my end,
   its working fine.
5. However, if u use step 3,
   there will be a problem :
   after the execution of report,
  it wil get HANG. ie. it won't then
  get back using the toolbar buttons.
  U may try it for yourself.
6. Bottom line is:
   use
  START-OF-SELECTION (FOR FINAL EXECUTION OF THE REPORT)
Regards,
Amit M.
Message was edited by: Amit Mittal

Similar Messages

  • Creating Selection screen in Report Painter

    Good day everyone,
      Does anyone know how I could create a selection screen in Report Writer? Thanks!
    >Christian<

    Hi,
    Simple Parameters  or Selec-options statements will suffice.
    Eg : Parameters : p_matnr type mara-matnr.
           select-options : s_matnr for mara-matnr.
    In selection screen, you may have selec-options, parameters, check boxes, radio buttons etc.
    Regards,
    Sujatha.

  • Adding gsber in selection screen of report painter

    To gurus,
    I have a small requirement, I have to get business area  (GSBER) in  selection screen of report.
    I have developed the report using report painter  FGI1 --FAGLFLEXT which is having gsber field.
    In selection screen it self i want this GSBER FIELD .How to achieve it.
    kindly guide me.
    regards,
    padmaja.

    Hi
    What I understand from your question is you want bussiness area value on selection screen you can achive this by just using the by export/import parameter or by get/set  parameter id.
    Please elaborate what exactly you want.
    Regards
    Sagar.

  • Modification on selection screen of report

    Hello guys,
    I have a requirement where in i need to modify the initial selection screen as per clients requirement. The scenario is as follows:
    Suppose 'EMPLOYEE' and 'PORTFOLIO' are two of the fields of a cube on which the report will be run. Now suppose there are three employees as A, B and C and A handles portfolios X & Y, B handles portfolios W & Y while C handles portfolios X & Z.
    The initial selection screen of report will have two selection fields first as the employee and second as the portfolio.
    When we do F4 at employee it will display A, B and C. Now the requirement is if we F4 at portfolio it should display only the relevant one for that employee.
    For example: if i give employee as A and when i do F4 at portfolio screen it should give me only X and Y and not all the portfolios viz. W, X, Y & Z
    Is there a way to achieve the above scenario????

    Hi Chakradhar,
                             Refer this code :
    SELECTION-SCREEN BEGIN OF BLOCK BL2 WITH FRAME TITLE TEXT-456.
    PARAMETERS PO RADIOBUTTON GROUP RADI USER-COMMAND R.
    SELECTION-SCREEN END OF BLOCK BL2.
    AT SELECTION-SCREEN OUTPUT.
    CALL SCREEN 100.
    when user will click on this radio button , a pop up screen will appear dynamically.
    Reward points if helpful.
    Regards,
    Hemant

  • How to create multiple selection screens in reports

    How to create multiple selection screens in reports
    Thanks,
    Sridhar

    Ex: hope you will find an idea from the below example :
    SELECTION-SCREEN BEGIN OF BLOCK SEL1 WITH FRAME TITLE TIT1.
    PARAMETERS: CITYFR LIKE SPFLI-CITYFORM,
                CITYTO LIKE SPFLI-CITYFORM.
    SELECTION-SCREEN end OF BLOCK SEL1
    SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW.
    SELECTION-SCREEN INCLUDE BLOCKS SEL1.
    SELECTION-SCREEN BEGIN OF BLOCK SEL2 WITH FRAME TITLE TIT2 .
    PARAMETERS: AIRPFFR LIKE SPFLI-AIRPFROM,
                AIRPTO LIKE SPFLI-AIRPTO.
    SELECTION-SCREEN END OF BLOCK SEL2
    SELECTION-SCREEN END OF SCREEN 5000.
    INITIALIZATION.
    TIT1 = 'ITIES'.
    aT SELECTION-SCREEN.
    CASE SY-DYNNR.
    WHEN '0500'.
       MESSAGE W159(at) WITH 'SCREEN 500'.
    WHEN '1000'.
       MESSAGE W159(at) WITH 'SCREEN 1000'.
    ENDCASE.
    START-OF-SELECTION.
    TIT1 = 'CITIES FOR AIRPORTS'.
    TIT2 = 'AIRPORTS'.
    CALL SELECTION-SCREEN 500 STARTING AT 10 10.
    TIT1 = 'CITIES AGAIN'.
    CALL SELECTION-SCREEN 1000 STARTING AT 10 10.

  • FM to display Selection screen on report output??

    Hi Experts,
    Is there an FM to display Selection screen on report output.
    Thanks In Advance.

    Hi Ashwin,
    Refer to below link
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/755b94ca5911d299af5c9604c10e27/content.htm
    or
    The easiest way is to define your selection screen in the TOP include of your module pool.
    Then call the selection screen.
    Selection Screen
    selection-screen begin of screen 1010 as window title text-001.
    selection-screen begin of block b1 with frame title text-002.
    parameters: p_vornr type resb-vornr,
    p_refno(20) type c,
    p_plnid type zplcfg-plnid as listbox visible length 20,
    p_sorts type c as listbox visible length 20.
    selection-screen begin of line.
    selection-screen comment (20) text-004.
    selection-screen position 33.
    parameters: p_order as checkbox default 'X'.
    selection-screen end of line.
    selection-screen end of block b1.
    selection-screen end of screen 1010.
    Now call the selection screen.
    call selection-screen 1010.
    if sy-subrc = 0.
    perform get_production_orders.
    perform process_orders.
    endif.
    Thanks!!

  • How we can assign the customised selection screen to report category

    hai
    gurus
    how we can assign the customised selection screen to report category

    Hi Naresh,
    You can do like this.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN BEGIN OF BLOCK SELECTION WITH FRAME.
    SELECT-OPTIONS: S_FKART FOR VBRK-FKART.
    SELECT-OPTIONS: S_FKDAT FOR VBRK-FKDAT OBLIGATORY.
    SELECT-OPTIONS: S_VBELN FOR VBAK-VBELN.
    SELECT-OPTIONS: S_AUART FOR VBAK-AUART.
    SELECTION-SCREEN END OF BLOCK SELECTION.
    SELECTION-SCREEN END OF BLOCK B1.
    if you give me brief i can help you out more.
    Thank you .
    Regards
    Ram

  • Selection Screen in Report Painter

    Dear Experts,
    I have an issue in the report painter. While executing the report from GRR2, selection screen is not displayed but report is coming as I expected.
    I want to create the selection screen for this report. I have created this report without copying from the standard report.
    Thanks in Advance.
    Regards,
    Aswimn

    Hi,
    Please refer following links.
    <Link farm removed by moderator>
    Regards,
    Renuka S.
    Edited by: Vinod Kumar on May 25, 2011 10:12 AM

  • How to generage pop up screen on selection screen of report program?

    Hi Guys,
            I am having a requirement to generate the <b>pop up screen on the selection screen</b> of the report program.
           Suggest me the best one with model program

    Hi Chakradhar,
                             Refer this code :
    SELECTION-SCREEN BEGIN OF BLOCK BL2 WITH FRAME TITLE TEXT-456.
    PARAMETERS PO RADIOBUTTON GROUP RADI USER-COMMAND R.
    SELECTION-SCREEN END OF BLOCK BL2.
    AT SELECTION-SCREEN OUTPUT.
    CALL SCREEN 100.
    when user will click on this radio button , a pop up screen will appear dynamically.
    Reward points if helpful.
    Regards,
    Hemant

  • How to include text lable in Variable selection screen (Web Reporting)

    Hi Experts,
    I have created one query and in Web Report-->variable selection screen I have one Date field for that field I have to display a label stating that user to input date in the format YYYY.MM(like a text label).Actually I have created 10 to 12 report . I need u r suggestion such that a single change will reflect my requirement in all the reports and I have created all the reports for same multiprovider.
    Thanks in Advance
    Yours,
    Bala

    Bala,
    Prompts can originate from one of two places:  either via Designer and using the @prompt functionality or while creating the report building a prompt in the Query Filters panel.  If the prompt was built using the @prompt method, and all 10-12 reports are using that particular @prompt, then one change via Designer will cause all reports to reflect the new verbiage.  If you built the 10-12 reports using the prompt in the second scenario, then each individual report needs to be opened, modified and then saved.  If you must use the latter method, then you can open the first report, modify the prompt verbiage, then highlight the new verbiage with your mouse and hit Control-C (which copies that text to the Clipboard of your Windows system).  Then go to the second report, locate the verbiage that needs to be changed, delete it, then Control-V (which pastes), and voila, some keyboarding strokes are saved....
    Thanks,
    John

  • User must fill at list one field in a selection screen in report

    Hi experts,
    i have a report that the user should choose between 2 fields or he can fill them both. but he must to fill at list one of them- at the selection screen.
    how do i check that the user filled at list one of them.
    any help will be appreciate it.
    dana.

    Hi ,
    You can check that in AT SELECTION-SCREEN event.
    To validate that in the IF condition check whether any one of the parameters
    filled or not.If both the fields are initial then give a error message to proceed further.
    Check the code -
    PARAMETERS : p_name(20) TYPE c,
                 p_id(10) TYPE c.
    AT SELECTION-SCREEN.
      IF p_name IS INITIAL AND p_id IS INITIAL .
        MESSAGE 'Enter at least one field' TYPE 'E'.
      ENDIF.
    START-OF-SELECTION.
      WRITE 'Test'.
    Regards
    Pinaki

  • Set default value to selection screen for report

    Hi All,
       I've a report selection screen which has 3 fields from the report category: PNPPERNR, PNPSTAT1, PNPBTRTL. My logical database is PNPCE.
       How can I set the default value to the field PNPSTAT1? Means when I first display the selection screen, the value for this field will automatically display '3' in it.
       Hope someone can help me on this.
    Thanks.

    Hi All,
       Thanks for reply. But I think I should declare my question clearer.
       Actually it's not a parameter.
      My problem is when using the logical database, if you define a TABLES: PERNR, then you can see the SAP standard report selection screen. So my selection screen has 3 standard fields which are PNPPERNR, PNPSTAT1, and PNPBTRTL.
       I need to set the default value '3' to field PNPSTAT1.
    Thanks.

  • How to Modify the Selection Screen in Report Painter

    Hi All,
    I am working on Report painter and writer,
    can any body helpme how to change the selection screen i.e i want add some more  select options to the exisiting roport .
    how can i  add more select options to the exisiting one
    please let me know the Procedure and provide some relevent documents .
    Thanks and Best regards.
    uma

    Hello...
    In the program ...we can find the following chunk of code..
    selection-screen:begin of block B1 with frame title text-001.
    Parameters : ....
    select-options:.....
    selection-screen:end of block b1.
    if we need to add any more user inputs we can write the code inside the existing
    selection screen....end of block .
    or create a new block ..just the block name should be different...
    if we are using select options...we need to declare the table name using the key word for the field on which we are giving select options ....
    Tables : BSIK.
    Please see the following code:
    Imagine :- we have the current selection screen..
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_BUKRS LIKE BSIK-BUKRS DEFAULT SPACE.
    SELECT-OPTIONS: S_LIFNR FOR BSIK-LIFNR.
    SELECTION-SCREEN END OF BLOCK B1.
    we need to add 2 more fields on the selection screen ..this we can do as the following
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_BUKRS LIKE BSIK-BUKRS DEFAULT SPACE.
    SELECT-OPTIONS: S_LIFNR FOR BSIK-LIFNR,
                    S_HKONT FOR BSIK-HKONT.
    PARAMETER: P_DATE LIKE BSIK-BUDAT OBLIGATORY DEFAULT
               SY-DATUM.
    SELECTION-SCREEN END OF BLOCK B1.
    OR...create a new block...
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
    SELECT-OPTIONS:   S_HKONT FOR BSIK-HKONT.
    PARAMETER: P_DATE LIKE RFPDO-ALLGSTID OBLIGATORY DEFAULT
               SY-DATUM.
    SELECTION-SCREEN END OF BLOCK B2.
    there are many options available in selection screens..like creating check box,radio button etc..
    for more info press F1 help on the Selection screen in the ABAP editor
    Revert back if not clear and reward if helpful
    Regards
    Byju

  • How to configure selection screen in report

    Hi all,
          could anyone help me in configuring the selection screen in the report.
    Advance Thanks
    Regards
    Guhapriyan

    Here is some basic code to generate a selection screen.
    tables: afko.
    selection-screen begin of block b1 with frame title text-001 .
    select-options: s_gltrp for afko-gltrp.
    parameters: p_gltrp type afko-gltrp.
    selection-screen begin of line.
    selection-screen comment (25) text-005.
    selection-screen position 33.
    parameters: p_pln as checkbox default ' '.
    selection-screen end of line.
    selection-screen end of block b1.
    selection-screen begin of block b2 with frame title text-004 .
    selection-screen begin of line.
    selection-screen comment (20) text-002.
    selection-screen position 33.
    parameters: p_det as checkbox default 'X'.
    selection-screen end of line.
    selection-screen begin of line.
    selection-screen comment (20) text-003.
    selection-screen position 33.
    parameters: p_sum as checkbox.
    selection-screen end of line.
    selection-screen end of block b2.
    Regards,
    Rich Heilman

  • Query Selection Screen in Report Designer/WAD

    Hi Gurus,
    Please help. Iam try to copy two BEx queries into one report using Report Designer & Web Application Designer. Iam sucessfull in it, however when I execute the report either by report designer or WAD, the report does not populate the selection screen, it just gives you the output of the two queires into one page. Is there a pre-settings we need to perform to get the selection screen for each of this report?
    Thanks!

    Hi,
    Front-end upgrade will not help in this case. This feature "Display Variable Screen [VARIABLE_SCREEN]" was introduced in SP8 backend. You need SP8 backend to be able to use it.
    You will find this setting in "Properties" -> "Web Template" (in combo box) -> "Web Template Parameters" -> "Behaviour" -> "Display Variable Screen"
    This setting is defined in metadata and required an implementation on Java side (also SP8 required)
    Regards, Karol Kalisz
    SAP BI Development

Maybe you are looking for