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.

Similar Messages

  • Any standard FM to print select-options criteria on a basic report?

    Hi Experts,
    Am trying to print the user entered selection criteria on a classical/basic report. I wrote the code for select-options entries, but, am looking for any standard function module (if i pass my_select_options table, I need to get printable/readable entires) to print on my basic report, pls. let me know (I tried in SE37, but i got an in-active FM - PRINT_SELECTOPTIONS!!)
    Thank you

    Hello,
    CALL FUNCTION 'PRINT_SELECTIONS'
        EXPORTING
          rname     = program name
          rvariante = sy-slset "It will catch the selected variant
          mode      = 'TABLE'
        TABLES
          infotab   = li_info.
    li_info table will contain all selection screen data, you will can restrict what needs to be shown on spool list!
    Thanks.

  • Filtering Select-Options criteria?

    Hi Experts,
    I populated the itab.
    From this itab, I need to delete the KUNNR records, which wuld not satisfy the S_KUNNR (select-options) range. So, the follwoing codes is not working!
    DELETE ITAB WHERE  KUNNR LT S_KUNNR-LOW AND KUNNR GT S_KUNNR-HIGH.
    DELETE ITAB WHERE  KUNNR NE S_KUNNR.
    What is the correct code?
    ThanQ.

    Hi,
    Try this..
    DELETE ITAB WHERE NOT KUNNR IN S_KUNNR[].
    Thanks,
    Naren

  • Can we hide the select-option in a selection screen

    Hi all,
    I have two radio buttons in my selection screen with 1 select-option criteria, now on choosing the other radio button I want that a different select-option criteria should appears.
    Thanks

    hi kunal check the code below.
    TABLES : SSCRFIELDS,MARA.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS : S_MATNR FOR MARA-MATNR.
    PARAMETERS : R1 RADIOBUTTON GROUP RB1 DEFAULT 'X',
    R2 RADIOBUTTON GROUP RB1,
    R3 RADIOBUTTON GROUP RB1,
    R4 RADIOBUTTON GROUP RB1.
    SELECTION-SCREEN PUSHBUTTON /10(20) FRST USER-COMMAND FRST.
    SELECTION-SCREEN PUSHBUTTON /10(20) SCND USER-COMMAND SCND.
    SELECTION-SCREEN END OF BLOCK B1.
    DATA : ACTIVE1 VALUE '1',
    ACTIVE2 VALUE '1'.
    initialization.
    move 'frst' to frst.
    move 'scnd' to scnd.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'R1' OR SCREEN-NAME = 'R2' .
    SCREEN-INVISIBLE = ACTIVE1.
    screen-output = '1'.
    MODIFY SCREEN.
    ENDIF.
    IF SCREEN-NAME = 'R3' OR SCREEN-NAME = 'R4' .
    SCREEN-INVISIBLE = ACTIVE2.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    AT SELECTION-SCREEN.
    CASE SSCRFIELDS-UCOMM.
    WHEN 'FRST'.
    ACTIVE1 = '0'.
    ACTIVE2 = '1'.
    WHEN 'SCND'.
    ACTIVE2 = '0'.
    ACTIVE1 = '1'.
    ENDCASE.

  • Get Selection options from one view to another view

    Hi Experts,
    I am using two views, first view  it shows basic list of records based on selection options criteria , here I used component WDR_SELECT_OPTIONS . Then if we click on any record in first view then it opens popup window with record relevant information. Here I want to get selection option values while editing record values.
    Initially I used context node for one value, for that just I created node and attribute then bind to table then I used with method get_static_attributes_table(  ) in second view.
    But I need all values to be used in second view.
    Please could you suggest, is there another way to get values into second view?
    Regards,
    BBC

    Hello BBC,
    you can access the SELECT_OPTION component usage in second view and then you retrieve the selection fields and its corresponding range table. In this case the component usage instance will be shared across the application unless you explictly delete the component usage.
    BR, Saravanan

  • VT04 - Adding new select options in grouping screen for capacity criteria

    Hi,
    I am trying to add a new select option(min & max) for grouping the delivery based on the quanity/no of units just like the weight/volume. Is there an exit/enhancement available in the program. The program for VT04 is RV56TRGN and the actual program for grouping criteria is RV56TRSP. 
    I have looked into  the user exit EXIT_SAPLV56M_001.  This I guess is only for adding the grouping criteria and not for adding select options like weight/volume.... I would need to add something similar to this.
    THnks
    Chinna

    You should search for Screen Exit .
    Also you can check if any enhancement point is avaliable in screen display place.
    You need to debud and find the exact place where this change will be required and then it will be easy to find the option  for making desired changes.
    Hope this helps you.

  • How to delete selection criteria for select-option in program

    Hi all,
    I have a selection screen with few select-options. the question is if i inserted some value at the select option, how can i delete the selection criteria in the program ? example if i have 3 radio button A,B,C. if I click rb A, select option A1 will be active and other 2 select oprtion B1 and C1 will dim, when I click rb B, the value at select option A1 will be deleted and dim and at the same time, B1 will be active, C1 will dim. when i click rb C, the value at A1 and B1 will be cleared if there is any value in it and then A1 and B1 will dim but C1 will be active. I've found a way to make the select option active n inactive when depending on which rb i click, thanks to a forummer here but to clear the value when the select-otpion is inactive?
    Thanks for any help.

    Hi
    See the sample code and do accordingly
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: pa_file TYPE rlgrap-filename MODIF ID abc,
    pa_lifnr TYPE lfa1-lifnr MODIF ID abc,
    pa_vkorg TYPE vbak-vkorg MODIF ID abc.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS: pa_kunnr TYPE vbak-kunnr MODIF ID def.
    SELECT-OPTIONS: s_lifnr FOR gs_lfa1-lifnr MODIF ID def,
    s_date FOR gs_lfa1-erdat MODIF ID def,
    s_augru FOR gs_vbak-augru MODIF ID def,
    s_vbeln FOR gs_vbak-vbeln MODIF ID def.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pa_upd RADIOBUTTON GROUP g1 USER-COMMAND uc01 DEFAULT 'X'."#EC *
    SELECTION-SCREEN COMMENT 3(60) text-004 FOR FIELD pa_upd.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pa_rep RADIOBUTTON GROUP g1 ."#EC *
    SELECTION-SCREEN COMMENT 3(60) text-005 FOR FIELD pa_rep.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b3.
    IF pa_rep EQ gc_x.
    LOOP AT SCREEN.
    IF screen-group1 = gc_abc.
    screen-input = gc_zero_num.
    ELSEIF screen-group1 = gc_def.
    screen-active = gc_one_num.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ELSEIF pa_upd EQ gc_x.
    *For Reprocessing
    LOOP AT SCREEN.
    IF screen-group1 = gc_def.
    screen-input = gc_zero_num.
    ELSEIF screen-group1 = gc_abc.
    screen-active = gc_one_num.
    ENDIF.
    MODIFY SCREEN.
    CLEAR pa_upd.
    ENDLOOP.
    ENDIF.
    REPORT zrich_001.
    PARAMETERS: p_rad1 RADIOBUTTON GROUP grp1 DEFAULT 'X'
                            user-command chk,
                p_rad2 RADIOBUTTON GROUP grp1.
    SELECT-OPTIONS: s_datum1 FOR sy-datum MODIF ID d1,
                    s_datum2 FOR sy-datum MODIF ID d2.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF p_rad1 = 'X'
          AND screen-group1 = 'D2'.
          screen-active = '0'.
        ENDIF.
        IF p_rad2 = 'X'
         AND screen-group1 = 'D1'.
          screen-active = '0'.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • 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

  • Geting select option value on the basis of filtering criteria

    Hi
    I have a selection parameter field is PRPS-WERKS. when user will go for f4 help, the value should come as filtered on the basis of the condition : select the respective WBS ELEMENT (PRPS- PSPNR) and select the respective PR LINE item. (The relation is PRPS-PSPNR=EBKN-PS_PSP_PNR and EBKN-BANFN = EBAN-BANFN and EBKN-BNFPO = EBAN-BNFPO).now the value iof WERKS is not comming from the database table PRPS itself. how to manage this thing?

    Hi,
      Refer the link select option in smartforms and read what i suggested..
    Regards,
    Dhina..

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

  • 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

