URGENT :  select options

Hye techies,
  I have a requirement, where i have 3 select options. Atleast data one select option should be entered. So, i cannot use obligatory tag.
i am writing the code as follows.
select-options: s_a for ztab-a,
                      s_b for ztab-b,
                      s_c for ztab-c.
data: chk_input type i.
chk_input = 0.
if s_a is not initial.
chk_input = chk_input + 1.
endif.
if s_b is not initial.
chk_input = chk_input + 1.
endif.
if s_c is not initial.
chk_input = chk_input + 1.
endif.
case chk_input.
when 0:.
MESSAGE 'Select atleast one entry in block 2' TYPE 'I'.
when 1.
when others.
MESSAGE 'Too many inputs in block 2' TYPE 'E'.
endcase.
I have 2 problems here.
1. When i am clicking on the arrow next to select options, it is displaying the first message considering the entry as empty.
2. If i enter one entry in one of the select options and then click on arrow for multiple selection, second error message is coming.
Please help me, as my requirement is one entry should be dere in one select options and it can have multiple values. but one entry is mandatory.. If the entry is wrong, previously entered values should be cleared.
At selection-sceen output.
Thanks in advance
Imran.

Hi İmran,
You firstly create a block and then put the select options within this block like this:
SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-003.
SELECT-OPTIONS:
s_lgort FOR ekpo-lgort  NO-EXTENSION NO INTERVALS,
s_vtweg FOR vbak-vtweg.
SELECTION-SCREEN END OF BLOCK  block1.
Afterwards,
AT SELECTION-SCREEN ON BLOCK block1.
  IF s_lgort[] IS INITIAL AND
     NOT s_vtweg[] IS INITIAL.
    MESSAGE e101(c+) WITH
      'Please enter the value.... write here whatever you want'
  ELSEIF s_vtweg[] IS INITIAL AND
         NOT s_lgort[] IS INITIAL.
    MESSAGE e101(c+) WITH
        'Please enter the value.... write here whatever you want'
  ENDIF.
In the past I have used this and it works.
Hope helps.
Edited by: Deniz Toprak on Jun 17, 2008 10:12 AM

