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

Similar Messages

  • 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

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

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

  • 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

  • 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

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

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

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

  • Web Service with Drop Down Lists for database selections

    Hello,
    I want to define a Web Service with the JDeveloper which can do the following.
    I´ve got a database table with several columns which represents a customer adress and name.
    On a WebSite I like to have three Drop Down Lists to search in that table. The first list should include the field "name". When I select a name there the second list should show all streets (field "street") where people with the selected name live. When I select the street the third list should show me the house numbers (field "hn") of the customers with the selected name and street.
    What have I to do to define a application, a project and so on?
    Many Thanks!

    Hello,
    This question is not directly related to Web Services, since in this case you can consider that the Web Service is your "model" providing data to your view (JSP). One of the question I would like to ask you is: why do you want to use a Web Service to do that? and how you want to deploy this?
    In a general manner, if you use Web Service it is to be able to reuse the business logic in other projects, so based on this statement I would create a specific project that will contain you "model" so all your services.
    The to consume it from your JSP you have different ways:
    - create a Java proxy, or use @WebServiceRef to call the client
    - use Javascript to call the service directly from the HTML page, take a look to the Oracle Web Service endpoint page, where you can see some Javascript stub links.
    Please give more details about your project and needs and I will try to give you a proper answer.
    Regards
    Tugdual Grall

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

  • BUG: Sorting drop-down lists from the field tab when using "specify item values"

    Hi all,
    I've finished creating my form now, but I came across this whilst writing up my documentation for maintenance tasks.
    This occurs when adding new values to a drop-down list that has the "Specify item values" checkbox in the binding tab checked.
    When I then try to sort my list using the built in sort buttons, it will sort the items, but the list of specified values in the binding tab does not sort reorder to stay with the original items in the list.  This is hapenning when I sort from the Object > Field tab.  If I sort in the Object > Binding tab then the sort will include the specified values.
    For example:
    A    5
    C    2
    D    9
    Add a new value to get:
    A    5
    C    2
    D    9
    B    10
    Sort the list using the button:
    A    5
    B    2
    C    9
    D    10
    But it should be:
    A     5
    B     10
    C     2
    D     9

    I was able to duplicate this problem and it looks like a possible bug.  I've submitted it to support.

  • Restricting the values in Drop Down list for ESS application

    Hello Experts,
    We are trying to restrict the values in the drop down list box for payment method field for direct deposit iview.
    Here Payment is the Zlsch field.
    here we are trying to have only 3 vlaues in the drop down. Do I have to do it from java code or can this be restricted on the ECC side?
    Plese let me know.
    Thanks,
    James.

    James,
    What you have to do is create a DropDown ByIndex element instead of by Key and create a context node PaymentMethodNode and a value attribute PaymentAttribute under it ....then write the following code in the wdDoInit() method as :
    //Add whatever values you want in the DropDown
    String[] priority_options= new String[]{"Payroll/Corp/Partner Check","Employee Payroll ACH(PPD)"};
              List ListOfPriorities = new ArrayList();
              for(int i=0;i<priority_options.length;i++)
                   IPrivateDetailView.IPayment_MethodNodeElement pr= wdContext.createPayment_MethodNodeElement();
                   pr.setPaymentAttribute(priority_options<i>);
                   ListOfPriorities.add(pr);
              wdContext.nodePayment_MethodNode().bind(ListOfPriorities);
              for(int e=0;e<wdContext.nodePayment_MethodNode().size();++e)
                   wdContext.nodePayment_MethodNode().setSelected(e,e>=0 && e<=1);
    and then write the following code in wdDoModifyView() method:
    IWDDropDownByIndex di =(IWDDropDownByIndex)view.getElement("DropDownByIndex");
             di.bindTexts("Payment_MethodNode.PaymentAttribute");
    then create an Action and bind it to the onselect property of the DropDown and write the following code in the onAction method :
    if(wdContext.currentPayment_MethodNodeElement().getPaymentAttribute().equalsIgnoreCase("Payroll/Corp/Partner Check"))
        wdContext.currentSelectedInfotypeElement().setZlsch("C");
        else
         wdContext.currentSelectedInfotypeElement().setZlsch("P");
    I am sure it will work..

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

Maybe you are looking for

  • Best Practice: Dynamically changing Item-Level permissions?

    Hi all, Can you share your opinion on the best practice for Dynamically changing item permissions? For example, given this scenario: Item Creator can create an initial item. After item creator creates, the item becomes read-only for him. Other users

  • Closed PO's on Accrual Reconciliation Report

    We are getting issue of Closed PO's coming in Accrual Reconciliation Report. I am not that familier with this report & it's functionality. So need help on this. Please let me know if I can provide more information on this. Like if you want to see the

  • Best way to  (re)install Mountain Lion fresh on a new ssd

    Hi,  I've been running Mountain Lion on my 2010 Mac Pro 3.2ghz but it's got incredibly slow with only 120 GB on a 1 TB HDD.. I've used every utility to try to clean my old drive and speed things up (DiskWarrior, defragmentation, etc) without much hel

  • Final Cut HD 4.5 crashes upon opening project

    Hello, Any help is greatly appreciated. As we all are here, I'm in a HUGE panic. When I try to open my FCP project, it starts to open: the canvas, viewer, timeline and browser open, and I get to the "files offline" screen and FCP crashes. I have seve

  • Adobe Acrobat Pro X

    I need help finding out how to download Adobe Acrobat Pro X? I bought it on CD with my CS6 but I cannot find those disks.  I bought a new computer and want to put it on there, but I cannot find it anywhere on line to download.  I can find the Pro XI