Need help on drop down list

Iam trying to create the drop down list. Well, I got some programs, creating these lists for both parameter and ranges on the selection screen.
What the user wants is when the selection screen is loaded, he wants to select from the list OR ENTER ANY DATA WHICH IS NOT THERE IN THE LIST. To be able enter any data other than what is there in the list is not working for me.
itz urgent plz

Hi
Do you want values in a list box
try with the fun module VRM_SET_VALUES
see the sample code
Input : p_char = 'J'.
Press: enter
List Box of Month = January, June , July.
REPORT ZLIST_VALUES.
TYPE-POOLS vrm.
tables:
spfli.
parameters: p_char type c.
parameters:
p_month(12) as listbox visible length 20,
p_year as listbox visible length 20 .
DATA:
t_table TYPE STANDARD TABLE OF vrm_value,
t_table1 TYPE STANDARD TABLE OF vrm_value,
vrm_values1 LIKE LINE OF t_table.
DATA:
t_year TYPE STANDARD TABLE OF vrm_value.
data: w_year(4) type n value '2000'.
at selection-screen output.
vrm_values1-key = 'a'.
vrm_values1-text = 'January'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'p'.
vrm_values1-text = 'February'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'q'.
vrm_values1-text = 'March'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'r'.
vrm_values1-text = 'April'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 's'.
vrm_values1-text = 'May'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 't'.
vrm_values1-text = 'June'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'u'.
vrm_values1-text = 'July'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'v'.
vrm_values1-text = 'August'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'w'.
vrm_values1-text = 'September'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'x'.
vrm_values1-text = 'October'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'y'.
vrm_values1-text = 'November'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'z'.
vrm_values1-text = 'December'.
APPEND vrm_values1 TO t_table.
t_table1[] = t_table.
delete t_table1 where text+0(1) <> p_char.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'p_month'
values = t_table1
EXCEPTIONS
ID_ILLEGAL_NAME = 1
OTHERS = 2.
do 10 times.
add 1 to w_year.
vrm_values1-key = sy-index.
vrm_values1-text = w_year.
APPEND vrm_values1 TO t_year.
enddo.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'p_year'
values = t_year
EXCEPTIONS
ID_ILLEGAL_NAME = 1
OTHERS = 2.
start-of-selection.
write: p_month.
<b>Reward points for useful Answers</b>
Regards
Anji