Similar Messages

  • Multiple records in select options-Urgent help

    Hi all,
       Iam using the following function module to get the set values. I need to pass multiple values in select options(ie) select options with no intervals. to the function module parameter Shortname. I have declared the variable which has to be passed as
         S_SETID   FOR  SETHEADER-SETNAME NO INTERVALS.
      The problem is when i use S_SETID-LOW the value is passed to the function module , but if multiple data is entered in the input then how to pass all the data to the function module. Please Help.

    Hi,
    Declare the Range in the Function module , then you can pass that Select-option fields to that ranges and use that in the Function module.
    Or you can use the RANGE_C8 for the Select-optios in the Function module, you can declare the Internal table with the type of RANGE_C8 in the tables parameter, then pass the Select-option to this Internal table
    If you want more length field then search based on RANGE_* then you will get all the Range Structure.
    Regards
    Sudheer

  • On value request in select-options in a repot URGENT

    Hi all,
       my requirement is to provide on value request in select-options
    in selection screen Gsdpr user one select-option is there
    For GSDPR User field, provide F4 help. Users list can be selected from ZWF_UPI table where WF_UPI_TYPE is ‘HR’. From the table, select UPI Number and employee full name fields
    in ZWF_UPI  table the key fields are UPI and WF_UPI_TYPE
    non key  field is emp_full_name.
    please send me the code .
    regards
    Nagendra

    Hi,
    I do not have sample code , But you have to use the function module
    F4IF_INT_TABLE_VALUE_REQUEST on the AT-SELECTION-SCREEN ON VALUE REUQEST FOR S_OPTION-LOW event
    Select Data as per the requirement into Value table of the Function module
    Return the Data fro the Return table of the function module.
    The good choice will be Go to SE37-> Type this FM F4IF_INT_TABLE_VALUE_REQUEST  and look for Where used list-> Programs . There u will get the list of programs used this FM
    Regards
    Pavan

  • How to get calender in f4 help for select options in module pool (URGENT)

    Hi All,
    how to get calender in f4 help for select options in module pool
    Please help .
    Thanx in advance,
    amruta

    Hi Amruta,
    First of all, you can not create select-options directly in module pool.
    For creating <b>select-option is dialog prog</b> follow these steps:
    1. create your selection screen model as subscreen by:
    SELECTION-SCREEN BEGIN OF SCREEN 2000 AS SUBSCREEN.
    PARAMETRS: P_MATNR LIKE MARA-MATNR.
    SELECT-OPTIONS: S_BISMAT FOR MARA-BISMAT.
    SELECTION-SCREEN END OF SCREEN 2000.
    2. create a screen ( example 100 ) in your module-pool dedicated for selection-screen. on this screen layout sketch a sub-screen name like subscree_2000.
    3. write this bit of code in PBO and PAI of the screen 100;
    CALL SUBSCREEN SUBSCREEN_2000.
    4. include this code in PBO:
    INCLUDING SY-REPID '2000'
    6. write user_command of PAI, call screen which is going to executable after selection-screen.
    5. create a transcation for this dialog module pool with screen 100.
    6. execute this transaction and you can see it's behaving like cool with select-options.
    After that in [bprocee on value-request]</b>, use F4_DATE for both from and to option field.
    Hope it will solve the problem.
    Regards
    Krishnendu

  • How to get calender in f4 helpfor select options in module pool (urgent)

    Hi All,
    how to get calender in f4 help for select options in module pool
    Please help .
    Thanx in advance,
    amruta

    Hi,
    Check this Example..
    Tables:Mara.
    Select-options:s_matnr for mara-matnr.
    Types:Begin of i_mara,
           matnr like mara-matnr,
           end of i_mara.
      data:it_mara type standard table of i_mara.
      At selection-screen on value-request for s_matnr-low.
      Select matnr from mara into table it_mara.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
        DDIC_STRUCTURE         = ' '
          RETFIELD               = 'MATNR'
        PVALKEY                = ' '
         DYNPPROG               = SY-REPID
         DYNPNR                 = SY-DYNNR
         DYNPROFIELD            = 'S_MATNR-LOW'
        STEPL                  = 0
        WINDOW_TITLE           =
        VALUE                  = ' '
         VALUE_ORG              = 'S'
        MULTIPLE_CHOICE        = ' '
        DISPLAY                = ' '
        CALLBACK_PROGRAM       = ' '
        CALLBACK_FORM          = ' '
        MARK_TAB               =
      IMPORTING
        USER_RESET             =
        TABLES
          VALUE_TAB              = IT_MARA
        FIELD_TAB              =
        RETURN_TAB             =
        DYNPFLD_MAPPING        =
       EXCEPTIONS
         PARAMETER_ERROR        = 1
         NO_VALUES_FOUND        = 2
         OTHERS                 = 3

  • Urgent regarding select option

    Hi All,
    Hi All,
    i have lfart(delivery type) field on selction screen defiend as select-option.whenever i click on the multiple selection arrow button besides the lfart field then i n that i have selected "=" as values for opyion field of select-option table(sign,option,low,high).then an icon of "=" is displayed behind the lfart field.
    then i have wriiten a qery like this
    SELECT lfart,lfdat,.....
    INTO TABLE tb_likp
    FROM likp
    FOR ALL ENTRIES IN tb_get_del1
    WHERE vbeln = tb_get_del1-vbeln
    AND lfart IN s2_lfart
    AND lfdat IN s_lfdat,......
    but it is failing(bczo s2_lfart is not initial).then how to write the correct query .
    Thanks&Regards,
    Padma.

    Hi Padma,
    remove the = because of this the Select-option is working as parameter and your select-query is looking for the lfart  = SAPCE in the DB, which it can't found so it is failing.
    Hope it is clear.
    Reward points if useful.
    Regards,
    Atish

  • Select option criteria (urgent)

    hi all,
    i have one select option craeted for matnr from mara table.
    SELECT-OPTIONS : S_matnr FOR mara-matnr.
    so it creates internal table with 4 fields.
    my criteria is that in  low option i give default value 100 and
    it should be protected ie not open for any input and having default as 100.
    but the high open should be open for entry by user.
    how to get this done.
    plz reply

    Hi Sanjeev
    <b>You can initialize the low value in the initialization.</b>
    S_MATNR-low = '100'.
    Append s_MATNR.
    <b>To disable low write the following code.</b>
    select-options: s_matnr for mara-matnr.
    at selection-screen output.
    loop at screen.
      if screen-name = 'S_MATNR-LOW'.
          SCREEN-INPUT = 0.
          MODIFY SCREEN.
      endif.
    endloop.
    I have tested it... it's working fine.
    Regards
    Surya.

  • Select-options.. Date range..URgent...

    Hi All,
    Can anyone let me know.. how to give last one month date range in select options.
    Regards,
    Parvez.

    Hi,
    In the INITIALIZATION event you can do that.
    v_month = sy-datum+4(2) - 1.
    v_year = sy-datum+0(4).
    concatenate  v_year v_month 01 to v_date1
    concatenate  v_year v_month 31 to v_date2
    Or get the 1st and last dates of the last month and
    s_date-low = date1 (1st date of last month).
    s_date-sign= 'I'
    s_date-high = date2 (last date of last month).
    s_date-option = 'BT'
    append s_date.
    reward if useful
    regards,
    anji

  • SELECT-OPTIONS -Urgent

    Hi all,
    I am new to ABAP  ,while doing a report i have been given one task in which i have to take SALES DOCUMENT NUMBER range from the user through the selection screen through select options, the requirement is that while going for the F4 help in the select options only that Sales Document Number Should come which starts from 7or 7*.
    Please do help me out in solving this issue.
    Thanks in Advance.
    syed.

    Hi Syed,
    you can do like this:
    Use this events:
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_abc-low.
       PERFORM fm_f4.
    FORM fm_f4.
    --> here u called this function F4IF_INT_TABLE_VALUE_REQUEST
    --> put your own query for the F4 value (in you req sales doc begin with 7) and pass to the value_tab table.
    ENDFORM.
    Hope this help, cheers.
    Victor.

  • How to use the select option to get the multiple bom explosion

    hi friends,
              i have completed the bom exp using parameters to get one material
    input,but i need to adopt select option to give from and to materials
    i ll gives from and to materials with description and bom deails
    i here gave the coding also, pl give me a suggestion how to adpot the select
    optoins instead of parameters ,very urgent
    REPORT PP_BOM_EXPLOSION.
    tables :mara,marc,stpo.
    TYPE-POOLS : SLIS.
    *parameters: p_werks like t001w-werks obligatory.
    SELECT-OPTIONS : p_matnr FOR mara-matnr obligatory.
    **select-options : p_matnr for mara-matnr obligatory.
    PARAMETERS : P_WERKS LIKE T001W-WERKS OBLIGATORY,
            P_MATNR LIKE MARA-MATNR OBLIGATORY.
    *parameters: p_werks like marc-werks obligatory,
    *p_matnr like marc-matnr obligatory.
    constants c_x value 'X'.
    data: begin of it_comp occurs 0,
    matnr like mara-matnr,
    maktl like makt-maktx,
    idnrk like stpox-idnrk,
    ojtxp like stpox-ojtxp,
    menge like stpox-menge,
    meins like stpox-meins,
    matkl like stpox-matmk,
    end of it_comp.
    data : topmat like cstmat.
    data: w_topmat like cstmat.
    DATA : IT_MARA LIKE MARA OCCURS 0 WITH HEADER LINE.
    DATA : IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
    DATA : WA_FIELDCAT_LN LIKE LINE OF IT_FIELDCAT.
    DATA : IT_EVENTCAT  TYPE SLIS_T_EVENT.
    DATA : WA_EVENTCAT_LN  LIKE LINE OF IT_EVENTCAT.
    DATA : IT_LAYOUT TYPE SLIS_LAYOUT_ALV.
    DATA: S_COL_POS TYPE I.
    start-of-selection.
    perform explode_assembly.
    PERFORM BUILD_FIELDCATALOG.
    PERFORM DATA_DISPLAY.
    *end-of-selection.
    *perform write_report.
    *top-of-page.
    *perform print_header.
    *form print_header.
    *write: /(18) 'Component'(h00),
    *(40) 'Description'(h01),
    *'Mat.Group'(h02),
    *(18) 'Quantity'(h03).
    *uline.
    *endform.
    *form write_report.
    *write: / w_topmat-matnr under text-h00 color col_heading,
    *w_topmat-maktx under text-h01 color col_heading.
    *loop at it_comp.
    *write: /
    *it_comp-idnrk under text-h00,
    *it_comp-ojtxp under text-h01,
    *it_comp-matkl under text-h02,
    *it_comp-menge unit it_comp-meins under text-h03,
    *it_comp-meins.
    *endloop.
    *uline.
    *endform.
    form explode_assembly.
    data: it_stb like stpox occurs 0 with header line,
    it_stb2 like stpox occurs 0 with header line,
    it_stb3 like stpox occurs 0 with header line,
    w_msg(255) type c.
    SELECT MATNR FROM MARA INTO CORRESPONDING FIELDS OF TABLE IT_MARA
                               WHERE MATNR IN P_MATNR.
    Explode highest level:
    *LOOP AT IT_MARA.
    call function 'CS_BOM_EXPL_MAT_V2'
    exporting
    auskz = c_x
    capid = 'PP01'
    cuols = c_x
    datuv = sy-datum
    knfba = c_x
    ksbvo = c_x
    mbwls = c_x
    mdmps = c_x
    BGIXO = c_x
    MKMAT = c_x
    MMAPS = c_x
    FBSTP = c_x
    FTREL = c_x
    mtnrv = P_MATNR
    werks = p_werks
    importing
    topmat = w_topmat
    tables
    stb = it_stb
    exceptions
    alt_not_found = 1
    call_invalid = 2
    material_not_found = 3
    missing_authorization = 4
    no_bom_found = 5
    no_plant_data = 6
    no_suitable_bom_found = 7
    conversion_error = 8
    others = 9.
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
    into w_msg.
    *write: / w_msg.
    exit.
    endif.
    Don't process documents
    delete it_stb where idnrk is initial.
    Don't process valid from furure:
    delete it_stb where datuv >= sy-datum.
    Explode phantom assemblies up to last level
    *do.
    it_stb2[] = it_stb[].
    *delete it_stb2 where dumps is initial.
    *if it_stb2[] is initial.
    *exit.
    *endif.
    *delete it_stb where not dumps is initial.
    delete it_stb where VPRSV <> 'S' OR MMSTA = '61'.
    loop at it_stb2.
    call function 'CS_BOM_EXPL_MAT_V2'
    exporting
    capid = 'PP01'
    auskz = c_x
    cuols = c_x
    datuv = sy-datum
    knfba = c_x
    ksbvo = c_x
    mbwls = c_x
    mdmps = c_x
    FBSTP = c_x
    FTREL = c_x
    mtnrv = it_stb2-idnrk
    werks = p_werks
    tables
    stb = it_stb3
    exceptions
    alt_not_found = 1
    call_invalid = 2
    material_not_found = 3
    missing_authorization = 4
    no_bom_found = 5
    no_plant_data = 6
    no_suitable_bom_found = 7
    conversion_error = 8
    others = 9.
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
    into w_msg.
    *write: / w_msg.
    else.
    delete it_stb3 where idnrk is initial.
    delete it_Stb3 where sobsl = 50.
    loop at it_stb3 .
    multiply it_stb3-menge by it_stb2-menge.
    modify it_stb3 transporting menge.
    endloop.
    append lines of it_stb3 to it_stb.
    endif.
    *ENDLOOP.
    endloop.
    *enddo.
    Build table of components collecting the same components from
    all levels
    loop at it_stb.
    it_comp-matkl = it_stb-matmk.
    it_comp-idnrk = it_stb-idnrk.
    it_comp-ojtxp = it_stb-ojtxp.
    it_comp-menge = it_stb-menge.
      CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT'
        EXPORTING
        INPUT                = IT_STB-MEINS
        LANGUAGE             = SY-LANGU
        IMPORTING
      LONG_TEXT            =
       OUTPUT               = IT_STB-MEINS
      SHORT_TEXT           =
    EXCEPTIONS
       UNIT_NOT_FOUND       = 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.
    it_comp-meins = it_stb-meins.
    collect it_comp.
    clear it_comp.
    endloop.
    *READ TABLE IT_COMP INDEX 1.
    *IF SY-SUBRC = 0.
    IT_COMP-MATNR = w_topmat-matnr.
    IT_COMP-MAKTL = w_topmat-maktx.
    INSERT IT_COMP index 1.
    *ENDIF.
    ENDFORM.
    FORM TO APPEND DATA INTO ALV FORM
    FORM BUILD_FIELDCATALOG.
    PERFORM BUILD_FIELDCAT USING 'MATKL' 'Component'.
    PERFORM BUILD_FIELDCAT USING 'MATKL' 'Component'.
    *loop at it_comp.
       PERFORM BUILD_FIELDCAT USING 'MATNR' 'Material'.
      PERFORM BUILD_FIELDCAT USING 'MAKTL' 'Material Description'.
      PERFORM BUILD_FIELDCAT USING 'IDNRK' 'Component'.
      PERFORM BUILD_FIELDCAT USING 'OJTXP' 'Description'.
      PERFORM BUILD_FIELDCAT USING 'MATKL' 'Material Group'.
      PERFORM BUILD_FIELDCAT USING 'MENGE'  'Quantity'.
      PERFORM BUILD_FIELDCAT USING 'MEINS' 'Unit Of MEASUREMENT'.
    *endloop.
    ENDFORM.
    FORM TO BUILD IN FIELD CATALOG FOR ALV FORM
    FORM BUILD_FIELDCAT USING L_FIELDNAME LIKE DD03L-FIELDNAME S_TEXT LIKE DD03P-SCRTEXT_M.
      CLEAR WA_FIELDCAT_LN.
      ADD 1 TO S_COL_POS.
      WA_FIELDCAT_LN-REF_TABNAME  = 'IT_COMP'.
      WA_FIELDCAT_LN-FIELDNAME    = L_FIELDNAME.
      WA_FIELDCAT_LN-SELTEXT_M    = S_TEXT.
      WA_FIELDCAT_LN-COL_POS      = S_COL_POS.
      WA_FIELDCAT_LN-QFIELDNAME   = SPACE.
      WA_FIELDCAT_LN-HOTSPOT      = SPACE.
      WA_FIELDCAT_LN-JUST         = 'R'.
      APPEND WA_FIELDCAT_LN TO IT_FIELDCAT.
    ENDFORM.
    FORM TO BUILD IN FIELD CATALOG FOR ALV FORM
    FORM DATA_DISPLAY.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
       I_GRID_TITLE                      = TEXT-001
      I_GRID_SETTINGS                   =
      IS_LAYOUT                         =
       IT_FIELDCAT                       = IT_FIELDCAT
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
      TABLES
        T_OUTTAB                          = IT_COMP
       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.
    Thanks in advance
                                                                                    Regards
    senthilkumar D

    tables :mara,marc,stpo.
    parameters: p_werks like t001w-werks obligatory.
    *p_matnr like mara-matnr obligatory.
    *select-options : p_matnr for mara-matnr obligatory.
    select-options : P_matnr for mara-matnr.
    *parameters: p_werks like marc-werks obligatory,
    *p_matnr like marc-matnr obligatory.
    constants c_x value 'X'.
    data: begin of it_comp occurs 0,
    idnrk like stpox-idnrk,
    ojtxp like stpox-ojtxp,
    menge like stpox-menge,
    meins like stpox-meins,
    matkl like stpox-matmk,
    end of it_comp.
    data: w_topmat like cstmat.
    data : begin of itab occurs 0,
            matnr like mara-matnr,
            end of itab.
    *data : itab type table of mara with header line.
    start-of-selection.
    perform explode_assembly.
    end-of-selection.
    perform write_report.
    top-of-page.
    perform print_header.
    form print_header.
    write: /(18) 'Component'(h00),
    (40) 'Description'(h01),
    'Mat.Group'(h02),
    (18) 'Quantity'(h03).
    uline.
    endform.
    form write_report.
    write: / w_topmat-matnr under text-h00 color col_heading,
    w_topmat-maktx under text-h01 color col_heading.
    loop at it_comp.
    write: /
    it_comp-idnrk under text-h00,
    it_comp-ojtxp under text-h01,
    it_comp-matkl under text-h02,
    it_comp-menge unit it_comp-meins under text-h03,
    it_comp-meins.
    endloop.
    uline.
    endform.
    form explode_assembly.
    data: it_stb like stpox occurs 0 with header line,
    it_stb2 like stpox occurs 0 with header line,
    it_stb3 like stpox occurs 0 with header line,
    w_msg(255) type c.
    select matnr from mara into table itab where matnr  between p_matnr-low and p_matnr-high.
    loop at p_matnr.
      itab-matnr = p_matnr-low.
       append itab.
       itab-matnr = p_matnr-high.
       append itab.
       clear itab.
       endloop.
    Explode highest level:
    loop at itab.
    call function 'CS_BOM_EXPL_MAT_V2'
    exporting
    auskz = c_x
    capid = 'PP01'
    cuols = c_x
    datuv = sy-datum
    knfba = c_x
    ksbvo = c_x
    mbwls = c_x
    mdmps = c_x
    BGIXO = c_x
    MKMAT = c_x
    MMAPS = c_x
    FBSTP = c_x
    FTREL = c_x
    mtnrv = itab-matnr
    werks = p_werks
    importing
    topmat = w_topmat
    tables
    stb = it_stb
    exceptions
    alt_not_found = 1
    call_invalid = 2
    material_not_found = 3
    missing_authorization = 4
    no_bom_found = 5
    no_plant_data = 6
    no_suitable_bom_found = 7
    conversion_error = 8
    others = 9.
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
    into w_msg.
    write: / w_msg.
    exit.
    *else.
    endif.
    loop at it_stb.
    it_comp-matkl = it_stb-matmk.
    it_comp-idnrk = it_stb-idnrk.
    it_comp-ojtxp = it_stb-ojtxp.
    it_comp-menge = it_stb-menge.
    it_comp-meins = it_stb-meins.
    collect it_comp.
    clear it_comp.
    endloop.
    endloop.
    endform.
    i got the low and high from selectoption and then move it into itab.
    then i pass itab-matnr into fm. using loop.
    but i got only one output
    but ineet to got from and to output.
    give me a solution
    Regards
    ds

  • SELECT-OPTIONS in Screen

    Hi,
    I am trying to create select - options in Screen , i.e. not the selection screen but a custom screen, say 9000. I can make the text boxes etc for having the select options. But How do I simulate the button wchich comes after select options. It would be used in dialogue programming with multiple screens having different reports.
    Please reply to me urgently,
    Thanks and Regards
    Arnab Panigrahi

    A few dot points:
    1. You can have a select-option embedded in a dynpro, if you want, by using a subscreen.  There's an example bit of code at
    Module - pool Question..?
    This would be easy to adapt to being a popup rather than a full screen if required.
    2. As noted above, you can code your own select-options as in
    Making a referenced field a range?
    which I think Sesh has quoted from.
    3. For the requirement you expressed initially, the code below should do the trick... you get a different block of extra selections depending on which radionbutton you select.
    Jonathan
    report zlocal_jc_radiobutton_hiding.
    tables:
      sscrfields.           "To allow trapping of Fcode on selection screen
    selection-screen begin of block tot with frame.
    parameters :
      p_rb_01          radiobutton group rbg1 user-command zrb1 default 'X',
      p_rb_02          radiobutton group rbg1.
    selection-screen begin of block block1 with frame title text1.
    parameters:
      p_date                like sy-datum modif id bl1.
    selection-screen end of block block1.
    selection-screen begin of block block2 with frame title text2.
    parameters:
      p_time                like sy-uzeit modif id bl2.
    selection-screen end of block block2.
    selection-screen end of block tot.
    *" Events:
    initialization.
      text1 = 'Enter a date'.
      text2 = 'Enter a time'.
    at selection-screen output.
      perform at_selection_screen_output.
    at selection-screen.
      perform at_selection_screen.
    *&      Form  at_selection_screen_output
    form at_selection_screen_output.
    *" Hide the appropriate fields
      loop at screen.
        if  p_rb_01       = 'X'
        and screen-group1 = 'BL2'.
          screen-active = '0'.
        endif.
        if  p_rb_02       = 'X'
        and screen-group1 = 'BL1'.
          screen-active = '0'.
        endif.
        modify screen.
      endloop.
    endform.                    "at_selection_screen_output
    *&      Form  at_selection_screen
    form at_selection_screen.
    *" trap the radiobutton
      if sscrfields-ucomm = 'ZRB1'. "clicked Subtotal checkbox
    *" if you want to trap this radio button press here
      endif.
    endform.                    "at_selection_screen

  • Select-option in interactive report

    Hello , this is urgent requirement.
    I have one report in which in the basic report i need to display the table name like mara, mard, marc etc etc 100 table is there.
    when i click on the particular table , in the secondary list the key field of the select option should display with select option.
    please let me know if you have soultion.
    Thanks and regards,
    zubera

    hi,
    try this code
    TABLES : dd02t,databrowse.
    DATA : it_dd02t TYPE TABLE OF dd02t WITH HEADER LINE.
    PARAMETERS : table LIKE dd02l-tabname default 'M%'.
    SELECT *
           INTO TABLE
           it_dd02t
           FROM dd02t
           WHERE tabname LIKE table AND ddlanguage = 'E'.
    LOOP AT it_dd02t.
      WRITE / it_dd02t-tabname HOTSPOT.
      HIDE  it_dd02t-tabname.
    ENDLOOP.
    AT LINE-SELECTION.
      CASE sy-lsind.
        WHEN '01'.
          databrowse-tablename = it_dd02t-tabname.
          SET PARAMETER ID 'DTB' FIELD databrowse-tablename.
          CALL TRANSACTION 'SE16'.
      ENDCASE.
    reward if helpful.
    prasanth

  • Select-Option in Screen??

    Hi Experts,
    Requirement is like select-option on Selection-Screen, I want that same function on Screen(Module Pool). Infact i want that button for random selection what comes automatically  in select-options to select the multiple data.
    Can anyone help me for this.Its very very urgent.
    Thanks in Advance.
    Regards,
    Rahul

    hi rahul,
    its not possible to create multiple selections in module pool.
    but you can create 2 i/o fields for lower and upper limit in module pool and you can write select query with between keyword to get values from lower to upper limits.
    Senthil kumar

  • CHECK SELECT-OPTIONS not allowed in ECC6.0

    HI,
    Obsolete Statement 4.7 version and Ecc 6.0 Version,
    CHECK SELECT-OPTIONS not allowed
    The construct SELECT-OPTIONS in the statement CHECK is not allowed in ABAP Objects.
    Error message in ABAP Objects if the following syntax is used:
    CHECK SELECT-OPTIONS.
    Correct syntax:
    CHECK f IN seltab.
    Reason:
    This form of the statement CHECK is intended only for use during the event GET during execution of type-1-programs with logical databases. The statement checks whether the content of the work area, which was filled by the logical database for the current GET event, meets the conditions in all the selection tables that are connected with the database table read. The name of the database table is taken statically from the next higher GET statement in the ABAP program. Thus the statement does not make sense outside of an GET event block. However, the previous event concept of the ABAP runtime environment, that is, the previous way of processing logical databases, is not supported by ABAP Objects.
    I want the simple example program for Correct syntax .Can any one send me with example program and pinpoint information of the statement.
    Regards,
    venkat
    Moderator message: please search for available information.
    Edited by: Thomas Zloch on Jan 8, 2011 10:32 AM

    Hey i have the same issue with this FM
    Did u find any solution to this..?
    plz help me ... urgent..!!

  • Dynamic creation of the select-options

    Hi alll,
    I have a requirement in which the user has to check the checkbox fields that he wants to have in the select option. Accordingly the select-option fields will be created.
    For eg. if the user checks three fields out of ten & executes the program, then in the selection-screen the three select option will be shown those were checked and the other seven select-options will be invisible.
    Please help me in this its urgent.

    Nitya,
    SELECTION-SCREEN BEGIN OF SCREEN 100 TITLE title.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
    PARAMETER:rad1 RADIOBUTTON GROUP rad USER-COMMAND rad1 DEFAULT 'X',
              rad2 RADIOBUTTON GROUP rad .
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-t02.
    PARAMETER: mtr AS CHECKBOX MODIF ID g3 USER-COMMAND chk1,
               p_matnr TYPE eban-matnr MODIF ID g1,
               sloc AS CHECKBOX MODIF ID g3 USER-COMMAND chk2,
               str_loc TYPE eban-lgort MODIF ID g4.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-t03.
    SELECT-OPTIONS: matnr1 FOR eban-matnr MODIF ID g2.
    SELECTION-SCREEN END OF BLOCK b3.
    SELECTION-SCREEN PUSHBUTTON /20(10) name USER-COMMAND UCOM.
    SELECTION-SCREEN END OF SCREEN 100.
    name = 'FETCH'.
    title = 'Test'.
    CALL SELECTION-SCREEN '100'.
    TYPE-POOLS slis.
    AT SELECTION-SCREEN OUTPUT.
      IF rad1 = 'X'.
        LOOP AT SCREEN.
          IF screen-group1 = 'G1' OR screen-group1 = 'G4'.
           screen-active = '1'.
           screen-input = 0.
          ELSEIF screen-group1 = 'G2'.
            screen-active = '0'.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
    ELSEIF rad2 = 'X'.
        LOOP AT SCREEN.
          IF screen-group1 = 'G1'  OR screen-group1 = 'G4' OR screen-group1 = 'G3' OR screen-group1 = 'G5'.
            screen-active = '0'.
          ELSEIF screen-group1 = 'G2'.
            screen-active = '1'.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
      IF mtr = 'X'.
        LOOP AT SCREEN.
          IF screen-group1 = 'G1'.
            screen-input = 1 .
          ENDIF.
          MODIFY SCREEN.
       ENDLOOP.
      ENDIF.
      IF sloc = 'X'.
       LOOP AT SCREEN.
          IF screen-group1 = 'G4'.
            screen-input = 1 .
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    clear sy-ucomm.
      iflag = 1.
    Hope this may give you some lead.
    K.Kiran.

