How to attach value range table to dropdown list box

Hi there,
could u please explain me how to attach a value range table to dropdown list box (i.e I/O box with dropdown attribute as list with key).
if possible please explain me with a sample code.
Thanks in advance.
-Tulasi.

hi ...if the associated domain of the field that u are using as i.o field has value range the same will come as drop down list...u u select the list box option and click from dictionary check box on the attributes...
To check if the domain has it or not...go to the domain..click on value range..u can see thr,...if values are not thr u can giv the same...
Or if u are not refering to dictionary type then use fm VRM_SET_VALUes
reward if the abv is helpful..

Similar Messages

  • How to use value in a drop-down list box as "With these Values" parameter?

    Hello, new user.
    I have a drop-down list box on Page 1, upon which the user can choose a study number. The List Box is named "P1_STUDY_NBR".
    Then I have a list, one entry of which goes to my master-detail form, which is Page 6. I would like it to go to the study number that the user choose on Page 1.
    In my target on the create/edit list entry, I put in "Page in this Application", "Page 6", then in Set these items, I put in
    P6_STUDY_NBR
    My question is what to use in With these values, where I want the contents of the P1_STUDY_NBR. I tried:
    &P1_STUDY_NBR
    and that does not work. If I put in one of the study numbers, like 336-00, then it does work, but I want it to pass the study number the user chooses in the list box. How do I refer to the contents of P1_STUDY_NBR?
    -Mary

    Yes, that does work, thanks. I'm now getting the default value I was putting in yesterday rather than an error message, so there must be something loading it, but I'll hunt around for what process might be doing that, or try re-creating the master-detail form again.

  • Is it possible to enter our own value in dropdown list box in Module Pool. How?

    Dear Experts,
    Being new to ABAP, I am trying my hands on Dropdownlist box on Module Pool.
    I want to pull data from Ztable(Custom Table) into Dropdown list box on Screen in Module pool and be able to edit it, delete it and enter new data through it, thus thereby able to manage the Ztable. Is it possible in dropdown.
    Looking forward for experts advice.
    Regards
    Deepika

    Dear Kannan,
    Thanks. But why sud I write an event in Table maintenance generator. My code is in Module Pool and it has no connection with Table Msintenance.
    The I/O field Drop down list box is on the Screen in my Module Pool. I am able to pull data in it from Ztable but now I want to edit this pulled data and also want to enter new data in this dropdown list box.
    Regards
    Deepika

  • How to attach a text table to database table

    How to attach a text table to another database table,
    Ex: If we check Mara table and GoTO menu select text table it is displaying MAKT table, how to link that?

    create another table with foriegn key relation with the key field and in the check table give the primary key table and in the text table include sparas field.
    JUAT SAME AS CREATING ANOTHER TABLE WITH FORIEGN KEY RELATION but THE ANOTHER TABLE INCLUDES SPRAS (LANGUAGE KEY)
    A text table is a table that contains spoken-language descriptions of values in a check table. These descriptions are stored in multiple languages. The primary key of the text table is the same as the primary key of the check table, with the addition of a spras (language) column.
    For example, the ztxt005 table has country codes in it. Country names are stored in a separate table named ztxt005t (shown in Figure 4.7) because you actually need many names for one country code. Because it stores language-specific descriptions of a generalized code, ztxt005t is called a text table.
    The primary key of ztxt005t contains the same fields as the primary key of ztxt005, with the addition of a spras (language) column. The spras field contains the language code and enables this table to contain a description for multiple logon languages.
    The primary key of any text table is composed of the fields mandt and spras, followed by the validation field (or fields). One or more description fields follow this primary key.
    A foreign key relationship is defined on ztxt005t-land1 to check table ztxt005. The foreign key field type should be key fields of a text table.

  • How to read the selected value of a dropdown list box

    Hello,
    I have 2 custom fields which are of type dropdown list on Accounts(CRMM_ACCOUNT) PCUI application details tab.I need to read the selected value of first dropdown list item,based on that second dropdown list will be populated.
    I know where to populate the dropdown list box,it is in FILL_DROPDOWN_LISTBOX.
    I dont know how to trap the selection made on dropdown list.
    PLease guide me on how to trap the dropdown list field selection value.
    Thanks in advance.
    Thirumala.

    Hello,
    Check what is done in standard for the fielf REGION which is inked to the country.
    Otherwise, you can do the following :
    - in field group customizing, for field 1, flag the 'send request' flag. So, when you change the value in this field via the dropdown, the MAC methods are immediately called.
    - Put the new value in a global variable (GV).
    - in the fill_dropdown_listbox method, get the value from this GV and based on it, filter the values for the dropdown of field 2.
    Hope this will help you,
    Regards,
    Frederic

  • Selected value in dropdown list box

    hi forums,
      how to capture the selected value in drop down list box and how it will link with the table.
    layout:
        <htmlb:dropdownListBox  id = "d1%>"
                                nameOfKeyColumn = "vbeln"
                              nameOfValueColumn = "vbeln"
                             table       = "<%=it_sales%>" />
    in dropdown list box,how do i capture the selected values.
    OnInitialization:
    Select vbeln from vbak
      into corresponding fields of table it_sales.
    regards,
    ravi.

    hi Ravikiran,
       In button even,we r mension the event_type = 'click'.
    but in dropdownListBox what is the event_type.
    i tryed like this.
    DATA : EVENT TYPE REF TO CL_HTMLB_EVENT.
    ***this is for button************
    *event = CL_HTMLB_MANAGER=>get_event( RUNTIME->SERVER->REQUEST ).
    *IF event->NAME = 'button' AND event->event_TYPE = 'click'.
    DATA : button_event TYPE REF TO CL_HTMLB_EVENT_BUTTON.
    button_event ?= event.
    *ENDIF.
    *********this is for dropdownListBox**********
      event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
      IF event->name = 'dropdownListBox' AND event-         >event_type = 'selection'.
           DATA :  dd_listbox_event TYPE REF TO CL_HTMLB_EVENT_SELECTION.
           dd_listbox_event ?= event.
    CASE EVENT->ID.
    when 'id1'.
    CALL METHOD REQUEST->GET_FORM_FIELD
          EXPORTING
            NAME  = 'id1'
          RECEIVING
            VALUE = SEL.
    WHEN 'myButton'.
       CALL METHOD REQUEST->GET_FORM_FIELD
         EXPORTING
           NAME  = 'id1'
         RECEIVING
           VALUE = SEL.
    ENDCASE.
    endif.
    with regards,
    ravi.

  • Filtering values in a dropdown list box

    Hello Team
    In the BSP application CRM_IC, we want a drop down list box to be filled based on the entry selected from another dropdown list box. We have all the entries for the second drop down box in ABAP internal table .However, we do not want a server round trip to happend in doing so. Thus we have used the attribute 'Onclientselect' and we are trying to call a java script function call on this event to filter this ABAP internal table . In this function, we would like to fill the contents of the second dropdown list box after reading the contents of the first dropdown list box. Please advice us as to how this can be achieved. Basically, we observed that ABAP server side script is not executed in the java function.
    Thanks
    Rony

    Rony,
    I have used the following technique to synchronize the
    contents of two drop down list boxes.
    <b>Scenario:</b>
    The selection in listbox ddlbxSystemEquipNum, which I
    will call "A", determines the contents of listbox
    ddlbxModuleEquipNum, which I will call "B".
    I use a JavaScript array to shadow the ABAP internal
    table containing the possible values for listbox B.
    When the page is initially displayed, listbox B is
    populated from the ABAP internal table.
    When a new selection is made in listbox A, I use the
    onClientSelect event to call a JavaScript function,
    updateModuleList(), to update the contents of listbox B
    from the JavaScript shadow array based on the selected
    value in listbox A.
    <b>Code Excerpts:</b>
    <u>Declare the JavaScript shadow array and listbox B update function</u>
    <script language="javascript" type="text/javascript">
        var moduleArray = new Array();
        function updateModuleList() {
            var selSystem = frmNrg1100.ddlbxSystemEquipNum;
            var selModule = frmNrg1100.ddlbxModuleEquipNum;
            // Get selected system equipment number
            var selected_system =
                    selSystem.options[selSystem.selectedIndex].value;
            // Clear module select options
            selModule.options.length = 0;
            // Add module select options for the selected system
            var j = 0;
            for (var k = 0; k < moduleArray.length; k++) {
                if ( (selected_system == moduleArray[k].system) ||
                                         moduleArray[k].system == "") {
                    selModule.options[j++] = new Option(moduleArray[k].text,
                                   moduleArray[k].value,
                                   moduleArray[k].selected) ;
    </script>
    <u>Specify the onClientSelect event handler on list box A</u>
    <htmlb:dropdownListBox
        id = "ddlbxSystemEquipNum"
        width      = "400"
        onClientSelect = "updateModuleList()"
    <u>ABAP and JavaScript to populate internal table and shadow array of possible values for listbox B</u>
    <%
    loop...
            wa_module_options-system   = wa_customer_tool-equipment_num_t.
            wa_module_options-text     = tool_list_text.
            wa_module_options-value    = wa_customer_tool-equipment_num_m.
            wa_module_options-selected = selected.
            append wa_module_options to module_options.
    %>
    <script language="javascript" type="text/javascript">
        // Add all possible Module select options to a JavaScript array of objects
        moduleArray[moduleArray.length] = {  system:"<%=wa_module_options-system %>",
                                               text:"<%=wa_module_options-text %>",
                                              value:"<%=wa_module_options-value %>",
                                           selected:"<%=wa_module_options-selected %>" } ;
    </script>
    <%
    endloop.
    %>
    Hope this helps.
    Regards,
    Shawn

  • How to create value request for screen field text box tt1

    How to create value request for screen field text box tt1
    i have a text box name tt1,
    i want f4 help for that .
    remember i am asking for screen i.e done from screen layout not selectio-screen.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla,

    Hi,
    Create one Search Help in the SE11 for the particular Field that u want to display. In the Screen(Transaction SE51),For that Text Box in the Attributes,in Dict Tab ->Search Help Field give that Search Help Name.
    For Eg,
    If u want Purchase Order Numbers in that F4 Help.Create one <b>Search Help</b> by giving Table Name as <b>EKKO</b> & <b>Search Help Parameter</b> as <b>EBELN</b> with Lpos & Rpos as 0 & 1.Save & Activate it.
    Give this Search Help Name in Dict Tab ->Search Help Field of that Screen Attributes.
    Regards,
    Padmam.

  • LiveCycle 8.1 on Vista: dropdown list box doesn't show all values

    On Vista Business O/S, in LiveCycle 8.1, I am using a dropdown list for 254 items, not dynamically loaded (all values are declared in the definition of the object). When the form runs, the dropdown list appears. I can scroll through the list. However, the scroll stops short, never showing the last few items on the list.<br /><br />   Is there some limit I have exceeded or is there some know bug I have encountered or is there some other action I need to take so I can choose any item from the dropdown list?<br /><br />   Dropdown list box is defined as user-entered - optional, default <none>.<br />254 text items, longest item is 19 characters, average item is 10 characters long. <br /><br />   Thanks in advance for any help, hints, or tips you provide.<br /><br />Dr. Dave Dyer

    Dear Friends....
    it seems to be a bug of the SQL Server Data Tools, (SQL Server 2012 SP2)... I did the deploy of my Dashboard, (and details Reports), to my Test Reporting Services Server.. and everything works as expected....
    Cheers, Luis

  • Dropdown list boxes

    Hi friends,
    Could u please tell me how to create a module pool program to charge the content of a a field of database table in a Dropdown list boxes . Please provide me step by step Process or link of file.
    thinks .

    Hi Karim,
    see the below programs to fill the field with a valid listbox value, for example, in this program, I am building the listbox in the program and just assign P_FIELD a valid value from internal table'ivrm_values' . Create screen 100 and create a field call P_FIELD, make sure to select "ListBox" from the DropDown Field.
    report  zpavan_0001.
    type-pools: vrm.
    data: p_field(20) type c.
    data: ivrm_values type vrm_values.
    data: xvrm_values like line of ivrm_values.
    data: name type vrm_id.
    start-of-selection.
    Set default value, before calling the screen
      p_field = 'DEF'.
      call screen 100.
    *&      Module  STATUS_0100  OUTPUT
          text
    module status_0100 output.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    name = 'P_FIELD'.
      xvrm_values-key = 'ABC'.
      xvrm_values-text = 'ABC'.
      append xvrm_values to ivrm_values.
      xvrm_values-key = 'DEF'.
      xvrm_values-text = 'DEF'.
      append xvrm_values to ivrm_values.
      xvrm_values-key = 'GHI'.
      xvrm_values-text = 'GHI'.
      append xvrm_values to ivrm_values.
      call function 'VRM_SET_VALUES'
           exporting
                id     = name
                values = ivrm_values.
    endmodule.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    module user_command_0100 input.
    endmodule.                 " USER_COMMAND_0100  INPUT
    Thanks and Regards,
    Pavankumar

  • Set the column name of a table in a list box

    is there any code to set the column name of a table in a list box at oracle devloper 6i?
    pls help.

    I dont want to go for pl/sql . It should work any table.You want Dynamic SQL without using PL/SQL? Tricky. I'm sure there's a possible way using some very complex and convoluted XML functionality of SQL but in reality you are asking for something that isn't natural to SQL queries, especially if you are expecting a dynamic number of columns to be produced for each row of data. SQL expects a table structure, including output formats, to be a defined number of columns with any number of rows, not a defined number of rows with any number of columns.
    Perhaps if you explain why you need this sort of functionality then we may be able to offer a better solution.
    ;)

  • How to insert values in table control & how to place listbox in table ctrl

    Dear all,
                I have created table control in Module pool program.  My requirement is first
                   1)How to place list box in table control
                   2)Based on listbox selection i have to enter values in table control row..
    With Regards,
    Baskaran

    Hi Baskaran,
    For displaing list box, use FM: VRM_SET_VALUES.
    Code like that:
    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 15.
    Instead of parameter for module pool , you declare data:
    AT SELECTION-SCREEN OUTPUT.
      name = 'PS_PARM'.
      value-key = '3500000002'.
      value-text = '3500000002'.
      APPEND value TO list.
      value-key = '3500000003'.
      value-text = '3500000003'.
      APPEND value TO list.
      name = 'PS_PARM'.
      value-key = '3500000004'.
      value-text = '3500000004'.
      APPEND value TO list.
      name = 'PS_PARM'.
      value-key = '3000000007'.
      value-text = '3000000007'.
      APPEND value TO list.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id     = name
          values = list.
    make the necesary change for module pool.
    Hope this can solve your problems.
    Regards,
    Tutun

  • How create a Value Mapping Table in XI 3.0?

    Hi:
        I wish make a single sample scenario where receiving data must be converted according to convertion table:
      01 -
           Legacy A | Legacy B  -
    M
                 Male:              01     |    M
                 Female:            02     |    F
    And I don´t know how build it. Must I create anything in Integration Repository? (any special message mapping or function?).
    Anyone know about weblog where explain step by step for "value mapping group" and "value mapping tables" creation?
    Help me please.
    Regards!!
    David.

    Hi David,
    You can create value mapping tables in Integration Directory.
    First you have to create Value mapping group using menu Object>new>Value mapping Group
    to Display value mapping you have to use Tools--> Value mapping.
    Also refer to following link on help.sap.com
    http://help.sap.com/saphelp_nw04/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/content.htm
    In IR Graphical mapping tool, use the standard function Conversions-->Value mapping.
    Hope this helps.
    Rgds,
    Sam Raju
    Message was edited by: Sam Raju
    Message was edited by: Sam Raju

  • How to access value mapping table in xi ?

    Hi All,
    i want to load all value mapping table data from XI to a excel sheet. how can i do it ?could anyone provide java code needed for it ?

    Hello
    Maybe you could extract it via the Integration Directory Webservice Programming Interface...
    Check this link:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/46/6dca42e5c269dfe10000000a11466f/frameset.htm
    There is a section for Valuemappings there. Apparently it would be a matter of calling the corresponding webservice with the GUID of the valuemapping and it returns the data.
    Good luck and please tell us if it works!
    -Sam.

  • How to maintain value in table CAWN

    hello experts,
    I wanted to ask how will i maintain the table ATWRT in table CAWN.
    Please help.

    hello everyone,
    Question? When i maintain the alcohol base value in material master will it automatically update the table CAWN? coz i have a problem regarding this, i maintained the ABV% in the material master but when i created delivery for this material then preview the output type the ABV% value does not display. When i check in the table CAWN this value does not exist (this is where the the output type gets the value for ABV%). If this value should be defined in the table where will it be?...
    Please help... need solution ASAP please.

Maybe you are looking for