List Box with Variable Entries in a Table Control

Hi ,
   I have a requirement where a certain column F of the table control should be designed as dropdown list box. The problem is, i have to populate different entries for field F in each row of the Table control.
                                   Field List
First Line -                   A,B,C
Second Line -              A,B
Third Line     -             A
Is it possible in ABAP to achieve this . I should not use an input help. Can i achieve this with Drop down list ?
Regards,
Krishna Chaitanya . A

Hi Priyaranjan,
Assoon as you enter records and save it it gets saved , that is ok , but when you do scroll system goes to PAI , so you need to chk the value of ok_code when scroll button is pressed and write the code according to that .
more over you need to increase the number of lines that can be displayed in a particular table control .
Try this it may help you .
<i>Reward points if helpful.</i>
Regards,
Amber S

Similar Messages

  • Different values in a list box for each row of the table control...

    Dear Experts,
    Is it possible to populate different values for each row in a listbox inside a table control ?
    Example,
    Row 1 in the the table contains A, B & C
    Row 2 in the same table contains C, D & E
    If yes, How?
    yes i am using
      call function 'VRM_SET_VALUES'
        exporting
          id     = i_name
          values = i_list.
    Thank you .
    Message was edited by:
            Kokwei Wong
    Message was edited by:
            Kokwei Wong

    Hi Wong,
    this is code example for listbox
    TYPE-POOLS vrm .
    DATA: lt_vrm_values TYPE TABLE OF vrm_value.
    DATA: wa_vrm_values TYPE vrm_value.
    PARAMETER p_list AS LISTBOX VISIBLE LENGTH 10.
    INITIALIZATION.
      wa_vrm_values-key = 'Key1'.
      wa_vrm_values-text = 'Value1'.
      APPEND wa_vrm_values TO lt_vrm_values.
      wa_vrm_values-key = 'Key2'.
      wa_vrm_values-text = 'Value2'.
      APPEND wa_vrm_values TO lt_vrm_values.
      wa_vrm_values-key = 'Key3'.
      wa_vrm_values-text = 'Value3'.
      APPEND wa_vrm_values TO lt_vrm_values.
    AT SELECTION-SCREEN OUTPUT.
      CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id              = 'P_LIST'
                values          = lt_vrm_values
           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.
    To fill it with data from DB, just do select in INITIALIZATION and put that values with same alghoritmus.
    Manas M.
    P.S.: This is very easy question, you should use search ...

  • How to add a list box with values for a ztable in SM30

    Hello Gurus,
                    I had created a table maintenance for Ztable and added many extra functionality to that. Now i would like to add a list box or check table for a field. Can i do that with out Regenerating my table maintenance. Please help me its..very urgent.

    Have referred this domain to the data element, this should be the Field type in ur table for the particular field.
    Eg: <b>SE11 > table name > fields-ZTEST > fieldtype-ZZTEST</b>
    ZZTEST in the data element > create a domain for this data element and in that specify teh value range.
    Save and activate it.
    Make sure that u regenerate teh table maintenance generator else u cant see the changes.
    Now if u press F4 u can see only thevalues specified, also u will see only the list box with values in SM30.
    Try this,please let me know if u face any difficulties.

  • Selection screen list box with run time values

    Hi,
    I have to create a selection screen list box with with values at run time.
    This is actually for a maintanence view.
    Please help.
    Thanks
    Vimalraj

    Have a search in SDN and elsewhere for the function module 'VRM_SET_VALUES'... for example there's one at:
    Re: Listbox with Function code in Table control
    wherein the 2nd listbox contents are driven from the option selected in the first listbox.
    Jonathan

  • Problem with Variable Entry Screen

    Hello All,
    We upgraded our development systems to NW2004s and came across the following issue:
    All our Bex queries have restricted time characteristics with variables entries. When we execute a query it should pop-up the variable selection screen for us to enter the restriction values but the query is ignoring Variable restriction screen and taking into consideration everything. The same query works fine in Prod., which is still in 3.1.
    Did anyone come across this situation kind of situation? It did not pop-up any type of error and we are in SPS10
    Thanks in Advance,
    Message was edited by:
            bw expert online
    Message was edited by:
            bw expert online

    We fixed the "Variable Screen not appearing" problem by adding following objects to our users.
    1) Business Explorer - BEx Web Templates (NW 7.0+) S_RS_BTMP
    2) Business Explorer - Individual Tools S_RS_TOOLS
    3) Business Explorer - Data Access Services S_RS_DAS
    Mark the message answered if this helps.

  • "Dynamic List Box with Single Selection" Survey Suite in CRM 6.0

    Hi
    I am using CRM 6.0. There in Survey Suite there are 2 answering options "Dynamic List Box with Single Selection" & "Dynamic List Box with Multiple Selection". I am able to make out, how we can assign values to this. I have seen example "Example_Dynamic_survey" also.
    I believe we have to use programming for populating this. But how do we have to carry that out.
    Thanx and Regards
    Hitesh

    Hi Hitesh,
    There is no need of programming for populating values for Answer category 'List Box with Single Selection' or 'List Box with Multiple Selection'. You have to follow the following steps to populate values for those:
    - In the Answer Category select List Box with Single Selection from drop down list
    - Then on left hand side tree, right click on Answer and select Insert Answer Option (Answer->Insert Answer Option)
    - Then on right side, provide Text for the answer (value)
    - To add more values, repeat the process Answer->Insert Answer Option and providing text for those answers in the right side.
    Similarly you can populate values for 'List Box with Multiple Selection' also.
    This has to be done in the transaction CRM_SURVEY_SUITE.
    Hope this is clear to you
    regards
    Srikantan

  • Spawning pages from entries in a list box with entry text as title

    The background: I have a form with a list box which a user can populate with their own text via a text box and an 'add' button. This works fine.
    I've just added a template page with different content and 'spawn' button. This also works fine.
    The task: What I want to be able to do is use the entries in the list box from page 1 to spawn the same number of pages as entries and also populate a field in each newly spawned page with the name of the corresponding entry (to act as a title).
    How do I go about coding this?
    Current spawn code:
    var t = this.templates;
    var T = t[0];
    var XO = T.spawn(this.numPages, false, false);
    for (var i=0; i<m; i++) T.spawn(this.numPages, false, false, XO);

    This script will spawn pages depending on the number of items in myComboBox:
         var f = this.getField("myComboBox");
         var expTplt = getTemplate("tpltExpenses");
         for (var i=0; i<f.numItems; i++){
         expTplt.spawn(this.numPages,true,false);
    I'm not sure how to auto fill the text fields on the spawned pages though.

  • List Box With Writing Facility

    Hello Experts ,
                            I want to create a list box in selection-screen with input facilty,
                            i.e i should be able write in that list box just in case of parameters , right now
                            i'm able to select values from drop down only .
                            in short it should just work like command field in screen , where we can write t-code
                            or select t-code from drop down .
    Regards
    Ajit

    Hi ajit,
    without logging onto system and creating a sample, I can tell you what online documentation says about [Using a Different Search Key|http://help.sap.com/saphelp_nw70/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm]
    READ TABLE itab WITH KEY k1 = f1 ... kn = fn result.
    The search key consists of arbitrary table fields k1 ... kn. If you do not know the name of a component until runtime, you can specify it dynamically as the content of a field n1 ... nn using (n1) = f1 (n2) = f2 .  If n1 ... nn is empty when the statement is executed, the search field is ignored.
    That means that for the READ TABLE statement you should use a number of key specifications not less than the possible maximum and then dynamically fill the key variables and key values.
    Do not forget to clear before you do the next read for another table.
    Hope it works.
    Also, this is SAP NetWeaver 7.0, I think dynamic key specification was not possible earlier.
    Regards,
    Clemens

  • Issue with Variable Entry in BI 7.0

    Hi,
    I am having an issue with the variable entry in BI 7.0 Version. Here is a brief background.
    --- In BW 3.x, when we define a variable with <b>Single Value Option</b>, you can enter the value manually in the pop-up selection screen or select from the dropdown of possible values.
    ---But in 7.0 when i try to enter the value manually in the selection screen its opening the dropdown list, and is not giving me the option to enter a value manually. I am entering a valid single value in selection.
    Is this a bug or do i have to make any specific settings to correct my issue?

    When the selection screen pops up choose the KEY only function on the TOOLS on the top right corner of the screen. Then you will be able to enter the values manually.
    Hope this helps.

  • Need help with dependent lists boxes with ADF.

    Hello,
    I am doing a project that use tree dependent list boxes.
    Ex. State---->
    College---->
    List of courses of the college chosen above----->
    The way this should work is when I select the state automatically I want it to change to the correspondent list of colleges of that state and after i choose the colleges I want to be able to get all the courses that are given in that college.
    To implement the first two list boxes I create tree views on JDeveloper and and using SelectOneChoice for both State and Colleges. In the binding editor I bind the first View with the second and then the second view with the third and at this point if I execute the first SelectOneChoice would give me all the state and the second SelectOneChoice would give me the list of all the colleges that exist.
    Now on the third view that I create a binding variable and i put a Where state=:TheBindingVariable on the query.
    Also I set the first SelectOneChoice the outoSubmit property to true, id to StateId and PartialTrigger property to CollegeId.
    On pageDef.xml in the bindings I create action form where I select the third view from Date Collection and select Action as ExecuteWithParams. And I set the value under the parameters section to #{bindings.state.inputValue}.
    Under executables still in pageDef.xml I create a invokeAction and I set binds = ExecuteWithParams.
    On first SelectOneChoice on the ChangeValueListener i create a new ManageBeans which generate me a java class and I create a new method as well to use it to change the binding variable on the second SelectOneChoice.
    Here is the method:
    public void Change_StateId(ValueChangeEvent valueChangeEvent) {
    String StateId;
    valueChangeEvent.setPhaseId(PhaseId.INVOKE_APPLICATION);
    FacesContext adi = FacesContext.getCurrentInstance();
    ValueBinding vb = adi.getApplication().createValueBinding("#{bindings}");
    DCBindingContainer bc = (DCBindingContainer)vb.getValue(adi);
    if(valueChangeEvent.getNewValue().toString().equals("0")){
    StateId = "MA";
    OperationBinding opBindingCollegeLovIter = (OperationBinding) bc.get("ExecuteWithParams");
    opBindingCollegeLovIter.getParamsMap().put("TheState",StateId);
    opBindingCollegeLovIter.execute();
    }else{
    DCIteratorBinding statesLovIter = (DCIteratorBinding) bc.get("CollegeProvaView1Iterator");
    Row rw = statesLovIter.getRowAtRangeIndex(((Integer)valueChangeEvent.getNewValue()).intValue());
    StateId = (String) rw.getAttribute("State");
    OperationBinding opBindingCollegeLovIter = (OperationBinding) bc.get("ExecuteWithParams");
    opBindingCollegeLovIter.getParamsMap().put("TheState",StateId);
    opBindingCollegeLovIter.execute();
    I don't know what I have done wrong because I am new in this field and a little support would be really helpful.
    I am using JDeveloper 10.1.3.1.0 and Oracle SOA Suite 10.1.3.1.0.
    I would appreciate any help.
    Thanks a lot.

    user8116089 wrote:
    For some reason the first selectonechoice doesn't give me all the states that are in the database it gives me just the first 10.check the value of RangeSize for itarator in pageDef. in this case to show all items it must be set to -1
    Also there is a way to assign the first value of the first selectonechoice to null at the start.this is a problematic requirement since all items are bound to iterator and basically this should serve for navigation purpose so the first item is set as selected, but maybe some workaround exists...
    regards,
    Branislav

  • Filling a multi-column list box with a query

    Hi folks!
    I'm really very unexperienced with Oracle Forms so I wasn't able to implement the following problem. I have got a database table called 'employees' with the columns 'id', 'firstname', 'lastname'. In my form I would like to have a listbox containing all the entries of this table (based on a select ... from employee) but with only 2 visible columns (firstname and lastname).
    My first question is, how to fill the list with the values from the query. The second question is, when the user selects an entry of the list (an employee), how can I get the ID of this employee?
    I hope you can help me!
    Thanx in advice
    Ingo

    A list item can have only two columns - one shown to the user and one invisible one which actually populates the item. In order to display your names you need to concatenate them into one.
    Create a record group with the query:
    select firstname||' '||lastname, id from employees
    then in a suitable trigger (eg when-new-form-instance)
    call POPULATE_LIST(list, recordgroup)

  • Wondering how to create a text box with variables...

    Hi everyone,
    I was wondering how to create a text box, that at the beginning of the presentation, the audience fills in regarding what they think constitutes the role they have been chosen for.
    I would like that same box to then appear at the end of the presentation, with the text they typed in at the beginning, so they can reflect on what they think now, and what they thought then. I understand this is done using variables, but i'm not 100% sure.
    I hope I've worded this okay!

    This screenshot shows the properties panel, Style tab for the TEB. I relabeled it to My_TEB, used the X button  to create a user variable v_choice that will replace the generic Text_Entry_Box_1/
    This is the properties panel of a Shape, I went in Edit mode (double clicking)to make the Character section appear, where you find the X button. It opens the dialog box 'Insert Variable' and you can choose the var associated with the TEB. The Maximum Length will define how many characters will be displayed, the value of a variable has maximum 256 characters.

  • Initialize list box with array

    Hi ,
    I am hoping someone can help me with this one :
    I have an array of string (1- D).
    i want each element in the array to be a line in the list box.
    Thanks in advance to anyone that can help .
    Asaf

    You can do it with a property node, see the attached VI.  There may be other ways but I've done it this way for myself in the past.
    Hope this helps.
    -Dave
    Attachments:
    Array into listbox.vi ‏16 KB

  • HOW TO CREATE A CONNECTION IN BI PUBLISHER WITH VARIABLE ENTRY

    I've created one user(say BIPUB1) from AS OIDDAS portal and assigned him XMLP_ADMIN role. I've 10 other users with whom I will share a report. Each user has different authorization(VPD based). Now I want to create a BI-publisher report using a discoverer report(owner BIPUB1) as datamodel and share that report with all 10 users. But all these 10 users should view data based on their authorization defined in OIDDAS. How should I
    achieve it?
    Can I create a JDBC connection from BI-publisher Admin tab with variable userid and password. When user will logon to BIpublisher portal with login_id and password given in OIDDAS, these variables will capture those values of userid and password and show the report data as they individual user has authorization? Or otherwise please suggest how to maintain authorization. Thanks..

    are you talking about BI Publisher Desktop or BI Publisher Enterprise Edition?
    BI Publisher Desktop is just for building templates.
    You can connect to DB by BI Publisher Enterprise Edition.
    for details look into the user guide in the following link
    http://www.oracle.com/technology/products/xml-publisher/xmlpdocs.html

  • Pre pouplating selectone list box  with data

    hello friends, im very new to jsf programming
    I have one requrement like this.
    In one jsp page there are many select boxes (jSF components).
    and there is one backing bean corresponding to that jsp page.
    I want to pre populate the select boxes with the data, from the database.
    I dont know howand where to set the values to these select boxes.
    please help me friends.
    Thanks in advance.

    You can pre-propulate the bean anytime before you attempt to build the page (on which the select boxes are on).
    Use an action method, action listener, or even the beans constructor to populate the bean.
    There are a few other times/ways you can pre-populate the bean, but they are more special cases.
    Most people will use the beans constructor. It's the simplest and most straight forward way (plus, that's what a constructor is for... populating your Object with defaults). You can make your DB calls from within the constructor.
    CowKing

Maybe you are looking for

  • Close a VI template

    My VI works well, however when the .vit opens front panel, this doesn't close with the button "CLOSE" because the program has been stopped. It seems as the vi template executes and stops. I don't know how use the button "CLOSE" to close front panel w

  • Problem with invoice posting

    Hi .. i,m facing an issue with intercompany Invoice posting . I'm having delivery note as a reference to that invoice but im getting error message that delivery note doesnot exist..   i have entered correct delivery note..   how this can b overcome?

  • Serialized item stock discrepency

    Hi, For a material in MMBE it shows stock has 10 nos. If I see it in IQ09 serial number report for the same article it shows 11. How it can be possible Pls advise

  • Exporting slides to Quicktime but the slides are coming out far lighter than the original slides. Am I missing a setting somehwere?

    Exporting slides to Quicktime but the slides are coming out far lighter than the original slides. Am I missing a setting somehwere?

  • How to reformat a compact flash card

    Hi I'm Russell, my hobby is to occasionally take photos with my Canon 7D. Well last time i took photos what happened was when it came down to uploading them to my computer, i transferred them and i think i might of improperly ejected my dolgix 133x 3