Maybe you are looking for

  • BI-IP WEB characteristic without master data

    Hello! In Bex ready for input query i can use characteristic without master data and then i can insert new values in characteristic key (maintain this characteristic from ready for input query). But when i try use this feature in WEB application i ge

  • Video out from iPod Classic looks "squished" on my TV

    I have a new iPod Classic which replaced a 5G video iPod. I have edited my photos in iPhoto to the 16:9 ratio to watch slideshows from my iPod on my 16:9 plasma TV using an iPod dock from Apple. Now when I hook up my new iPod to the same TV, using th

  • Widget creation on Flex builder and related problems - need some help

    Hi all. I am trying to create a widget like application and it seems I have made a mistake. As you know, desktop widgets are like small stickers, they do not appear on taskbar and can be hidden or docked. The problem is that I created an AIR applicat

  • Audio Issues Using iMac 27 as Monitor, after Yosemite

    Folks, I use the Mac as an external monitor for my PC. I've been playing music from the Mac on external speakers, in both Mac & PC mode for 4 years. Since Yosemite, when I switch to the PC, the speakers change to the internal built-ins. When I select

  • Modify default Safari settings in WGM

    Workgroup Manager does not appear to have a location to modify the default homepage and Safari settings. I am looking for a way to enforce a default homepage and (ideally) with specific cookie settings to enable Google SafeSearch for a user group. Is