Maybe you are looking for

  • Posting of Depreciation to Internal Order

    Hello, I have a scenario where Depreciation should be posted to Internal Order. I assigned the Internal Order in the Asset Master but still when I posted the Depreciation It is giving error stating that "Account requires an Assignment to a CO object"

  • Z6A Headset With Bootcamp On An iMac?

    I am running Windows 7 on my mac with bootcamp for gaming. I am currently looking to buy a TurtleBeach Earforce Z6A. (http://www.turtlebeach.com/product-detail/pc-headsets/ear-force-z6a/44) I can tell that my iMac does not have the required ports for

  • NWDS  - Process Composer import Diagram

    Hi at all, with BPMN I modeled a Process in Intalio BPMS. Afer modelling I exported the Diagram as an Archive and tried to import it in NWDS Process Composer. This didn't work.  Both programs are based on eclipse. Does anybody have an idea how I can

  • Populating Setup Tables

    Hi, I'm looking for the transactions that would be used to populated the setup tables for my applications.  Can someone confirm what I have? Application 12 = OLI8BW Reorg. VIS Extr. Str.: Delivery Application 13 = OLI9BW Reorg. VIS Extr. Str.: Invoic

  • Portal users - last logon time details

    Hi ,  We have an requirement to get the list of users who logged in with the Last Logon Information  . From Standard Portal activity report ...we can get only the First logon date of the users . Kindly let us know the other possibilities to get it .