Note on selection screen

Hello friends,
I have to dipslay a samll not on the selection screen. Basiclly a note to th end users as whats the purpose of the program would be. May be about 5 line description.
How would I add this note to the selection screen.
Any Suggestions.
Ster.

Hi ,
write the code like this...
selection-screen skip 2.
selection-screen comment 1(65) text-s02.
selection-screen skip 1.
selection-screen comment 1(65) text-s03.
selection-screen skip 1.
selection-screen comment 1(65) text-s04.
selection-screen skip 1.
selection-screen comment 1(65) text-s05.
selection-screen skip 1.
regards,
Bharani

Similar Messages

  • Screen Saver does not use selected Screen Saver when activated

    Screen Saver does not use selected Screen Saver when activated. After "Start screen saver" elapse time has been reached, a blank black full screen is displayed. I can activate the selected screen saver by using the hot corners function. Any help with this matter will be greatfully received.

    Hi again sassey,
    You're assuming correctly. Simply change the settings so that your screen saver activates before the sleep settings.
    Hope this solves your problem...

  • Logical database sdf in custom program not triggering selection screen?

    I added logical Database SDF (screen 905) to a custom program - but the selection screen is not getting triggered.
    Do I have to associate these somewhere?
    Thanks,
    Ven

    HI,
    Declare this statement after the Report Statement in the program.
    TABLES : SKA1, SKB1.
    You will get the selection screen now.

  • Not all selection screen value coming from selection screen only first val

    hi i am doing
    SELECTION-SCREEN BEGIN OF BLOCK gl_ac3 WITH FRAME TITLE text-019.
    SELECT-OPTIONS: gl_acdp1 FOR gv_gldep1.
    SELECTION-SCREEN END OF BLOCK gl_ac3.
    then i am using seelct as below
    SELECT      robukrs
                    rzzhkont
        FROM  zzamd1t INTO TABLE it_amdt
           WHERE ryear = p_gjahr
           AND   robukrs IN so_bukrs
           AND   rzzhkont IN gl_acdp1.
    but the value selected by select statement from internal table is for only first value of gl_acdp1 ie for first account c1 but user is entereng three acts c1 c2 and c3 so fro all data should be selected but for only one it is being selected
    pls sugest

    Hi,
        Is gv_gldep1 & rzzhkontare of same data type.
    Do as below
    SELECTION-SCREEN BEGIN OF BLOCK gl_ac3 WITH FRAME TITLE text-019.
    SELECT-OPTIONS: gl_acdp1 FOR gv_gldep1.
    SELECTION-SCREEN END OF BLOCK gl_ac3.
    INITILIZATION.
    MOVE 'I'      TO  gl_acdp1-sign,
               'EQ'  TO  gl_acdp1-option,
               'C1'   TO  gl_acdp1-low,
       APPEND gl_acdp1.
    MOVE 'I'      TO  gl_acdp1-sign,
               'EQ'  TO  gl_acdp1-option,
               'C2'   TO  gl_acdp1-low,
       APPEND gl_acdp1.
    MOVE 'I'      TO  gl_acdp1-sign,
               'EQ'  TO  gl_acdp1-option,
               'C3'   TO  gl_acdp1-low,
       APPEND gl_acdp1.
    START-OF-SELECTION.
    SELECT robukrs
                 rzzhkont
                               FROM zzamd1t INTO TABLE it_amdt
                               WHERE ryear = p_gjahr
                               AND robukrs IN so_bukrs
                               AND rzzhkont IN gl_acdp1.
    Make sure that ur table zzamd1t has values for C1, C2 and C3.
    Tell us how is ur output with this code.
    Regards,
    Bala Krishna
    Edited by: Bala Krishna on Aug 11, 2008 9:11 PM

  • How to create a variant for a screen (not a selection screen)

    Hi
    I foud a function module RS_CREATE_VARIANT.
    Is this the correct fm for creating screen variant, if yes then pls provide me some help about how to pass values to this fm.
    if not then pls help me to find out new one.
    thnks
    satisfactory answer will be definitely rewarded.
    S@meer

    passing values to RS_CREATE_VARIANT.
    data : LS_VARIANTDESC TYPE VARID.
      DATA : LT_VARIANTTEXT TYPE TABLE OF VARIT ,
             WA_VARIANTTEXT TYPE VARIT.
      DATA : TT_REPORTPARAM TYPE TABLE OF  RSPARAMS,
             WA_REPORTPARAM TYPE RSPARAMS.
    CLEAR LS_VARIANTDESC.
              LS_VARIANTDESC-MANDT   = SY-MANDT.                " gr 46A
              LS_VARIANTDESC-REPORT  = 'ZXXXXX'.
              LS_VARIANTDESC-VARIANT = 'VARIANT'.
              LS_VARIANTDESC-EDAT    = SY-DATUM.
              LS_VARIANTDESC-ETIME   = SY-UZEIT.
              REFRESH LT_VARIANTTEXT.
              CLEAR WA_VARIANTTEXT.
              WA_VARIANTTEXT-MANDT    = SY-MANDT.               " gr 46A
              WA_VARIANTTEXT-LANGU    = SY-LANGU.
              WA_VARIANTTEXT-REPORT   = 'ZXXXXXX'.
              WA_VARIANTTEXT-VARIANT  = 'VARIANT'.
              APPEND WA_VARIANTTEXT TO LT_VARIANTTEXT.
           CALL FUNCTION 'RS_CREATE_VARIANT'
                  EXPORTING
                    CURR_REPORT               = 'ZXXXXX'
                    CURR_VARIANT              = 'VARIANT'
                    VARI_DESC                 = LS_VARIANTDESC
                  TABLES
                    VARI_CONTENTS             = TT_REPORTPARAM
                    VARI_TEXT                 = LT_VARIANTTEXT
                  EXCEPTIONS
                    ILLEGAL_REPORT_OR_VARIANT = 1
                    ILLEGAL_VARIANTNAME       = 2
                    NOT_AUTHORIZED            = 3
                    NOT_EXECUTED              = 4
                    REPORT_NOT_EXISTENT       = 5
                    REPORT_NOT_SUPPLIED       = 6
                    VARIANT_EXISTS            = 7
                    VARIANT_LOCKED            = 8
                    OTHERS                    = 9.
                IF SY-SUBRC EQ 7.
    If variant with same name already exists, change variant
                  CALL FUNCTION 'RS_CHANGE_CREATED_VARIANT'
                    EXPORTING
                      CURR_REPORT               = 'ZXXXXX'
                      CURR_VARIANT              = 'VARIANT'
                      VARI_DESC                 = LS_VARIANTDESC
                    TABLES
                      VARI_CONTENTS             = TT_REPORTPARAM
                    EXCEPTIONS
                      ILLEGAL_REPORT_OR_VARIANT = 1
                      ILLEGAL_VARIANTNAME       = 2
                      NOT_AUTHORIZED            = 3
                      NOT_EXECUTED              = 4
                      REPORT_NOT_EXISTENT       = 5
                      REPORT_NOT_SUPPLIED       = 6
                      VARIANT_DOESNT_EXIST      = 7
                      VARIANT_LOCKED            = 8
                      SELECTIONS_NO_MATCH       = 9
                      OTHERS                    = 10.
                ELSEIF SY-SUBRC NE 0.
                MESSAGE WITH 'Cannot create/change variant for'
                SY-UNAME.
                ENDIF.

  • Query Selection Screen does not appear in Web Analyzer

    Hi Experts,
    Query Selection Screen appears when we open the query in Bex Analayzer in production system. But when we open the query in ABAP or JAVA Web view, the selection screen does not appears.
    As the volume of data in the cube is very high, and since the selection screen is not appearing, the query extracts 1.5Mrecords and results in dump.
    Kindly let me know the possibility for selection screen not appearing.
    Note: The selection screen appear in Development system in Bex Analyzer, ABAP View and Java View
    Regards
    Suresh Kumar

    Dear Suresh,
    You can check if the parameter &VARIABLE_SCREEN=X is added to standard template or not, If not add this,
    In order to add this parameter in the webtemplate you have to change 0ANALYSIS_PATTERN and save it as ZANALYSIS_PATTERN and enter this standard web template under TCODE RSCUSTV27.
    Also I would like to explain you the behavior of Web Analyzer,
    Parameter VARIABLE_SCREEN=X only influences the WEB application at startup. This will not come into affect
    when you use the 'New Analysis' button. The 'New Analysis' button resets the dataprovider so this would not
    affect the variable screen and would not redisplay the variable screen as you require.
    Regards,
    Arvind

  • Pnp  selection screen 000 how to put default values

    Hello everybody,
    my question today is about PNP selection screen 000: How can i put default values in the fields w/o  using variant.
    or can i restrict the numbers of values returned by " get pernr" with conditions not on selection screens.
    thank you in advance!
    Eric.

    use this code to default fields on the event INITIALIZATION. you can modify as per you needs..
    *----------------------------- INITIALISATION -------------------------------------------
    INITIALIZATION.
      pnpstat1-low = '0'.APPEND pnpstat1.
      pnpstat2-low = '3'. APPEND pnpstat2.
      pnptimed = 'I'.
    * Default Dates
      CONCATENATE sy-datum+0(4)  '0101' INTO pnpbegda.
      CONCATENATE sy-datum+0(4)  '1231' INTO pnpendda.

  • How to set Screen type "Selection Screen" in Dialog program

    Hi Experts,
    I have copied a screen 400 from a program into my program. In that screen in source program, the screen type was defined as 'Selection Screen'. After i copied that screen into my program, the screen type Selection Screen option is disabled. How to set the screen type of a screen to Selection Screen.
    I am currently getting the following error
    "Error when generating the selection screen "0400" of   "Ztest_screen                 ".
    I tried running the generation program RSDBGENA. There the diagnosis was given as follows:
    When generating the report Ztest_screen and its selection screen, an existing screen 1000 (not a selection screen) was overwritten.
    The selection screen was defined as follows:
    SELECTION-SCREEN BEGIN OF SCREEN 400 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK blck1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_matnr FOR mara-matnr.
    PARAMETERS:     p_werks TYPE werks_d OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK blck1.
    SELECTION-SCREEN END OF SCREEN 400 .
    I am calling the screen 400 with selection screen declarations in PBO of screen 0100.
    CALL SUBSCREEN sub_scr INCLUDING 'Ztest_Screen'  '400'.
    Where am i going wrong? Your inputs are needed.
    Thanks

    Thanks Przemysław and Nabheet for your suggestions.
    I had copied the generated screen 400 also from the source program into my program. This was the error. I deleted that and the report got activated now.
    Both the source and destination programs are not module pool. They are executable programs.
    Thanks

  • Dynamic text in selection screen

    Hi all,
    I have one requirement in selection screen. I have a parameter and one pushbutton in selection screen .
    To the right side of the parameter, i need to display the text based on some manipulation in a internal in the program.
    If I click on the pushbutton in selection screen , manipulations will be done in the program in a internal table. if the result is ok i need to display the text in the right side of the parameter otherwise no need to display.
    How can I achieve this.
    Urgent
    Thanks
    Saravana

    Hi
    Write the code in the
    AT selection-screen ON PARAMETER of the Button.
    So when pressed on button, that code will do some process and the result will be displayed.
    check it, whether it displays the text or not on selection screen.
    see the doc
    AT SELECTION-SCREEN - selscreen_event
    Syntax
      | { ON {para|selcrit} }
      | { ON END OF selcrit }
      | { ON BLOCK block }
      | { ON RADIOBUTTON GROUP radi }
      | { }
      | { ON {HELP-REQUEST|VALUE-REQUEST}
      |   FOR {para|selcrit-low|selcrit-high} }
      | { ON EXIT-COMMAND }.
    Alternatives:
    1. ... OUTPUT
    2. ... ON {para|selcrit}
    3. ... ON END OF selcrit
    4. ... ON BLOCK block
    5. ... ON RADIOBUTTON GROUP radi
    6. ... { }
    7. ... ON {HELP-REQUEST|VALUE-REQUEST} FOR
          {para|selcrit-low|selcrit-high} }
    8. ... ON EXIT-COMMAND
    Effect
    These additions allow individual evaluation of specific elements of the selection screens of the program. The information as to which selection has triggered the event is contained in the system field sy-dynnr.
    Alternative 1
    ... OUTPUT
    Effect
    This event is triggered at the screen event PBO of a selection screen. In the event block, the selection screen can be prepared through assignments to the data objects of parameters and selection criteria and through dynamic screen modifications.
    Note
    The assignments to input fields in the event block AT SELECTION-SCREEN OUTPUT always affect the selection screen and overwrite the user inputs from previous displays of the same selection screen. Assignments in the event blocks LOAD-OF-PROGRAM oder INITIALIZATION, on the other hand, only have an effect at first program start.
    Alternative 2
    ... ON {para|selcrit}
    Effect
    This event is triggered at the screen event PAI of a selection screen if the content of the input field of a parameter para or a line of a selection criterion selcrit was passed to the ABAP program. In the event block, the user input can be checked. Sending a warning or an error message in the event block makes the fields para and selcrit ready for input again.
    No parameter that is defined as a radio button can be specified. For this purpose, the addition ON RADIOBUTTON GROUP is provided.
    Note
    If a user action takes place in the dialog box for the multiple selection of a selection criterion selcrit, the entries of the selection table are passed to the program, line by line. For each line, the event AT SELECTION-SCREEN ON selcrit is triggered.
    Alternative 3
    ... ON END OF selcrit
    Effect
    This event is triggered after the selection table selcrit has been fully passed to the program after a user action in the dialog box for the multiple selection has taken place. In the event block, the entire selection table can be checked.
    Alternative 4
    ... ON BLOCK block
    Effect
    This event is triggered at the screen event PAI of a selection screen if all the input fields of a block block of the selection screen were passed to the ABAP program. In the event block, the user inputs can be checked. Sending a warning or an error message in the event block makes all the fields of the block block ready for input again.
    Alternative 5
    ... ON RADIOBUTTON GROUP radi
    Effect
    This event is triggered at the screen event PAI of a selection screen if all the fields of a radio button group radi of the selection screen were passed to the ABAP program. In the event block, the user input can be checked. Sending a warning or error message in the event block makes all the radion buttons of the block radi ready for input again.
    Note
    The individual fields of a radio button group are not passed individually and do not trigger the event AT SELECTION-SCREEN ON par.
    Alternative 6
    Effect
    The event AT SELECTION-SCREEN itself is triggered as the last event of selection screen processing if all the input values were passed to the program. In this event block, all the user inputs can be checked. Sending a warning or an error message in the event block makes all the screen fields ready for input once again.
    Alternative 7
    ... ON { HELP-REQUEST | VALUE-REQUEST } FOR
        {para|selcrit-low|selcrit-high} }
    Effect
    The two events ON HELP-REQUEST and ON VALUE-REQUEST are triggered at the screen events POH and POV of a selection screen if - for the input field of a parameter para or one of the input fields of a selection criterion selcrit - the field help F1 or the input help F4 was called. Other selection events are not triggered.
    In the event blocks, a self-defined field or input field can be programmed, which overrides any helps possibly defined in the ABAP Dictionary.
    Notes
    These event blocks can only be implemented for fields of the selection screen that are defined in the same ABAP program and not in a possibly linked logical database.
    With the events for the field and input help, no data is transported between the selection screen and the ABAP program. As with general screens, suitable function modules must be used for these. The parameters and selection criteria changed for the input help are transported to the selection screen.
    Alternative 8
    ... ON EXIT-COMMAND
    Effect
    This event is triggered if the user has called one of the functions Back, Exit or Cancel. In the event block, possible clean-up actions can be executed.
    Example
    In these executable programs, a standard selection screen and a further selection screen are defined. In the event blocks AT SELECTION-SCREEN, the inputs in the selection screens can be specially handled using the name p_carrid and the screen number in sy-dynnr.
    REPORT demo_at_selection_screen.
    Global data
    DATA: sflight_tab TYPE TABLE OF sflight,
          sflight_wa  LIKE LINE  OF sflight_tab.
    Selection screens
    PARAMETERS p_carrid TYPE spfli-carrid.
    SELECTION-SCREEN BEGIN OF SCREEN 500.
      SELECT-OPTIONS s_conn FOR sflight_wa-connid.
      DATA s_conn_wa LIKE LINE OF s_conn.
    SELECTION-SCREEN END OF SCREEN 500.
    Handling selection screen events
    AT SELECTION-SCREEN ON p_carrid.
      IF p_carrid IS INITIAL.
        MESSAGE 'Please enter a value' TYPE 'E'.
      ENDIF.
      AUTHORITY-CHECK OBJECT 'S_CARRID'
                          ID 'CARRID' FIELD p_carrid
                          ID 'ACTVT'  FIELD '03'.
      IF sy-subrc = 4.
        MESSAGE 'No authorization for carrier' TYPE 'E'.
      ELSEIF sy-subrc <> 0.
        MESSAGE 'Error in authority check' TYPE 'A'.
      ELSE.
        IF sy-ucomm = 'ONLI'.
          CALL SELECTION-SCREEN '0500'.
        ENDIF.
      ENDIF.
    AT SELECTION-SCREEN.
      IF sy-dynnr = '0500'.
        IF s_conn IS INITIAL.
          MESSAGE 'Please enter values' TYPE 'W'.
        ELSE.
          SELECT *
                 FROM sflight
                 INTO TABLE sflight_tab
                 WHERE carrid = p_carrid AND
                       connid IN s_conn.
          IF sy-subrc <> 0.
            MESSAGE 'No flights found' TYPE 'E'.
          ENDIF.
        ENDIF.
      ENDIF.
    Main program
    START-OF-SELECTION.
    Reward points if useful
    Regards
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • 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

  • Remove arrow from selection screen

    Hallow I have a arrow in my selection screen (for multiefile selection) and I wont to <b>remove</b>
    It from my selection screen how can I do that?
    (i remove x from set_mode but its not working)
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
    SELECT-OPTIONS c_course FOR pchdy-objid_str NO INTERVALS OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR c_course-low.
    *======================================================
      REFRESH: c_course.
      CLEAR:  c_course.
      PERFORM get_objid USING 'E '
                        CHANGING c_course-low.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR c_course-high.
    *======================================================
      REFRESH: c_course.
      CLEAR:  c_course.
      PERFORM get_objid USING 'E '
                        CHANGING c_course-high.
    CALL FUNCTION 'RH_OBJID_REQUEST'
         EXPORTING
           plvar                   = '01'
           otype                   = p_otype
            seark                   = '*'
          seark_begda             = sy-datum
          so_date-low
          seark_endda             = sy-datum
          so_date-high
          set_mode                = 'X'   "When active moltefile selection
      DYNPRO_REPID            = ' '
      DYNPRO_DYNNR            = ' '
      DYNPRO_PLVARFIELD       = ' '
      DYNPRO_OTYPEFIELD       = ' '
      DYNPRO_SEARKFIELD       = ' '
      CALLBACK_PROG           = ' '
      CALLBACK_FORM           = ' '
      RESTRICT_FB             = ' '
      RESTRICT_DATA           = ' '
      WITHOUT_RSIGN           =
      WITHOUT_RELAT           =
      WITHOUT_SCLAS           =
      ORGBEG                  = SY-DATUM
      ORGEND                  = SY-DATUM
      WIN_TITLE               =
      APP_DATA                =
         IMPORTING
           sel_plvar               = wa_plvar
           sel_otype               = wa_otype
           sel_object              = wa_objid
       TABLES
      OTYPE_TABLE             =
      CONDITION               =
      BASE_OBJECTS            =
      MARKED_OBJECTS          =
         sel_objects             = itab_object
      SEL_HROBJECT_TAB        =
      SEL_HRSOBID_TAB         =
         EXCEPTIONS
           cancelled               = 1
           wrong_condition         = 2
           nothing_found           = 3
           internal_error          = 4
           illegal_mode            = 5
           OTHERS                  = 6
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      IF wa_otype = 'E' .
        REFRESH: c_course.
        CLEAR:  c_course.
        LOOP AT itab_object.
          CLEAR c_course.
          c_course-low    = itab_object-objid.
          c_course-option = 'EQ'.
          c_course-sign   = 'I'.
          APPEND c_course.
        ENDLOOP.
        CLEAR:   itab_object.
        REFRESH: itab_object.
      ENDIF.

    Add the NO-EXTENSION  to your SELECT-OPTIONS will remove the arrow.
    For more complex control off the SELECT-OPTIONS you can use FM: SELECT_OPTIONS_RESTRICT where you can almost completelly control the options.
    (Look at <a href="http://www.geocities.com/victorav15/sapr3/abapfun.html#screen">SELECT_OPTIONS_RESTRICT</a>
    Regards

  • Copying standard report transaction selection screen

    Hi  everybody,
    How can we copy standard report transaction's VI05 selection screen to my custom report transaction's selection screen some zprogram . The problem is that when i am copying the selection screen into my programs screen, it is getting copied, but not as selection screen rather as normal screen. I have defined a transaction code for the same with the custom screen no as the selection screen but its giving a message that selection screen 9001 doesn't exist. However if i keep the selection screen as 1000 the screen in the standard transaction VI05 the transaction is executing fine.
    But again the problem was that although it seems that the screen 1000 of the standard program for VI05 has been copied to my custom program but its not showing in the object list of my custom program. so I cannot do any changes which i require.
    If anybody requires any clarification u can raise your doubts i will try to make it more clear.
    Can any body help me with this?
    Your help will be deeply appreciated.
    Thanks a lot!
    Best Wishes!
    Regards
    Prem

    Hi Prem,
    Even if the GUI Status is active, you cannot see two components of Standard Selection Screen.
    1. All Selections - Push Button
    2. Categories - Screen Block in the first with two options
         2.1. OI_STAND
         2.2. OI_BULK
    This is becoz, there are enhancement spots included in the Standard program and the enhancement spots will not be copied, unless you copy them manually.
    Check the same.
    Regards,
    -Syed.

  • Creation of spool request for a report without selection-screen.

    Hi Experts ,
    I need to create a spool request for ALV Grid report which is not having any selection-screen , after pressing F8 it will directly display the ALV Grid out put.
    Can any one help me how to run the above report in background which is not having selection-screen?
    Thank you & Regards.
    Rajasekhar.P

    HI,
    At transaction SE38 click Program -> Execute -> Background.
    Regards
    Sudheer

  • Selection-screen in subroutine

    Hi,
    I would like to know if I can create my selection-screen using a subroutine.
    Here is my selection-screen.
    SELECTION-SCREEN : BEGIN OF LINE, COMMENT 1(45) text-aaa, POSITION 50.
    PARAMETERS : p_aaa  TYPE rcgfiletr-ftappl OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN : BEGIN OF LINE, COMMENT 1(45) text-bbb, POSITION 50.
    PARAMETERS : p_bbb  TYPE rcgfiletr-ftappl OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN : BEGIN OF LINE, COMMENT 1(45) text-ccc, POSITION 50.
    PARAMETERS : p_ccc  TYPE rcgfiletr-ftappl OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    I tried this but it doesn't work.
    PERFORM test : USING text-aaa p_aaa,
                              USING text-bbb p_bbb,
                              USING text-ccc p_ccc.
    FORM test USING text parameter.
    SELECTION-SCREEN : BEGIN OF LINE, COMMENT 1(45) text, POSITION 50.
    PARAMETERS : parameter  TYPE rcgfiletr-ftappl OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    ENDFORM.
    Error message : SELECTION-SCREEN statement is not allowed in FORM
    Has anyone got an idea ?
    Regards

    First, you can not use selection-screen in FORM and PERFORM somewhere.
    Second, you can use subscreen or include it is up to your screen design.
    reward points if it helps.
    michael

  • Call selection screen in fm

    Hi all!
    I have a report, and i have a selection screen in a fm. Report call fm, and it bring me selection parameters.
    However i need run report in background, but option (F9) for do this, not visible. Somebody have any idea
    for resolve this ?
    pd: i should use fm. not using selection screen in traditional way.
    Thanks for ur answer.

    I'm not sure if anyone is looking for an answer here still, but I'll attempt an answer.
    Class Based exceptions cannot be propogated from a section of code that does not have a local memory area. This means Event (START-OF-SELECTION, AT SELECTION-SCREEN, etc) and Dialog Processing. Since the exception cannot be propogated, it hits the system and the system treats it as a dump scenario. In addition, due to the way Class Based Event Handling is processed, an exception cannot be propogated past an event handler.
    I am not sure if there is a work around for your problem though. One way may be to use a variable to store the exception that occurred; then when the Function Module itself has control again, check to see if that variable contains a value, it will raise the exception to the application that called the function. Using this and checks against this variable, you would be able to prevent further processing after the exceptions actual occurance.
    Global Data Definition
    DATA iException TYPE I VALUE 0 .
    Function Module
    CALL SELECTION-SCREEN 1234
    CASE iException .
      WHEN 0 .
       " do nothing, no exception occurred on selection screen.
      WHEN 1 .
         RAISE EXCEPTION CX_Your_Exception_Name .
    ENDCASE .
    AT SELECTION-SCREEN OUTPUT .
      IF [some condition] .
        iException = 1 . "If your exception occurred.
      ENDIF .
    This would allow you to use a global variable to log the exception and report it back to the function module; this will then allow the function module to propogate the correct exception back to the calling procedure.

Maybe you are looking for