How to get drop down list (list of values) in selection-screen

Hi al,
   This is anilreddy. Please let me knew the solution
How to get the drop down list for a fieldin selection-screen (not in dialog programming)
(not as POV)
Regards,
anilreddy

REPORT ZTESTPRG.
TYPE-POOLS: VRM.
DATA: NAME  TYPE VRM_ID,
      LIST  TYPE VRM_VALUES,
      VALUE LIKE LINE OF LIST.
PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 10.
AT SELECTION-SCREEN OUTPUT.
NAME = 'PS_PARM'.
VALUE-KEY = '1'.
VALUE-TEXT = 'LINE 1'.
APPEND VALUE TO LIST. VALUE-KEY = '2'.
VALUE-TEXT = 'LINE 2'.
APPEND VALUE TO LIST.
CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.
START-OF-SELECTION.
WRITE: / 'PARAMETER:', PS_PARM.
Thanks
Mahesh

Similar Messages

  • How to get two parameters in the same line of selection screen?

    hello
    i need to get my selection csreen like bellow.
    r1 radiobuttion  -some space --p1 parameter
    i should not get the parameter in the next line of  radiobuttion.
    how to get two parameters in the same line of selection screen?

    hi....
    modify the following code
    it will work
    SELECTION-SCREEN BEGIN OF BLOCK SL1 WITH FRAME TITLE TEXT-003.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 10(15) TEXT-001
                     FOR FIELD P1.
    SELECTION-SCREEN POSITION POS_LOW.
    PARAMETERS : P1 TYPE   C USER-COMMAND R2 RADIOBUTTON GROUP R2 DEFAULT 'X',
      P2 TYPE SCARR-CARRNAME,
      P3 TYPE CHAR1 RADIOBUTTON GROUP R2.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK SL1.

  • How to get drop down menu

    hai plz help me
    how to dovelop a drop down menu for a field in selection screen

    Hi
    Hope it will help you.
    Pls reward if help.
    REPORT zwa_test2.
    TYPE-POOLS : vrm.
    tables: bkpf.
    DATA : values TYPE vrm_values.
    DATA : wa LIKE LINE OF values.
    PARAMETERS : list_box(10) TYPE c AS LISTBOX VISIBLE LENGTH 10.
    PARAMETERS: dd type bkpf-BSTAT user-command abc.
    select-options: a for bkpf-bukrs MODIF ID buk.
    select-options: b for bkpf-belnr MODIF ID SEL.
    at selection-screen output.
      If list_box = 2.
        loop at screen.
          if screen-group1 = 'SEL'.
            screen-input = 0.
            modify screen.
          endif.
         endloop.
       endif.
    INITIALIZATION.
      wa-key = '1'.
      wa-text = 'Orange'.
      APPEND wa TO values.
      wa-key = '2'.
      wa-text = 'Red'.
      APPEND wa TO values.
      wa-key = '3'.
      wa-text = 'Blue'.
      APPEND wa TO values.
      wa-key = '4'.
      wa-text = 'Gray'.
      APPEND wa TO values.
      CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id              = 'LIST_BOX'
                values          = values
           EXCEPTIONS
                id_illegal_name = 1
                OTHERS          = 2.
    Ref Program:  DEMO_DROPDOWN_LIST_BOX
    Link: Need a drop down for a selection screen

  • How to get a varient vale by default on to selection screen?

    How do we display the varient value on selection screen by default?

    Hi,
    Call the following FM in Initialization event.
      g_save = 'A'.
      CLEAR g_variant.
      g_variant-report = sy-repid.
      CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
        EXPORTING
          i_save     = g_save
        CHANGING
          cs_variant = g_variant
        EXCEPTIONS
          not_found  = 2.
      IF sy-subrc = 0.
        p_vari = g_variant-variant.
      ENDIF.

  • How to get drop down list  display values

    I have binded my drop down list with tabledataprovider. In the value field i have given customer id and in display field i have given customer name.
    I have reatrived cust id but
    how to reatrieve customer name.

    http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=56515
    Also, if your dropdown list is bound to a data provider you can use something like this:
    RowKey rowkey = tripDataProvider.findFirst("PERSON.PERSONID", dropDown1.getSelected());
    String displayValue = (String)tripDataProvider.getValue("PERSON.NAME", rowkey);

  • How to Display drop down list in descending order on the web

    Dear BW Guru,
    I am Thambi, Currently I have the user's requirement to display <b>drop down</b> list in descending order on the web.
    1. In my Bw  system <b>0calweek</b> we have 3year's calweeks data (156 - Values), If we list this in <u>Bex Value Help of Info object for Ocalweek</u> Pop up window opens , By clicking  on Info object name we can able to see the values ascending or descending according  our wish.
    2. If we veiw the report in Web, I can able to see only first 25 values in ascending order web.
    3. How to view those valuse in <b>decending order</b> in web.
    Pls help me to solve this problem.
    Thanks in advance.

    Hi John, you should either add the values to your InfoPath dropdown manually or create a new list in SharePoint with the values and make a connection to that list to populate your dropdown.
    cameron rautmann

  • Urgent !- Drop down the list without using mouse and ALT+DOWN

    I'm working in Oracle Forms 10g. Is there any way I can drop down the list, the moment the list gets focused, without using the mouse and ALT+DOWN?
    Kindly let me know if you have a solution for this. Thanks in advance.

    Dear Uma Maheswari,
    You can use also the arrow keys to drop down the lists, but I don't think once you have the focus, you can drop down the list. If you get any solution to this kindly let me know.
    Regards.
    Senthil .A. Perumal.

  • Need to sort drop-down box list

    How do we go about sorting in ascending/decending order a drop-down box list of text/name items?

    Christian,
    Thanks for pointing this out. It looks like Acrobat 8.0 broke something that prevents my sample form from working correctly.
    It has to do with the call to
    resolveNodes("#items[*]")
    Fortunately, the bug will be fixed in Acrobat's next release.
    As a workaround, I would encourage you to have a look at the
    new list object properties and methods now available in Acrobat 8.0. You should be able to use a combination of those new properties/methods along with some of the original script in this sample in order to come-up with an update solution that works.
    Stefan
    Adobe Systems
    More answers on
    FormBuilder.

  • System is not giving a chance to user to keep it as Blank, once dropped down the list!!

    Hello
    I am developing interactive form, where in we have a bunch of drop-down fields, i have created them by dragging Enumarated Drop-down (no select) item from WebDynPro Native (Its provided from SAP and ERP Back End system, pls. you guys disregard this WebDynPro & my_WebDynPro_SAP_application wordS) section of palatte and dropped on my_form layout, fine.
    This my_form will be launched on the browser by executing the my_WebDynPro_SAP_application.
    I am filling these drop-down field's list from my_WebDynPro_SAP_application. Say the list contain 3 entries like entry_1, entry_2 and entry_3
    When i launching my_form on the browser and i saw the drop-down fields with out any populating the value(blank) on the form, but list holding the 3 entries, fine
    If i drop-down the list then i can see all entrires (entry_1, entry_2 and entry_3), fine
    Issue is: Say, by mistake user has selected entry_2, hence the entry_2 is populated on that drop-down field, fine....but after couple of seconds user has realised that, its a mistake and user want to keep that drop-down field 'as is' (meaning, blank), but, there is no chance! Once dropped down the list, user invariably has to select any one of entry from the list! There is no chance of keeping the drop-down field as blank!
    Pls. let me know how can i fix my issue ( i passed an INITIAL entry along with other 3 enties: entry_1, entry_2 and entry_3? so total 4) but no USE?
    Passing INITIAL entry has not worked! bcz adobe is deleting this INITAIL entry from the list
    Is there any standard/good practice to achieve my requirement?
    Thank you

    Hi,
    There are a couple of options.
    One would be to include a dropdown item " ", which will appear in the list as a blank option.
    You could include a reset button next to the dropdown, which would reset just that dropdown back to it initial - no selection state.
    Lastly, I have an example here where you can script if the user is holding down the Shift key. If they are then clear the field: http://assure.ly/j1KdNq.
    Hope that helps,
    Niall

  • TS1368 My account keeps asking for Region but the drop down menu lists Cities in China. I can,'t cange the region in my account because it asks me to check the date and time but these are correct. Any answers please?

    My account keeps asking for Region but the drop down menu lists Cities in China. I can,'t cange the region in my account because it asks me to check the date and time but these are correct. Any answers please?

    Look, I understand I still need a card attached to the account. The problem is, it won't accept my card because I only have 87 cents in my bank account right now.
    If I had known there would be so much trouble with the iTunes card, I would have just put the cash in my bank account in the morning instead of buying an iTunes card (I didn't expect the banks to be open on Thanksgiving of course).
    Apple will only accept cards that have a balance. The balance is so small in my account that it won't accept it as a valid card.
    I'm going to have to contact Apple anyway to reset the security questions. That's obvious. Your answers were not exactly helpful. You didn't tell me anything I don't already know, but thanks for trying to be helpful.

  • Workflows table is not showing up in Data Manager drop down table list

    Hi,
    I am able to see Workflows table in Console but not able to see it Data Manager drop down table list in record mode for selection.
    Even not allowed to create another workflow table.
    Thanks for any tips/clue
    -reo

    Reo,
    You will not be able to create another workflow table. There is only a single workflow table that will hold all the workflows you create through the Data Manager.
    As Vito mentioned, please make sure to load the corresponding MDMWorkflow component on the client machines running the Data Manager that you wish to create and view workflows from.
    Once the workflow component is installed you should see it as a new tab in the Data Manager. You will need Visio to create workflows.
    Thanks,
    Tim

  • How to get alternative strings in list of strings.

    Hi experts,
    how to get alternative strings in list of strings.
    eg
    'country1, italy, country2, india, country3, paris, country4, scottland, country5, rome'
    from the above list i need to fetch all the countries and their names separately.
    like country1, country2, country3, country4, country5
    italy, india, paris, scottland, rome
    i am trying the above one in the below fashion
    SELECT SUBSTR
              ('country1, italy, country2, india, country3, paris, country4, scottland, country5, rome',
               1,
                 INSTR
                    ('country1, italy, country2, india, country3, paris, country4, scottland, country5, rome',
                     1,
                     1
               - 1
      FROM DUAL
    can you please any one help me

    If you want the data to be more stuctured, and useful:
    col col_name for a20
    col col_value for a20
    var inlist VARCHAR2(2000)
    exec :inlist := 'country1, italy, country2, india, country3, paris, country4, scottland, country5, rome';
    exec :inlist := replace(:inlist,' ')
    select max(decode(mod(lvl,2),1,value)) col_name
          ,max(decode(mod(lvl,2),0,value)) col_value
    from   (select substr(:InList,start_pos+1, end_pos-start_pos-1) value
                  ,lvl
            from   (select :InList
                          ,case when level = 1 then
                             0
                           else
                             instr(:InList,',',1,level-1)
                           end start_pos
                           ,case when instr(:InList,',',1,level) = 0
                             then length(:InList)+1
                           else
                             instr(:InList,',',1,level)
                           end   end_pos
                         ,level lvl
                    from   dual
                    connect by level <=length(:InList)-length(replace(:InList,','))+1
    group by ceil(lvl/2)
    order by 1;
    COL_NAME             COL_VALUE
    country1             italy
    country2             india
    country3             paris
    country4             scottland
    country5             rome
    Untested on 10g
    Then you could stragg the rows together ...

  • I just downloaded 3 podcast items into my iPod shuffle but don't know how to listen to it.  It plays the music list but don't know how to get to my podcast list to play it..

    I just downloaded 3 podcast items into my iPod shuffle but don't know how to listen to it.  It plays the music list but don't know how to get to my podcast list to play it..

    jfromnj wrote:
    I purchased and downloaded the Family Pack of IWork.  I recently purchased another computer (MacBook Pro) and I want to be able to use IWork on the new
    computer but don't know how to go about it.  The only thing on the Apple home page is to purchase either the item or trial pack.  I don't think I should have to purchase anything since a family pack covers 5 computers in the same household.  Please, if someone knows how to go about this and what I need to do so please let me know.  Thank you.
    You didn't keep the download for future use?

  • I keep getting drop down messages about updates for my MacBook Pro.  These have to do with iphoto, updates that I could care less about.  How do I keep these from popping up, with out taking the update.  The drop down is very frustrating.

    I keep getting drop down reminders about updates to my MacBook Pro.  The up dates concern digital camera and iphoto, none of which I want.  Is their a way to keep these intermittent drop downs from appearing, or do I have to contend with this interruption until I down load the update?

    Where are the drop down reminders appearing? All I get is a number showing up on the App Store dock icon.
    You are probably going to have to either update the software or remove it from your computer.

  • How to put drop down in table control ?

    Hi All,
    I m writing one module pool program to edit table.
    I want dropdown to one field so that user can select the appropriate value. And also I want to save that record.
    So how to get the dropdown list and after editing that record how to save that in the database?
    Thanx in advance.
    -Umesh

    Hi Umesh,
    Please check this demo program RSDEMO_TABLE_CONTROL on how to add drop down list in table control. Also check this program DEMO_DYNPRO_TABCONT_LOOP_AT as well.
    To save to database you can code something like this in PAI.
    MODULE USER_COMMAND_0100 INPUT.
      SAVE_OK = OK_CODE.
      CLEAR OK_CODE.
      CASE SAVE_OK.
        WHEN 'SAVE'.
          MODIFY <database table> FROM TABLE <table control>.
          IF SY-SUBRC = 0.
          ELSE.
          ENDIF.
        WHEN OTHERS.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    Hope this will help.
    Regards,
    Ferry Lianto

Maybe you are looking for