Selection Screen Option

HI.. I'd like to know how to make it possible..
[X] ---stand for radiobutton
[  ] Yes
[X] No
I want to make that ..the shipment date range input field is appeared..after choosing "Yes"
[X] Yes     (in the same row)   Shipment Date ________ to __________ ( select-options: sp_fkdat for vbrk-fkdat. )
any advices?
Thx

Use the following code for ur requirement :
REPORT zrjntrial_tree LINE-COUNT 65
LINE-SIZE 80
NO STANDARD PAGE
HEADING.
TABLES : vbrk.
PARAMETERS : p_radio AS CHECKBOX USER-COMMAND opt1.
SELECT-OPTIONS : s_vbeln FOR vbrk-vbeln,
                 s_fkdat FOR vbrk-fkdat.
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF  screen-name = 'S_FKDAT-LOW' OR screen-name = 'S_FKDAT-HIGH'
    or  screen-name = '%_S_FKDAT_%_APP_%-TEXT' or screen-name = '%_S_FKDAT_%_APP_%-OPTI_PUSH'
    or  screen-name = '%_S_FKDAT_%_APP_%-TO_TEXT' or screen-name = '%_S_FKDAT_%_APP_%-VALU_PUSH'.
      IF p_radio IS NOT INITIAL.
        screen-input = 1.
        screen-output = 1.
        screen-invisible = 0.
        MODIFY SCREEN.
      ELSE.
        screen-input = 0.
        screen-output = 0.
        screen-invisible = 1.
        MODIFY SCREEN.
      ENDIF.
    ENDIF.
  ENDLOOP.
Regards,
Himanshu