Similar Messages

  • Need help with drop down list in parameters

    Hi All,
    I have the following data set:
    DEPT1     DEPT2     DEPT3 DEPT4
    Commissioner's Office     Finance     Accounting     Accounts Payable
    Commissioner's Office     Finance     Accounting     Fiscal Analysis & Repo
    Commissioner's Office     Finance     Accounting     
    Commissioner's Office     Planning,Asset Mgt     Asset Management     Inventory & Tracking
    Commissioner's Office     Planning,Asset Mgt     Asset Management     Mobility & Congestion
    Commissioner's Office     Planning,Asset Mgt     Asset Management     Roadway Safety
    Commissioner's Office     Planning,Asset Mgt     Asset Management     
    Commissioner's Office     DesignProj Mgt & Tec     Bridge Dsgn Insp Hyd     
    In plus i have four parameters with searchlight options, the problem is when i select "Finance" from DEPT2 and in the next selection level i'm seeing all the departments "Accounting,Asset Management and Bridge Dsgn Insp Hyd" insted of just "Accounting". What i want is if i select a department in DEPT2, in the next drop down list(DEPT3) i want to see only the departement corresponding to the one i selected in dept2. Please need help.
    Thanks

    Hi
    First of all you need to be using Discoverer 10g or 11g Plus not 9.0.4. Assuming you have the right version you need to present the parameters in the correct order. You can change the order on the parameters screen by selecting Tools | Parameters from the toolbar. You then use the Move Up and Move Down buttons to place them in the right order so that DEPT1 is offered first, followed by DEPT2, then DEPT3 and then DEPT4.
    Next, you need to check the radion button on the bottom of the right-hand side that allows linking of parameters then you make DEPT2 dependent upon DEPT1, with DEPT3 dependent upon DEPT2 and so on.
    While this works without hierarchies it works best when you have a hierarchy in place and even better when there is a composite index on the 4 items.
    Best wishes
    Michael

  • I need help with drop down lists

    I have a form that does not have lots of space and I want to use drop down lists to fill in specific information that describes site conditions.  The problem I have is that the drop down list is only set up for a single line and that is not enough space for what I want in the drop down list.  In other words, I have items that are several sentences.   I have seen some descriptions of creating a drop down list that then fills in a text box that has multiple lines.  Unfortunately, that is not an ideal solution for me.  I just want the drop down list to select a single phrase.  Here is an example of what I want to be able to select in the drop down.
    The water heater spilled flue gases in excess of 5 minutes under worst case conditions.  The combusiton testing was completed with in 30 days of the invoice submittal. 
    The form does not allow me to create a field that goes all the way across the page so it needs to look something like this:
    The water heater spilled flue gases in excess of 5 minutes
    under worst case conditions.  The combusiton testing was
    completed with in 30 days of the invoice submittal.
    Any help is greatly appriciated.

    Thanks for responding.
    I have three items that are very similar in length and text for each drop down.  There are 9 drop downs right now.  I am using the drop downs to fill in a form that is used by several people and I want to keep things as simple as possible.  Associated with the drop down already is a check box.  When the check box is checked, it fills in a text box with a score (1 point, 5 points, etc).  That score then tallys for a total with all the other scores in another text box.  Using a drop box to fill in a text box is just getting to busy and than I have to distinguish each drop down item so it is clear which text you are selecting.

  • Need help using drop down list to calculate fields

    I am trying to use a drop down list to control how my field calculate. I have events packages that have multiple tiers. For example, Package One has (2) Tiers. Tier 1 costs $16 & Tier 2 costs $20. So based on the number of guests i want to be able to select the tier and it multiply and give me the total cost for the package. Ex: 2 Guests for Tier 1 = $32. Here is the code i have so far, it is placed under the change handler of the drop down list:
    var costPerGuest = 16;
    var tier = event.newText;
    if (tier == "Tier 1"){
      costPerGuest = 16;}
    else if (tier == "Tier 2"){
      costPerGuest = 20;}
    Total.rawValue = String(Guests.rawValue * costPerGuest)
    //Total.rawValue = DropDownList1.rawValue;
    What happens is when I run this it will not change unless the number of guests will change. So for the example above, if i switch it to Tier 2 after selecting Tier 1, it will not change my Total from $32 to $40.
    Any help would be greatly appreciated.

    Hi,
    I think ,you can use the event of EXIT event of dropdown list.
    var costPerGuest = 0;
    if (this.rawValue == "Tier1")
      costPerGuest = 16;
    else if (this.rawValue == "Tier2")
      costPerGuest = 20;
    else
    total.rawValue = Guests.rawValue * costPerGuest;
    Hope this helps,
    S,Candy.

  • Need help with Drop Down Menu _ URGENT!!

    Hello -
    I'm new to Dreamweaver. I actually have an old version
    (Dreamweaver MX 2004).
    I'm updating a website for work and this needs to be done as
    soon as possible so I'd appreciate if anyone can be so kind as to
    shed light on ANYTHING. =/
    This is what I need:
    I need a drop down menu; when a selection is chosen, I need
    information regarding that selection to appear on the bottom of the
    page. (I am working off an Excel sheet - it has list of service
    descriptions along w/ the unit price, frequency & other fields.
    So If I chose "database hosting" off the drop down list,
    information would be generated (ie. it's corresponding unit price,
    frequencies, etc.)
    I've attached an example of a code but I cannot use that code
    (which has JavaScript) to tweak what I need exactly.
    I am VERY new to this so if anybody can help be out I would
    GREATLY appreciate it.
    Thanks!!

    >I buy all their stuff as it
    > is excellent.
    Double Ditto!
    Walt
    "Paul Gillard" <[email protected]> wrote in
    message
    news:gedcoi$d65$[email protected]..
    > Hi
    > To be honest, the very best thing you can do is to get
    hold of a DW
    > extension
    > from
    http://www.projectseven.com
    and then you will be able to have a
    > completely
    > editable 'easy to implement' drop-down menu system! I
    buy all their stuff
    > as it
    > is excellent.
    >
    > Cheers
    > Paul
    >

  • Its urgent please help me( Drop Down list box)

    Hi i am writing th eBDC for VA32 t-code in that screen it is having the dropdown box for the line items i want to select the drop down list in that screen through BDC how we can do this?
    Thanks in advance

    yes but when we are transfering that value it is not accepting
    0     Assigned by the System (Internal)
    1              Delivery date too late
    2     Poor quality
    3              Too expensive
    4     Competitor better
    5     Guarantee
    10            Unreasonable request
    11     Cust.to receive replacement
    50     Transaction is being checked
    the thing is in the drop downbox these text values are coming
    but how can i?

  • Help needed to create drop down list for a field.

    Hi,
    I have to create a parameter/select-options on the selection screen having  drop down values and also having multiple selections allowed.
    Please help me to attain this functionality.Its urgent.
    Thanks,
    Sandeep.

    Hi,
    Here is the exampel Program, i am sending the code for a Paramter, If you want this for the Select-options, then you need to have the paramer name as PS_PARM-LOW and you need to write the smae logic again for PS_PARM-HIGH to get the List box for the select-option
    REPORT ZLIST.
    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.

  • Need help with drop down menu

    Hi guys,
    I'm using div's for the main navigation of my site and want to create a drop down for the first two buttons. All the tutorials I have seen have been for using unordered lists but I need to use divs for this navigation set (long story!).
    Can anyone help me get them set up please? Ideally I would like the drop downs to fade in but it's not essential. I take it I need to create an absolutely positioned div where I want my drop downs to appear, is that correct? - but then where do I go from there?
    If you click here for my test site.
    Thank you very much and I hope to hear from you.
    SM

    Hi Ken,
    Thank you for the reply.
    I had the main nav as an unordered list to begin with but for some reason I didn't find them as easily controllable as the div's i.e. setting widths and heights etc. as I wanted each button to have a set width, instead of just having text with padding. Originally I had the button divides set as border left and right strokes but for some reason they weren't adding up, I think because of the padding I had on them. I know you can set these with unordered lists but opted for divs in the end!
    Hope that helps.
    Thanks again,
    SM

  • Need help with Drop down cells on IPAD Numbers

    Hy everyone:
    Im new in this forum and Im not god writing, so sorry for my english.
    I have a question about using Drop down cells on Numbers in the IPAD version. In Numbers I normally can use drop down cell but some days ago i bought the IPAD and Iwork suit, and i import some numbers documents that I have done. When I tried to drop the menu of a cell I could not.
    I would like to know is their is a way to see this type of menus on IPAD Numbers.
    Thanks for the attention. And I will be grateful for your answers

    I don't think drop down selection is supported in iPad numbers. If you would like to see this functionality added, peas make a suggestion at http://www.apple.com/feedback
    Thanks
    Jason

  • How can I make a bound drop-down list using OAF?

    Please note, this is for OAF. I am aware of the support in ADF.
    I'm sorry this is such a basic question, but I've been trying for days, and I can't think of anywhere else to look for an answer.
    I need a simple drop-down list, not a search. This particular list only has 10 or so items. It is based on a view containing a code value, and a description. I need all descriptions to be available at all times. Just click the arrow, and the entire list is displayed. When the user selects an entry, the code associated with the discription populates a bound attribute. Ideally, when the page is instantiated, the code value controls the text value visible in the collapsed drop-down list. Visually, it would be similar to an html <select> element.
    Can someone please tell me how I can produce such a simple thing, or point me to some documentation?
    Thank you.

    Thank you for the excellent reference Peddi. I had played with the OAMessageChoiceBean component yesterday, but I was able to tell from your instructions that "Picklist Display Attribute" and "Picklist Value Attribute" really are not for binding to the database EO. That was the key piece of information that had me confused.
    In addition to adding the messageChoice component to the page, I needed to write some code to synchronize the picklist value with the corresponding code value, which I placed in am OAFormValueBean (hidden form field) which I could then bind to my application's database EO in the controller, running in the processFormRequest procedure:
    /** Synchronize the catalog code with the selected catalog name */
    protected void syncCatalogValues(OAPageContext pageContext,
    OAWebBean webBean, MyApplicationAMImpl am) {   
    OAMessageChoiceBean mcb =
    (OAMessageChoiceBean) webBean.findChildRecursive("CatalogName");
    OAFormValueBean cc =
    (OAFormValueBean) webBean.findChildRecursive("CatalogCode");
    String catalogDescription = mcb.getText(pageContext);
    if (catalogDescription != null) {
    String catalogCode = am.getCatalogCode(catalogDescription);
    cc.setValue(pageContext, catalogCode);
    Along with a little code to get the catalogCode value from the LOVVO, that's all it took.
    Thanks again. This was a great help.
    Pete

  • MM-creating a PO - vendor could not be found thru drop down list.

    dears,  request to share this and provide how !
    we could not find a vendor while creating a PO-  normally we slect the vendor by the help of drop down list, in several monts it happend that vendor was not availble in drop down list,   since we knew that this vendor is definately exists in our vendor master.  then we searched in cvendor maser - yes it is there.   then why not sow in drop down list.
    later we tried agian and agian and finelaly we found it in drop down
    note that
    1- we tried all the mean by sorting vendor name, number etc could nto find)
    2- we got all vendros - as we removed the general limit of 500 hits.
    3- then we checked in vendor master - it was there.
    my worry is
    1- to know how it happend.   and how it corrected itself.
    2- does it happen frequently.
    3- if it can happen for no reason (or hidden logical reason) then in som ecases we can make some mistakes, in same process or
    in other proces of HR, MM, PM FI  etc,
    waiting your valueable share, guiide and advice.
    Thanks n regards.
    mansoora.

    Chuck you have placed Order for Acrobat Upgrade if you don't have any previous version of Acrobat than you need to cancel this order and need to buy a full version.

  • Help needed in Drop down list value input

    Hi experts,
    My problem is, I added a field on a screen as a drop down list box and passed all the values to it. Everything is fine. But I need to display the field like if there are no input values to be used by the user, the user should be able to enter some value manually which is not in the list. I'm unable to get this facility. Plzz Help me out.
    It's really urgent. Points will be rewarded to the solution.

    hi ,
    Here is a sample of code for creating a dropdown list in screen painter , and this has got the solution of your question :
    module create_drop_down_box_material output.
      select matnr from mara
               into table l_tab_mara_matnr
               where matkl = 'ZPMBMAT'.
      if not l_tab_mara_matnr[] is initial.
        select maktx from makt
                     into  l_tab_collect_maktx_frm_db-material_descr
                     for all entries in l_tab_mara_matnr
                     where matnr = l_tab_mara_matnr-material_no.
          append l_tab_collect_maktx_frm_db.
        endselect.
      endif.
      loop at l_tab_collect_maktx_frm_db into l_wa_collect_maktx_frm_db.
        l_wa_mat_descr-key = l_wa_collect_maktx_frm_db-material_descr.
        append l_wa_mat_descr to l_tab_mat_descr.
      endloop.
      name = 'ZCOT_PPT_DTLS-MATERIAL_DESCR'.
      call function 'VRM_SET_VALUES'
        exporting
          id              = name
          values          = l_tab_mat_descr
        exceptions
          id_illegal_name = 1
          others          = 2.
      free: l_tab_mat_descr,l_tab_collect_maktx_frm_db.
    endmodule.                 " create_drop_down_box_material  OUTPUT
    Regards,
    Ranjita

  • Help needed with populating a drop-down list from an Access Database

    Topic
    data drop-down list
    Jason Murthy - 11:39am Feb 14, 2005 Pacific
    Hello,
    I am trying to use the data drop-down list from the custom library. I enter the name of my data connection and the other 2 variables in quotes when they are initialized, just like the example says to, but it still doesn't work. Anyone have any thoughts?
    Thanks,
    Jason
    Reply To This Discussion | Back to Topic List | Bookmark | Change Subscription
    To start a NEW discussion click on the Back to Topic List link and select Add Topic.
    If you are in an archive forum please go up to the main topic list (archives are read only).
    Messages 11 messages. Displaying 10 through 11.
    First Previous Next Last Show All Messages
    Denzil White - 5:46am Jul 28, 05 PST (#10 of 11)
    Oh and before you say anything more I have also tried changing it from Javascript to the FormCalc, and no diff, maybe I am more stupid than I realised, heh,heh
    Post Reply | Bookmark
    Henk Pisuisse - 12:06am Aug 9, 05 PST (#11 of 11)
    I am having trouble (sleepless nights) with populating a drop-down list from an Access Database. The result is: I only get the first record from the data connection. So the connection works but I cannot go through the other records. Maybe there is an other way to do this.
    I am trying to selectively fill a form with data from an MS-access database.
    I hope someone can help me.
    [email protected]
    The Netherlands (small country in Europe)

    If you email the access DB and the form to [email protected], I will try to take a look at it for you.

  • Need a drop down list for cost center group

    Hello,
    I need to add the cost center group selection option to my program. I have added it to the selection options of my program and I would like to have a drop down list on this field. I have looked at the t-code KS13 and I am thinking that this is  what I need. I am not sure if this is a search help or something else. if this is a search help, is it possible to use the same search help in my program? can some please let me know how I would do this in my program?   possibly a code example?
    thanks in advance for the help.

    PARAMETER:     p_sostat(15) TYPE c AS LISTBOX VISIBLE LENGTH 16,
      name = 'p_sostat'.
      CLEAR sostatlist[].
      value-text = text-101. "'Open'(101).
      value-key = '1'.
      APPEND value TO sostatlist.
      value-text = text-102. "'On Hold'(102).
      value-key = '2'.
      APPEND value TO sostatlist.
      value-text = text-103. "'Drop/Pull'(103).
      value-key = '3'.
      APPEND value TO sostatlist.
      value-text = text-104. "'Pending'(104).
      value-key = '4'.
      APPEND value TO sostatlist.
      value-text = text-105. "'Floor'(105).
      value-key = '5'.
      APPEND value TO sostatlist.
      value-text = text-106. "'Kitted'(106).
      value-key = '6'.
      APPEND value TO sostatlist.
      value-text = text-107. "'Packed'(107).
      value-key = '7'.
      APPEND value TO sostatlist.
      value-text = text-108. "'PGI'(108).
      value-key = '8'.
      APPEND value TO sostatlist.
      value-text = text-109. "'EDI Error'(109).
      value-key = '9'.
      APPEND value TO sostatlist.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id     = name
          values = sostatlist.

  • Drop-down List for DUMMY...please help!

    Hi everyone,
    I'm new to LC Designer and i've been practicing with it a lot, but I can't figure this one thing out, please help.
    I'm trying to create a Drop down list (DDL for short) that contains several coordinates. Here's a simple illustration of what i mean:
    ============================
    Coordinates: [(Select Location)] | ------- (User-input required)
    X-Coordinate: [(Values.Values)] | ------- (These 3 coordinates will be calc'd
    Y-Coordinate: [(Values.Values)] | ------- and displayed depending on which
    Z-Coordinate: [(Values.Values)] | ------- location the user chooses)
    ============================
    This requires 4 DDL Boxes, for Coordinates, X-, Y-, and Z-coordinate respectively.
    How do I bind these three DDLs together and manipulate their properties so they will display the coordinates unique to the location selected?
    Sorry for taking so long, but i want to explain myself clearly.
    I appreciate any help you can provide,
    HL

    You need to use script on the change event of the location field to set the rawValue of the other three fields. Something like:
    if (xfa.event.newText == "Ottawa") {
    xCoordField.rawValue = "1";
    yCoordField.rawValue = "2";
    zCoordField.rawValue = "3";
    I would recommend using a text field or numeric field for the x,y,z coords though. Why use a drop down if the purpose isn't to let the user pick an option from a list of them?
    Chris
    Adobe Enterprise Developer Support

Maybe you are looking for

  • Create a New DB in Oracle 10g Express

    Dear experts I have downloaded and installed oracle 10g express on windows 2000 Professional System. Now i would like to create a database called AcmeInc and in that database object i want to create tables and relationship. Can anyone please tell how

  • Item Category determination while copying

    Hello Guys, What is the difference between Normal Item Category determination and Item category determination while copying? What could be the business logic behind this? Thanks in advance. Ravi

  • Error messages vanish before you can read them

    Seriously? This is ridiculous. Is there no way to bring back a message once it has fashionably faded away after a few seconds? Did nobody read UX 101?

  • SQL Developer generates strange trace files on server

    Hello out there, I observed the generation of some strange trace files on the database server (Oracle 11.0.2.0.2 64bit on Win 2008R2). Whenever I start SQL Developer (3.2.20.09.87 64bit with JDK 1.7.0_17 64bit on Win7 64bit) for each connection I def

  • Issue with systemctl suspend, pm-suspend

    When I attempt to put my laptop (thinkpad X1 carbon) into suspend, it turns back on immediately after going into suspend.  This happens regardless of wether I use systemctl suspend, pm-suspend, or any of the other pm utilities. Here's the output of j