Selection-screen - add default value to multiple selection

Hi,
How I can add a default value for multiple selection, on a Select-options?
Thanks in advance,
Brian Gonsales

By default, selection optoins are RANGES, therefore to fill these before display, in the INITIALIZATION section
  CLEAR: so_field, so_field[].
  so_field = 'IEQvalue'. append so_field.
  so_field = 'IEQvalue2'. append so_field.
  so_field = 'IEQvalue3'. append so_field.
If you want ranges
  CLEAR: so_field, so_field[].
  so_field = 'IBT'. so_field-low = 'lowvalue'. so_field-high = 'highvalue' append so_field.
*  ETC
Edited by: Paul Chapman on May 15, 2008 9:30 AM

Similar Messages

  • Selection screen variant default value

    Hi,
    I have a hidden parameter defined of type sy-slset to store the current selected variant. Now how do i make sure that this parameter will contain the actual variant name now matter whether the program is executed in background or foreground.

    Hi Premal,
    when you run the program in background using SM37 the dynamic varint will get created.
    You might have storing the variant in the custom table.
    First you maintain the entry for the particular vairant in the custom table.
    Then you run the program in background using TCode- SM36 for the particular variant.
    The particular fields for the variant will get maodified in th custom table.
    Hope this will solve your issue.

  • How to add default value to the Exclude single value in selection screen..

    Hi Experts,
    i have searched in sdn, but not able to get proper results,
    in my report i have a selection screen, in that there is a Select-option like status, for this status i need to exclude '02'
    for this i need to add the default value under exclude singale values option, not in lower and upper limit.
    can anyone help me...
    Regards,
    Sudha.
    Moderator message: please search for available information/documentation before asking, don't just claim you did.
    Edited by: Thomas Zloch on Oct 27, 2010 2:50 PM

    Hi,
    you can use the function module SELECT_OPTIONS_RESTRICT .
    This function module simplifies the handling of SELECT-OPTIONS on the selection screen by restricting possible selection options and signs.
    By calling this function module, you can restrict the number of selectio options available for the chosen selection field. You can also disable the function allowing users to enter values to be excluded from the selection (SIGN = 'E').
    Regards,
    S.Velsankar

  • Using select list as default value in tabular form.

    Hi,
    I am using Application Express 4.1.0.00.32. I have two questions that are related.
    I have a Select item *'P1_SELECT'* and a tabular form My Items.
    Question 1. The My Items tabular form col1 Attributes are set Display As Text Field, and the Tabular Form Attributes are set Default Type = item(application or page item name), Default = P1_SELECT. I have checked the session state value is set on P1_SELECT ie. Fred. What I need to know is, why, when adding a row to the tabular form My Items does col1 not display 'Fred' as the default value from the select item P1_SELECT? I can change col1 of the Tabular form to be Display as Text (save state) and this will work. However that leads me on to:
    Question 2. After adding say 3 rows to the form, I then change the select P1_SELECT value to Bob and Bob is now set in session state on the P1_SELECT item, but when I again add row to the form the value Fred is still the value not Bob. It seems that the tabular form keeps the default value as Fred and not Bob. How can I get this to look or work like:
    col1_
    Fred
    Fred
    Fred
    Bob
    Your help is needed.
    Thanks.

    Howard (DBA in Training) wrote:
    Do you submit the page or set the value after changing the selection? If not, the display value seems to be Bob but the working value is still Fred. That's what you are seeing right? In the "Settings" section, what do you have for "Page Action when Value Changed". I've been using "Redirect and Set Value" because I was staying on the same page after the selection.
    Additional info which might be helpful (or NOT). ====================
    NOTE: I am just a novice's novice with APEX and I had much agony with Select Lists. It was challenging to have the Select List value displayed because there seem to be so many different sources of the Select List value, namely:
    1) the current value in the session state
    2) the value you can specify in "Source value or expression" in the "Source" section of the Select List item
    3) the value you can specify in the "Post Calculation Compution" in the "Source" section of the Select List item
    4) the value you can specify in the "Default value" of the "Default" section of the Select List item
    [Now, if I've misdescribed any of these, remember, this is from a novice's perspective.]
    It's like putting a clock (back) together. Get any of the pieces wrong and it will probably not work right.
    I had an addiitonal challenge in that I wanted the same Select List displayed on multiple pages and for the currently selected value (from the former page) to already be set on the new page when it was displayed. What fun!
    To see what I did here: http://apex.oracle.com/pls/apex/f?p=43250:101 login Dever/Ima9Dever
    Remember, I'm doing many things you will likely not need to do. I iniitalized the Select List for the first time it displayed. I copied the Select List value from old page to new page by storing it in an application item F217_SYS_NIC_NM.
    Best wishes,
    HowardHi Howard,
    You don't have submit the page for just setting one item's session state. you can use a Dynamic Action OR use Page Items to Submit property if available (this is available in various places such as sql region,chart region etc)
    In context to this question you don't have to do any of those..just see my example above
    Thanks

  • Current Calendar Day on Selection Screen as Default

    Hi,
    I have a situation where i need to have a variable which pulls up current calender day as a default value in the selection screen.
    Here users can use the default value if they want or else they should be able to change the default value to their requirent date.
    I have gone thorugh number of posts in this forum , but non solved my problem . that is the reason i am posting new thread. Please suggest.
    Thanks,
    Kumar

    Hi Kumar,
    You can use the SAP standard  0DAT ,this will display the current calendar day.
    Or
    We can write it in CMOD 
    Create A variable by name Y_SDATE in the QD and in CMOD u can write this piece of Code.
    WHEN 'Y_SDATE'.
            SY_DATE = SY-DATUM .
            IF I_STEP = 1.
            L_S_RANGE-LOW  =  SY_DATE .
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT  = 'EQ'.
            APPEND L_S_RANGE TO E_T_RANGE.
        ENDIF.
    Hope this helps
    Rgds
    SVV123

  • Selection Screen search help values based on condition

    Hi All,
    I am developing this report for HR.And the requirement is in one of the selection screen field the
    value's should be appeared(when f4) based on some condition,ie not all values should come.
    My field is HRP1001-sobid,here there are many values,they dunt want all that to be shown when user
    tries to input the values(F4).And also i need to show the Text for this field(department name) in
    search help.
    Can anyone please guide...
    Thanks in advance.

    Hi Salz
    You can code your own search help procedure for this. To achieve this, first you should add the block:
    <u>e.g.</u>
    AT SELECTION-SCREEN ON VALUE REQUEST FOR p_sobid.
    Within this block you can use the standard FM "<b>RH_OBJID_REQUEST</b>" to call the standard HR help list for objects conditionally.
    Regards
    *--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

  • Set Default Value of Multi-select list item

    I have a multi-select list item I want to default the value of to '%' (which is really '%null%') and have it selected. I tried setting default value of item, but it doesn't take '%null%'. I also tried a computation with a static of
    :P507_ITEM := '%null%'; How do you get the default value set and selected?

    Hi
    Shijesh is right, you need to change your null return value and use that return value as your default. Try and use something of the same datatype as your real return values if you plan to use '%' to display all as it will make your queries simpler. eg.
    Company A returns 1
    Company B return 2
    % returns 0
    Then your query would be...
    SELECT ...
    FROM ...
    WHERE company_id = DECODE(:P_COMPANY,1,1,2,2,0,company_id)
    Hope this makes sense.
    Cheers
    Ben

  • Selection screen  report  dump on "start-of-selection "event.

    Hello ,
    I created report with selection screen . When I run the transaction  and  hit execute F8 the program is NOT  executed at all and transaction ends up on "SAP easy access" screen.
    I checked in debugger and I realized that program is  executed  until the event  "start-of-selection" on that line execution stops.
    In that moment sy-ucomm = 'CRET'
    Although when the program is executed from SE80 ( direct execution ) everything works well in this case sy- ucomm  is initial ( no value)
    Please advice .
    Krsto
    at selection-screen.
      perform layout_validation .
    start-of-selection.     - execution stop s on this line
      select * from zlabveri

    so what did the dump (read it in trans ST22) tell you the problem is?  Read the dump and fix the error.  Forum participants have no psychic antennae nor can they remote view your dumps

  • TO display pop_up on selection screen And chosse that field in 'SELECT' sta

    Hello,
    I want a pop up on selection screen when user clicks the push button on selection screen pop up should come on selection screen and display the all field of YTLEA table. when user checks few or all field from pop up then data for that field is selected from the YTLEA table.

    DDIF_TABL_GET

  • Adding default value for a select-options in a selection-screen

    hello gurus,
    i have a report program with the following select-options in a selection-screen block:
    select-options:  so_site  for MyTable-werks.
    i want the so_site to have a default value once the program displays. can it be possible?
    regards,
    sid

    Hi sid,
    1. Whenever we use select-option,
       an internal table of type range is
      automatically created.
    2. so, in fact, we have to put
       record in this internal table.
    3. eg. Just copy paste in new program.
    4.
    report abc.
    tables : t001.
    select-options : bukrs for t001-bukrs.
    initialization.
      bukrs-sign = 'I'.
      bukrs-option = 'EQ'.
      bukrs-low = '1000'.
      append bukrs.
    regards,
    amit m.

  • Setting ranges as default values for a selection screen value

    i have a selection screen parameter s_yywrpc. For this s_yywrpc i have to set some range of values as default values.
    Can u tell me how can i do that .
    select-options:s_yywrpc for vbak-yywrpc.
    for this parameter i have to set MSPG, MSP, FMP, FMPG, CFEG, FCFG, CMSG, CMSP as the default values in selection screen
    can anybody tell me how can i code this
    thanks
    pavan

    >
    pavan kumar wrote:
    > i have a selection screen parameter s_yywrpc. For this s_yywrpc i have to set some range of values as default values.
    > Can u tell me how can i do that .
    >
    > select-options:s_yywrpc for vbak-yywrpc.
    > for this parameter i have to set MSPG, MSP, FMP, FMPG, CFEG, FCFG, CMSG, CMSP as the default values in selection screen
    >
    > can anybody tell me how can i code this
    >
    >
    > thanks
    > pavan
    in the intialization event.
    INTIALIZATION.
    s_yywrpc-low = 'MSPG'.
    s_yywrpc-sign = 'I'.
    s_yywrpc-option = 'EQ'.
    append s_yywrpc.
    s_yywrpc-low = 'MSP'.
    append s_yywrpc.
    do it all for the values.

  • Default Value for a selection screen field

    Hi Experts,
    I am having a selection screen with a date field i am defaulting the date field to sy-datum but i also have a option of changing the date field value.
    The issue is i have defaulted the date field value in PBO event,so when i change my field value in selection screen every time the defaulted value is appearing instead of my new changed value.
    Plzz suggest a solution.

    Hi ,
           Actualy u should set the default value at the time of selection screen, but now from the same logic try to write like
       If Date is initial.
         data = sy-datum.
        endif.
    in ur PBO
    Try this.
    THank
    -Anmol
    Hi Experts,
    I am having a selection screen with a date field i am defaulting the date field to sy-datum but i also have a option of changing the date field value.
    The issue is i have defaulted the date field value in PBO event,so when i change my field value in selection screen every time the defaulted value is appearing instead of my new changed value.
    Plzz suggest a solution.

  • Changing of default values on the selection screen dynamically

    Hi,
          I have 2 radiobuttons R_A & R_B and i have one text field like P_TEXT. Based on selection of radio button i have to change the default values in P_TEXT on the selection screen. like if i select R_A i have to display P_TEXT = 'A'. if i select R_B then it has to display P_TEXT = 'B'. I tried like as below
    in AT SELECTION-SCREEN OUPUT EVENT.
                 IF R_A = 'X'
                   P_TEXT = 'A'.
                 ELSEIF R_B= 'B'.
                   P_TEXT = 'B'.
                 ENDIF.
            But it's not working. it is working only for first radio button. when i select second radio button it is not giving the second value. can any one tell the sol.
    Tks in advance.

    Hi Pammi,
    Use this code, its working:-
    PARAMETERS : r_a RADIOBUTTON GROUP gp1 DEFAULT 'X' USER-COMMAND rb,
                 r_b RADIOBUTTON GROUP gp1,
                 p_text(20).
    "we use user command with the radiobutton so that some event is occured in order to call AT SELECTION-SCREEN OUTPUT.
    AT SELECTION-SCREEN OUTPUT.
      IF r_a = 'X'.
        p_text = 'Hello'.
      ELSEIF r_b = 'X'.
        p_text = 'Hi'.
      ENDIF.
    In the above case 'AT SELECTION-SCREEN OUTPUT' will act as PBO of the selection screen and will change value of selection text as per condition.
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

  • Default value on the selection screen.

    Hi All,
    We have a field on the selection that is Sales Organisation.
    Now for this field we want the default value coming from the User Parameters.
    i.e On SAP menu under SYSTEM there is User profile, In that user profile if you go to OWN DATA, There is tab called parameters.
    Here VKO Parameter ID the sales Organisation is defined. They want this value to come as default on the screen.
    Please help out how can this be done.

    In the INITIALIZATION write the code as below.
    get paramater id 'VKO' into field p_sfiled.
    here p_field is your selection screen field.
    Reward points if useful
    Regards,
    Nageswar

  • Default values in se16 selection screen

    Hi,
    when we open SE16 along with table name , In the selection screen of that table i want some default values apper for one particular field.
    How can i do that???

    Hi,
    it`s not possible to fill the fields only for this selection.
    You can work with variants, i think, this is the best way.
    On the other hand you can work with parameter-id´s. Most of the fields have this and you can enter it in you user-paramters. This variant has the effekt that the value will shown in each transaction, where this parameter-id is used.
    Regards
    Nicole

Maybe you are looking for

  • Compatible cameras for FINAL CUT PRO 5.x available in latin america?

    Hi! So I have a big problem, none of the camera models mentioned in the compatibility area of the final cut webpage are available where I live. Is it true that no other cameras are compatible? There's an entire series of cameras SONY DCR-HC42, 46, 52

  • Apple TV 2 never updates successfully

    I have a 2nd generation Apple TV. We won it last year. Since I have had it, it will never update successfully. It gets all the way to the end looks ok and then when the bar is almost finished at the end of the update it says " an error occurred". My

  • Certificates to 802.1x LEAP ethernet and wireless clients

    Hello guys, I have just configured a radius server, active directory domain controller and certificate server on one windows 2003 pc. I have generate a self-signed digital certificate and used certificate server to generate a root certificate from it

  • Can't find Centered look with Top Menu

    Can't find Centered look with Top Menu In SharePoint 2013 (with O365 subscription), when I go to Site > Change the look I see mainly two types of layouts: 1. Left aligned with top menu 2. Centered with left-side menu Is this some sort of best practic

  • 3.6 wasupdated today and my home page comes up blank and i can't get on any site

    3.6 was updated today. i can't access my home page or any internet site == This happened == Every time Firefox opened == 3.6 was updated automatically today. == == User Agent == Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; G