Similar Messages

  • Hide selection screen option on the base of Transaction code

    Hi ,
    i have created one report with two diffrenet transaction code .
    now we have two different selection  options on the base of Transaction code.
    how can i do coding for this .
    anyone has any sample code ..
    thanks,
    Jack

    Thanks Subramanian,
    INITIALIZATION.
    if sy-tcode = tcd1.
    perform first_selection_screen.
    elseif sy-tcode = tcd2.
    perform second_selection_screen.
    endif.
    FORM first_selection_screen..
    SELECTION-SCREEN BEGIN OF BLOCK s1 WITH FRAME TITLE text-s02.
    SELECT-OPTIONS: s_date  FOR  vbrk-fkdat.
    SELECT-OPTIONS: s_kunag  FOR  vbrk-kunag.
    SELECTION-SCREEN END OF BLOCK s1.
    ENDFORM.
    But in this perform if i write code for selection-screen then it gives me syntax error.
    error message: within form or function module, selection-screen option is not allowed.
    Thanks,
    Jack

  • Submit selection screen options of one report to another report

    hi ,
      My requirement is as follows . i have a report with a selection screen .The report fetches data from a ztable according to multiple parameters and select options in the selection screen. The mandatory parameters are two diffrent dates according to which the data is fetched. If one of the dates is the CURRENT date then the data  to be fetched is not present in the Ztable as the data is updated daily at midnight. What is required if the user enters the current date in one of the dates then my report should save the selection screen parameters present in therest of the select options and submit these parameters to the second report which updates the data into the table so that my report can fetch it accordingly. If i am getting a bit confusing i am sorry . This is the best i could explain .If any clarififcations are required please ask. Please could u help me with this problem and guide me how to do this . Thanks in advances and helpful answers will be rewarded.

    Hi,
    When you start an executable program, the standard selection screen normally appears, containing the selection criteria and parameters of both the logical database connected to the program and of the program itself. When you start an executable program using SUBMIT, there are various additions that you can use to fill the input fields on the selection screen:
    SUBMIT... [VIA SELECTION-SCREEN]
    [USING SELECTION-SET <var>]
    [WITH <sel> <criterion>]
    [WITH FREE SELECTIONS <freesel>]
    [WITH SELECTION-TABLE <rspar>].
    Ex.
    The following executable program (report) creates a selection screen containing the parameter PARAMET and the selection criterion SELECTO:
    REPORT REP1.
    DATA NUMBER TYPE I.
    PARAMETERS PARAMET(14).
    SELECT-OPTIONS SELECTO FOR NUMBER.
    The program REP1 is called by the following program using various parameters:
    REPORT REP2 NO STANDARD PAGE HEADING.
    DATA: INT TYPE I,
    RSPAR LIKE RSPARAMS OCCURS 10 WITH HEADER LINE.
    RANGES SELTAB FOR INT.
    WRITE: 'Select a Selection!',
    SKIP.
    FORMAT HOTSPOT COLOR 5 INVERSE ON.
    WRITE: 'Selection 1',
    / 'Selection 2'.
    AT LINE-SELECTION.
    CASE SY-LILLI.
    WHEN 4.
    SELTAB-SIGN = 'I'. SELTAB-OPTION = 'BT'.
    SELTAB-LOW = 1. SELTAB-HIGH = 5.
    APPEND SELTAB.
    SUBMIT REP1 VIA SELECTION-SCREEN
    WITH PARAMET EQ 'Selection 1'
    WITH SELECTO IN SELTAB
    WITH SELECTO NE 3
    AND RETURN.
    WHEN 5.
    RSPAR-SELNAME = 'SELECTO'. RSPAR-KIND = 'S'.
    RSPAR-SIGN = 'E'. RSPAR-OPTION = 'BT'.
    RSPAR-LOW = 14. RSPAR-HIGH = 17.
    APPEND RSPAR.
    RSPAR-SELNAME = 'PARAMET'. RSPAR-KIND = 'P'.
    RSPAR-LOW = 'Selection 2'.
    APPEND RSPAR.
    RSPAR-SELNAME = 'SELECTO'. RSPAR-KIND = 'S'.
    RSPAR-SIGN = 'I'. RSPAR-OPTION = 'GT'.
    RSPAR-LOW = 10.
    APPEND RSPAR.
    SUBMIT REP1 VIA SELECTION-SCREEN
    WITH SELECTION-TABLE RSPAR
    AND RETURN.
    ENDCASE.
    Regards,
    Bhaskar

  • Selection Screen options for Tcode CRM_DNO_MONITOR - Transaction Monitor

    Hi all,
    I need information regarding the selection screen when i am executing the Tcode CRM_DNO_MONITOR.
    When i am executing CRM_DNO_MONITOR in the selection screec there are follwing options:
    Mine
    My Department
    My colleagues
    My Team(s)
    In the selection screen if choose "Mine" option am able to see the o/p and if i select any other options am not getting the o/p. So It would be great if any one explain what are these options for and how they are use full ?
    If i want to delete the unwanted selection criteria is that possible.
    Thank you in advance,
    Regards
    Vijay

    solved myself...!

  • Selection screen option for Screen type like inDEMO_SEL_SCREEN_AS_SUBSCREEN

    hello,
    in this program there are 2 selection screens,called from MAIN screen.
    DEMO_SEL_SCREEN_AS_SUBSCREEN
    i want to create similar..
    In main screen i will have 3  screens (which should have of screen type 'Selection screen ' ) and 1 BOX (in which I will have Table control)..
    I created the main screen 0100 and 3 sub screens..(1001,1002,1003)
    But when i want to create these I cannot choose Screen Type as 4 Selection screen (the other options are 1.normal 2.Subscreen 3 Modal dialog box)..
    I have gone through other threads..they simply say its not possible..
    then how was it done in DEMO_SEL_SCREEN_AS_SUBSCREEN..
    Also i have seen Zprograms with 3 sub screens as Selection screen ...
    Also interestingly the  short description of this screen is
    SEL_SCREEN 1100 INFO:140000140000000000000000000005490892784

    Hi,
    This code form teh same program creates them as selection screen.
    SELECTION-SCREEN BEGIN OF SCREEN 1100 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-010.
    PARAMETERS: p1(10) TYPE c,
                p2(10) TYPE c,
                p3(10) TYPE c.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN END OF SCREEN 1100.
    SELECTION-SCREEN BEGIN OF SCREEN 1200 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-020.
    PARAMETERS: q1(10) TYPE c OBLIGATORY,
                q2(10) TYPE c OBLIGATORY,
                q3(10) TYPE c OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN END OF SCREEN 1200.
    check this out:
    [http://wiki.sdn.sap.com/wiki/display/ABAP/Select-OptionsinModulePoolProgramming]
    Edited by: sap_wiz on Jun 23, 2011 1:33 PM

  • Variable Selection Screen Options.....is this poss??

    Variable values can be displayed in Text, Text & Key, Key using the Hammer icon feature.
    How do I make say only " Text " ( for variables ) as default for all the users ?
    Message was edited by:
            Jr Roberto
    Message was edited by:
            Jr Roberto

    Ravi,
    I shud have mentioned that I was referring the variable selection screen which pops up when a query is run.
    Your idea works fine in my system but when I try under a diff a user its all the same again, Text is always defaulted!
    Is it possible to have Key Values Defaulted for  some variables & Text for some others??
    Any clue...
    Message was edited by:
            Jr Roberto

  • How to restric the selection screen option

    Hi,
       This is my first time to use this site. I am working on report which is OM report using PCH logical DB. when I run the report it runs for all OBJID instead of running for the select one(the one I use on selection screen).
    Does any one has any Idea why is this doing that and how to fix it.

    after GET OBJEC uss te folliwng check..
    CHECK OBJID in PCHOBJID.
    ~Suresh

  • Text for block and select option on the selection screen of Logical Databas

    Hi,
    I have copied a standard program (RFBELJ10) which is making use of LDB (BRF) and created a custom program. Now, the requirement is to add a selection screen option to the custom report and do some validation on the data extracted. I have added the select option and provided a text (lets say "Segment") to it using menu path Goto --> Text Elements --> Selection Texts and activated. But this text is not displayed on the screen when i execute the report. It is showing the string which i used while defining the select option.
    Also i need to provide a frame and title to it. but its not displayed.
    i have written the following code for that:
    SELECTION-SCREEN: BEGIN OF BLOCK seg WITH FRAME TITLE text-h01. " Segment
    SELECT-OPTIONS: s_segmnt FOR faglflexa-segment. " Segment
    SELECTION-SCREEN: END OF BLOCK seg.
    Could you please help me in getting the texts displayed for fram and the select option?
    Thanks,
    Phani

    Solved the problem. I have maintained the text in German. So, when I execute the report in english, it is not displaying the text. I have translated the texts to English and is working fine now.

  • Select-Options and check box on Selection Screen

    Hi Guru's,
    I have to develop a webdynpro report(static). I have a combination of select options and checkboxes on the selection screen. Can you please help me how to design this static selection screen.
    Thanks,
    Pradeep

    Hi Pradeep,
    WDP ABAP does not directly provide the selection screen options as in ABAP programming.
    You can achieve the selection screen functionality using the WDR_SELECT_OPTIONS component usage. Go through the WDP component WDR_TEST_SELECT_OPTIONS.
    Regards
    Wenonah

  • How to put Mandatory option for selection screen fields in ABAP Queries

    Hi Experts
    Can anyone tell me how to put mandatory option for the selection screen fields in ABAP Queries.
    Manually I had written code in the At Selection Screen  option in infoset to display error message if that field is blank.
    But I need to display the selection fields with the tick mark (obligatory mark).
    How to do this?
    Appropriate answers will be awarded

    Hi
    For parameter option
    parameters : p_kunnr type kna1-kunnr  obligatory.
    For select option
    select-options: s_date for vbak-erdat obligatory.
    Plz rewards points ,
    Regards ,
    Ganesh.

  • To Load ALV Layout in report selection screen

    Hi...
    I want the selection screen option for user so that he can select any of the saved layouts.
    I have done some coding after refering to some threads in here.But I can't proceed further...plz help
    <b>selection screen</b>
    SELECTION-SCREEN BEGIN OF BLOCK 006 WITH FRAME TITLE text-006.
    PARAMETERS: p_layout LIKE disvariant-variant.      " layout
    SELECTION-SCREEN END OF BLOCK 006.
    <b>data declarations</b>
    DATA: wa_variant TYPE disvariant.
    DATA: w_variant_save TYPE c VALUE 'A'.
    DATA: gs_variant TYPE disvariant.
    DATA: gs_layout TYPE lvc_s_layo.
    DATA: g_repid LIKE sy-repid.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_layout.
      PERFORM variant_input_help.
    FORM variant_input_help .
    DATA: tl_dynpfields TYPE TABLE OF dynpread.
    DATA: wl_exit TYPE c.
    DATA: wal_variant LIKE wa_variant.
    DATA: wal_dynpfields TYPE dynpread.
    Get values from the selection screen to determine layout set
    wal_dynpfields-fieldname = p_layout.
    APPEND wal_dynpfields TO tl_dynpfields.
    CALL FUNCTION 'DYNP_VALUES_READ'
      EXPORTING
        DYNAME                         = sy-cprog
        DYNUMB                         = '1000'
      TRANSLATE_TO_UPPER             = ' '
      REQUEST                        = ' '
      PERFORM_CONVERSION_EXITS       = ' '
      PERFORM_INPUT_CONVERSION       = ' '
      DETERMINE_LOOP_INDEX           = ' '
      TABLES
        DYNPFIELDS                     = tl_dynpfields
    EXCEPTIONS
      INVALID_ABAPWORKAREA           = 1
      INVALID_DYNPROFIELD            = 2
      INVALID_DYNPRONAME             = 3
      INVALID_DYNPRONUMMER           = 4
      INVALID_REQUEST                = 5
      NO_FIELDDESCRIPTION            = 6
      INVALID_PARAMETER              = 7
      UNDEFIND_ERROR                 = 8
      DOUBLE_CONVERSION              = 9
      STEPL_NOT_FOUND                = 10
      OTHERS                         = 11
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
      LOOP AT tl_dynpfields INTO wal_dynpfields.
        CASE wal_dynpfields-fieldname.
          WHEN 'p_layout'.
            wa_variant-variant = wal_dynpfields-fieldvalue.
        ENDCASE.
      ENDLOOP.
      wa_variant-report = sy-repid.
      wa_variant-variant = p_layout.
      wa_variant-username =  sy-uname.
    **Invoke function to provide drop down entries
      CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
        EXPORTING
          IS_VARIANT                = wa_variant
        I_TABNAME_HEADER          =
        I_TABNAME_ITEM            =
        IT_DEFAULT_FIELDCAT       =
          I_SAVE                    = w_variant_save
        I_DISPLAY_VIA_GRID        = ' '
       IMPORTING
          E_EXIT                    = wl_exit
          ES_VARIANT                = wal_variant
        EXCEPTIONS
          NOT_FOUND                 = 1
          PROGRAM_ERROR             = 2
          OTHERS                    = 3
      IF SY-SUBRC IS INITIAL.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4
        IF wl_exit IS INITIAL.
          p_layout = wal_variant-variant.
        ENDIF.
      ELSE.
        message I033 WITH TEXT-034.
      ENDIF.
    *gs_variant-variant = p_layout.
    *gs_variant-report = sy-repid.
      FREE: tl_dynpfields.
      g_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
        I_INTERFACE_CHECK                 = ' '
        I_BYPASSING_BUFFER                = ' '
        I_BUFFER_ACTIVE                   = ' '
         I_CALLBACK_PROGRAM                = g_repid
        I_CALLBACK_PF_STATUS_SET          = ' '
        I_CALLBACK_USER_COMMAND           = ' '
        I_CALLBACK_TOP_OF_PAGE            = ' '
        I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
        I_CALLBACK_HTML_END_OF_LIST       = ' '
        I_STRUCTURE_NAME                  =
        I_BACKGROUND_ID                   = ' '
        I_GRID_TITLE                      =
        I_GRID_SETTINGS                   =
        <b>IS_LAYOUT                       </b>  = <b>??</b>
      <b>  IT_FIELDCAT                       = ??</b>
        IT_EXCLUDING                      =
        IT_SPECIAL_GROUPS                 =
        IT_SORT                           =
        IT_FILTER                         =
        IS_SEL_HIDE                       =
        I_DEFAULT                         = 'X'
        I_SAVE                            = ' '
         IS_VARIANT                        = wal_variant
        IT_EVENTS                         =
        IT_EVENT_EXIT                     =
        IS_PRINT                          =
        IS_REPREP_ID                      =
        I_SCREEN_START_COLUMN             = 0
        I_SCREEN_START_LINE               = 0
        I_SCREEN_END_COLUMN               = 0
        I_SCREEN_END_LINE                 = 0
        I_HTML_HEIGHT_TOP                 = 0
        I_HTML_HEIGHT_END                 = 0
        IT_ALV_GRAPHICS                   =
        IT_HYPERLINK                      =
        IT_ADD_FIELDCAT                   =
        IT_EXCEPT_QINFO                   =
        IR_SALV_FULLSCREEN_ADAPTER        =
      IMPORTING
        E_EXIT_CAUSED_BY_CALLER           =
        ES_EXIT_CAUSED_BY_USER            =
        TABLES
          <b>T_OUTTAB                          =  </b><b>??</b>
      EXCEPTIONS
        PROGRAM_ERROR                     = 1
        OTHERS                            = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " variant_input_help
    wat steps shud i take

    Hi ,
    I have used the below FM for layout help,
    data: gs_variant like disvariant,
    gs_variant-report = sy-repid.
        call function 'REUSE_ALV_VARIANT_F4'
          exporting
           is_variant                = gs_variant
           i_save                    = 'A'
           i_display_via_grid        = 'X'
         importing
           es_variant                = gs_variant
         exceptions
           not_found                 = 1
           program_error             = 2
           others                    = 3
        if sy-subrc = 0.
            pa_var = gs_variant-variant.    
        endif.
    Note pa_var is your select options field in the SELECTION SCREEN,
    call function 'REUSE_ALV_GRID_DISPLAY' "
               exporting
                 i_bypassing_buffer                = 'X'
                 i_buffer_active                   = 'X'
                 i_callback_program                = sy-repid
                 i_callback_top_of_page            = 'TOP_OF_PAGE'
                 is_layout                         = gs_layout
                 it_fieldcat                       = gt_fieldcat
                 i_save                            = 'A'
                 is_variant                        = gs_variant
                 it_events                         = gt_events
                tables
                 t_outtab                          = gt_output
               exceptions
                 program_error                     = 1
                 others                            = 2
    hope this helps you.
    Regards,
    Raghavendra

  • 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

  • ABAP Query : Obligatory fields on selection screen!

    Hi Experts,
    I would like to know the differrent ways through which we can define mandatory fields on selection screen.Options availabel in Infosets (SQ02) as well as Query(SQ01).
    Selection Screen:
    Document Date in Document:  (Mandatory      Select-Option)
    Plant :  (Mandatory      Select-Option)
    Thanks,
    Yogesh

    Hi, Everyone .
    We can do that .
    At selection-screen output (code section 13), set "1" to the field REQUIED by using MODIFY SCREEN code .
    (You can get Dynpro number by F1 key or T-cd SE51 )
    Masao .
    Edited by: MASAO NONAKA on Oct 20, 2008 9:11 AM

  • Selection screen as in MD02 in a custom program

    Hi everyone.
    I need to create a program for which the selection screen should contain all of the MD02 tcode select options except the material and plant.
    Please let me know how I can achieve this.
    I dont know what fields I need to describe in the parameters.
    Thanks,
    Lakshmi

    I dont want to create as module pool. I want to actually create as a report.
    I will be more clear. I need in the selection screen, the sales order number and all selection screen options of MD02. (Except the material and plant select options).
    Then if we enter the sales order number, I need to display the list of sales order nr, item nr, material, material descr, plant. I need a check box in front of each line in the display of this list.
    Then I need to select few of these and click a push button and do MRP based on some logic.
    Please give me some ideas how I can achieve this.
    Thanks,
    Lakshmi
    Edited by: lakshmi  P on Aug 21, 2008 11:46 PM

  • Modify selection screen for Logical Database 'SDF'

    Hi
    I need to make a section of the standard selection screen for logical database 'SDF' invisible. I have tried the differet selection screen options of the report attributes, but none of the provided ones give me what I want.
    How can I find the name of the screen group for the "Line Item Selection" block of the selection screen so that I can make it invisible when the selection screen is displayed?
    Thanks,
    Thomas

    I tried to do this:
    Loop at screen.
             if   screen-group4 = '026'
               or screen-group4 = '027'
               or screen-group4 = '028'.
                 screen-invisible = 1.
                 modify screen.
             endif.
    endloop.
    This removed the selection text for these fields, but the Line Item Selection block is still visible, and the actual input fields are also visible. They now look like password input fields with all ***** in them.
    What am I doing wrong?
    Thanks for your help!
    Thomas

Maybe you are looking for

  • What is the diffrence between extends and creating new object?

    HI ALL, what is the diffrence between extends and creating new object? meaning class base{ class derived extends base{ class base{ class derived { derived(){ base var = new base(); can u people tell me diffence from the above examples. THANKS. ANANDA

  • Pinned tabs stay highlighted

    ''locking this thread as duplicate, please continue at [https://support.mozilla.org/en-US/questions/1029649 /questions/1029649]'' I use pinned tabs for Facebook, Twitter, and emails. The blue highlight feature for new notifications is staying on cont

  • How do I set up PayPal in iTunes 10?

    Hi everyone. I've tried setting up PayPal as my form of billing on iTunes 10, but every time I do, it redirects me to a page where I must fill out a debit or credit card's credentials. Is it even possible to do, or am I just missing something? Thanks

  • How to use checkboxes instead of radio button in datagrid

    I have a datagrid. I have two checkboxes in datagrid.That checkboxes should act like radio button.ie we can select only one checkbox at a time. If we select second checkbox,then the first selected checkbox should deselected.How to handle this scenari

  • Office 2008

    hello! i have a macbook 13', first generation with 2gb ram running OS 10.4.11, and i have very difficulty in working with excel. it is extremely slow in doing what so ever. i also have other problems but this is the one i hate the most, it is almost