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.

Similar Messages

  • Drop down list for a field in table maintainance

    Hi,
    I have created a table maintainance for ztable. I need a drop down list for field so that user can select values present in the list while giving entries.
    I can not use fixed values in domain, because feild length is more and it wont fit into fixed values.
    I am trying to use VRM_SET_VALUES FM but not getting output. Can any one help me on this.
    Thank you,
    Regards,
    Kusuma K.

    TYPE-POOLS: vrm.        Include this in your program
    DATA: l_name  TYPE vrm_id,
          l_list  TYPE vrm_values,
          l_value LIKE LINE OF l_list.
      LOOP AT it_paym INTO w_paym.
        l_value-key = w_paym-pay_method.
        l_value-text = w_paym-text.
        APPEND l_value TO l_list.
      ENDLOOP.
      l_name = 'Table-field'.   change it as per your requirement this has to be perfect
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = l_name
          values          = l_list
        EXCEPTIONS
          id_illegal_name = 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.
    Hope it helps you,
    Abhijit G. Borkar

  • Creating drop-down list for prodname element in metadata causes errors

    Frame 11
    DITA 1.2
    Due to restrictions beyond our control, we must use absurdly long product names. Therefore I want to use drop-down lists to make it easier for the authors to select a <prodname> in the metadata.
    What I did:
    1. In metaDecl.eddmod.fm, I created a new attribute and named it prod.
        a. I made it the Choice, and Required.
        b. The Choices currently are just Internal and RTVI for testing purposes. I'll put the absurdly long ones in when I have it working.
        c. I have a Prefix rule of: In all contexts Prefix: Product Name: <$attribute[prod]>
    2. I imported metaDecl.eddmod.fm to all of these EDDs:
        In the base EDD  folder:
    basemap.edd.fm
    basetopic.edd.fm
    map.eddmod.fm
    topic.eddmod.fm
       In the technicalContent EDD folder:
    concept.edd.fm
    ditabase.edd.fm
    generalTask.edd.fm
    glossentry.edd.fm
    glossgroup.edd.fm
    reference.edd.fm
    task.edd.fm
    topic.edd.fm
    3. I imported the element definitions into all of the following:
    ChapterOutputTpl.fm
    basemap.template.fm
    basetopic.template.fm
    basetopic.template.fm
    topic.template.fm
    generalTask.template.fm
    glossentry.template.fm
    glossgroup.template.fm
    map.template.fm
    ditabase.template.fm
    reference.template.fm
    concept.template.fm
    task.template.fm
    4. I imported the elememted definitions from task.template.fm into my test document (yes, it is a task topic).
    What happened:
    I get the following error message in the console:
    XML Parser Messages (Document Instance)
    Error at file H:\DITA_Westminster\Procedures - Our DITA\Inserting_Product_Names_Versions_In_Metadata\InsertingProductNamesAndVersionsInMetad ata.dita.82F, line 28, char 49, Message: Attribute 'prod' is not declared for element 'prodname'
    Error at line 28, char 71, Message: Not enough elements to match content model  '(prodname,vrmlist,((brand|component|featnum|platform|prognum|series))*)'
    What I did next:
    1. I removed all elements from the general rule of <prodinfo> with the exception of <prodname>. <prodinfo) is the one that had prodname, vrmlist, (brand|component|featnum|platform|prognum|series) in the general rule. I also did a thorough search to ensure that no other element had this same list of element in the general rule. I couldn't find any.
    2. I did the import to the EDDs and templates thing again.
    3. I got the same error message again. <sigh />
    Question:
    Why am I still getting those 2 error messages? They are driving me crazy.
    Marsha

    Alex Gorly and Matt Sullivan solved one of my issues above:
    Message: Attribute 'prod' is not declared for element 'prodname'
    I'm still stumpled on the other one:
    Message: Not enough elements to match content model  '(prodname,vrmlist,((brand|component|featnum|platform|prognum|series) )*)'
    As stated above, I've even removed everything from the general rule of <prodinfo> except prodname and I'm still getting the same error. I've searched everywhere for this general rule and <prodinfo> is the only place I can find it.
    What I really want is: (prodname), (vrmlist)?, (brand | component | featnum | platform | prognum | series)*
    so that vrmlist is optional.
    No matter what I do, unless I include a vrmlist, I get the above message. Currently, our CMS can't handle vrmlist but I don't want to remove it altogether because we may be replacing our CMS.
    Help please!

  • Getting Drop Down list for a field in portal based on the values in R/3

    Hi,
    Presently we were customizing the ESS>>Family Members/Dependants iview in Portal. Because of the design requirement, in R/3 we have added some custom field for infotype 21 (Family Member details Infotype). We have to display these field on portal in Family Member Iview.
    However for these custom fields i am not able to get the drop down list with all the possible values description(F4 help ) in portal unlike the standard SAP fields.
    I am able to display the codes but the description is not coming up for the fields. However for standard SAP field, only description comes.
    For this I tried to attach the search help to the data element and also assigned a check table to the data element in R/3. But still I am not getting the description in the drop down.
    So how can I get the description and only the description in the drop down.
    Thanks
    Namit

    Hi,
    When you run the Search hep is it giving the description or not
    You have to create the serarch help with both the fieldname and its description field then we cna the values. Or
    Try to mantain the text table for this field and get the data.
    Get the valeusinto drop drown with this table Or create the SearchHelp for this text table
    Regards
    Lekha

  • Help needed to create Drop down help through Design layer for attribute

    Hi All,
    Has anybody created a Dropdown help through Design layer for standard field, there we have check Box ............
    Please Help me to know this ASAP....
    Edited by: Pankaj Gupta on Feb 26, 2010 10:52 AM

    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.

  • Master Password Feature: After sometime (10-15 min.) the drop down list for the field on any site does not show; opening new window (not refresh or new tab) drop down appears.?

    I manage a ton of accounts for different customers suing the same login pages (GoDaddy, WordPress, etc.) I use the Master Password Feature to help keep track of the many variants in logins and passwords.
    After some unknown period of time, even closing the page tab so a new page session is started at the remote server, Firefox does not provide me with the usual drop-down selection list of the previously used login names. However, if I open a new FF window (file/new window) from the menu bar, the drop down becomes available.
    How can I refresh the original window session in FF or change the timeout length?

    Well, you said LOV...that might mean you are using JDev 11g. Are you? If so what technology stack are you using?
    Assuming you are using JSF (?) you might be "backing" your list component in the application scope...but that is not likely.
    If you are using ADF/BC on your business component level, you can clear your view object from which you are querying the possible values of this list...unless your you have made a method to compile this list...in which case you know what you are doing...so that is probably not the case.
    Essentially you want to requery the VO upon which your LOV is based...unless you are using JPA or something...and then I know "requery" is not the right word...is it?

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

  • How to add drop down list for query manager report in sap business one

    Hi Every one,
    I need drop down list for parameter selection in sap business one Query Manager.I have two Parameters 'Sales Order','Invoice'.
    Please suggest.
    Thanks and Regards
    DEV

    Hi,
    you need to use this :
    /*select from [dbo].[OINV] T2*/
    DECLARE @Invoice varchar(100)
    /*where*/
    set @Invoice =/* T2.DocNum  */N'[%2]'
    you can change the tables and the parameter number but you have to write it exactly that way.
    when you run the query within the SBO you will get list of objects ( in this case list of invoices)
    hope it was helpful
    Shachar

  • Custom drop down list for the filter for BEX report

    Hi, all:
    I am writing a query for a BEX report that prompts the user to enter a value for a field "GL account".  I would like to have the user select from a limited number of GL options rather than have the whole Chart of accounts show up. Is there a way to make a "custom" drop down list for the filter?
    Thanks!
    Jenny

    You need to make your GL account info object as an authorization object. And in the info object ,for BEx you need to select the option "only authorized values".
    Create an analyis authorization on gl account and assign the restricted set of GL accounts to the user. Asign this analysis authorization to the user.In the query restrict this infoobject with an authorization variable. This would solve your purpose.user would be able to see only a selected set of GL accounts for which he is authorized.

  • Creating Drop Down Lists in J2ME

    Hello all,
    I'm not an experienced programmer, and I fear that the rumours of posting a crie for help only to be set upon by hundreds of blood thirsty 'newbe' hunters may be true, but here goes none the less.
    Would love to know if any kind soul has hints on how to create drop down lists in J2ME, for selecting a option which would be able to relate to a database (Table).
    At the moment I'm using straight forward TextField entries, which is hardly convenient! :)
    Any help/comments/sweets appreciated!
    Cam

    Hi Cameron,
    Only MIDP 2.0 support drop down list. So if you currently coding in the MIDP 2.0 environment, here are the codings.
    String arr = new String[]{"Happy","Sad"};
    ChoiceGroup ch = new ChoiceGroup("Select Choice:",ChoiceGroup.POPUP,arr,null);
    append(ch);
    Hope this codes is helpful to you.

  • How to change number of remembered items which would be shown in drop down list for edit controls. This use to be at least 5 I think, but now it is only 2!

    I need to see 3 different remembered usernames in drop-down list for username input.

    Works fine here. I can see at least four user names in the drop down list of a login form.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Lotus Notes Missing in Drop Down List for Calendar Synch

    Hello there,
       A) I am attempting to synch my blackberry tour with my calendar in Lotus Notes 8.5.2.  I was able to previously synch my calendar when I had Lotus Notes 8.5.1, but since our upgrade to 8.5.2, I get an error saying it could not find a supported version of Lotus Notes. 
      B)  When I try to go in and configure the organizer section of the desktop software, there is no option for the drop down list for Lotus Notes.  I have tried uninstalling, rebooting and then reinstalling (based on info from other posts), but none of that seems to work.  I have checked and all the connectors are there, but for some reason, they are not being recognized.  Is there some specific key or file that intellisynch is looking for to know that Lotus Notes is installed on the machine?
    Now, I am assuming A&B are symptoms of a common problem, but I am at a loss as to how to move forward.  Any ideas on how I can get this software to recognize Lotus Notes?  I appreciate any help you can give.
    Thanks,
    Rick

    While calling method SET_TABLE_FOR_FIRST_DISPLAY pass 'A' to paramater I_SAVE .
    CALL METHOD grid1->set_table_for_first_display
          EXPORTING i_structure_name = 'SFLIGHT'
                    is_variant       = gs_layout           
                    i_save           = 'A'
                    i_default        = p_def
          CHANGING  it_outtab        = gt_sflight.

  • Can I copy and paste a drop down list into another field?

    Can I copy and paste a drop down list into another field?

    You don't have to create a PDF, but it would be helpful to know what, exactly, you want to do with the ppt.
    You can export as a PDF which will keep vectors and text as PostScript (crisp) elements.
    You can also Save As from ppt in a variety of formats such as PNG or TIFF.
    These rasterize all the vectors and text, but are very useful if you're laying out a miniature gallery of the powerpoint presentation.
    However, if you want to make the InDesign file a replica of the ppt slides for print, PDF is probably the best way to go.

  • How can i add a drop down list to a fields using BHTML( displaying on its)

    Please help me to add a drop down list to a field while displaying on ITS using BHTML or javscript. List should show all the values from value table or search help.

    Hi Sandeep,
    in ABAP, read the table (keys and values) and write it to the ITS context, e.g. with field names KEY and VALUE.
    On the ITS template, write code like this:
    `if (KEY.dim > 1);
       repeat with i from 1 to KEY.dim;
        keys1[ i ] = KEY[ i ];
        contents1[ i ] = VALUE[ i ];
        if (KEY[ i ] == SELECTED_KEY);
         selIndex = i;
        end;
       end,
       SAP_TemplatePulldownField("field1", fieldLabel=#label, name="KEY", key="keys1", content="contents1", selIndex=selIndex);
    end`
    (I had to add blanks between the brackets to get the code displayed correctly here.)
    HTH & best regards,
    Carlo

  • 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