Populating Drop down List in Excel Planning Layout

HI!
hopefully somebody can help me.
I have a simple planing function ( copy function: Version1 => Version2 ), Version2 the target version is a BEx Variable and a parameter of the copy planing function.
basicly i want to put a drop down list on a Excel Planing Layout to manipulate the BEx Variable (Version 2 - the target version). So that the user can fill the BEx Variable by selecting the version by the dropdown list.
In BW-BPS is quite simple -but unfortunately i dont know how it works in BW-IP.
Best Regards
Mike
Message was edited by:
        Mike Khatib

Hello Mike,
First you create two Drop Down lists (Dimension Version, Read Mode Masterdata table) in your workbook. Now go to the Visual basic editor (alt+F11) and you will find the following code for each Drop Down list:
Public Sub DROPDOWN_22_LostFocus()
  Dim lComboBoxName As String
  Dim BEx1 As Object
  On Error Resume Next
  lComboBoxName = "DROPDOWN_22"
  Set BEx1 = Application.Run("BExAnalyzer.xla!GetBEx")
  Call BEx1.RaiseComboBoxChange(Parent.Name, lComboBoxName)
End Sub
Comment the last line and add a function to output the chosen value to a cell in the workbook
Public Sub DROPDOWN_22_LostFocus()
  Dim lComboBoxName As String
  Dim BEx1 As Object
  Dim version As String
  'Call Dropdown List
  On Error Resume Next
  lComboBoxName = "DROPDOWN_22"
  Set BEx1 = Application.Run("BExAnalyzer.xla!GetBEx")
  'Call BEx1.RaiseComboBoxChange(Parent.Name, lComboBoxName)
  'get version
  version = DROPDOWN_22.Text
  'output chosen version to a cell in the workbook
  Range("C801").FormulaR1C1 = version
End Sub
Now add a command range to your workbook (VAR_VALUE_1,1, <VERSION>). That’s it.
If you need further information don’t hesitate to ask me!
Best regards
Johannes
PS: Please assign points if this information was helpful

Similar Messages

  • Self populating drop down lists.

    Is there any tutorials or information to do a self populating
    drop down list
    in CF?
    I assume you would have the form post back to its self using
    a IsDefined for
    each drop down step. Drop Down 1 (DD1) is selected and that
    posts back to
    the same page and causes the DD2 to run a SQL query based on
    DD1's choice
    and you repeat the process until the final DD is selected.
    Is this correct and where can I find a good tutorial?
    Thanks
    Wally Kolcz
    Developer / Support

    Do a search on Google for "related selects in ColdFusion".
    Bryan Ashcraft (remove brain to reply)
    Web Application Developer
    Wright Medical Technologies, Inc.
    Macromedia Certified Dreamweaver Developer
    Adobe Community Expert (DW) ::
    http://www.adobe.com/communities/experts/
    "Wally Kolcz" <[email protected]> wrote in
    message
    news:e7c9hc$g6a$[email protected]..
    > Is there any tutorials or information to do a self
    populating drop down
    > list in CF?
    >
    > I assume you would have the form post back to its self
    using a IsDefined
    > for each drop down step. Drop Down 1 (DD1) is selected
    and that posts back
    > to the same page and causes the DD2 to run a SQL query
    based on DD1's
    > choice and you repeat the process until the final DD is
    selected.
    >
    > Is this correct and where can I find a good tutorial?
    >
    > Thanks
    >
    > --
    > Wally Kolcz
    > Developer / Support
    >

  • Populating Drop-down List in Interactive Forms for Java

    Hi,all
    I need to populate a drop-down list in Interactive Form.
    I tried to do it by using Dynamic Properties of the drop-down
    list,but didn't give nothing.At the same time I have successfully
    populated a simple drop-down list(on webdynpro view),which I
    replaced near my InteractiveForm.
    What may be the problem?
    Regards,
    Michael

    Use the DDL from the Web Dynpro pallette. Bind the same/ similar attribute of the DDL you used in the web Dynpro view in the interactive form also... this should work..
    Thanks and Regards,
    Anto.

  • Error while populating drop down list with values from a database

    Hi all,
    I have a JSP page with a drop down list that is to be populated with values from a database.
    This is the code in my JSP file:
         <!-- Form for picking the floor -->
             <!-- Get the available floors -->
             <% ArrayList<Integer> floornumbers = dataManager.getAllFloorNumbers();
                Iterator<Integer> iterator = floornumbers.iterator(); %>
             <!-- Create the form for users to select the floor -->
             <form id="floorselectionform">
                  <input type="hidden" name="action" value="floorselected"/> <!-- Guides the servlet to redirect to the appropriate page -->
                  Select floor | <select name="floorselector" id="floorselector">
                       <% while (iterator.hasNext()) { %>
                       <option value="<%=iterator.next().intValue()%>"> <%=iterator.next().intValue()%> </option>
                       <% } %>
                  </select>
                  <input type="submit" value="Go!"/>
             </form>   The DataManager.java class simply forwards this to its respective Peer class, which has the code shown below:
          package seatplanner.model;
        import java.sql.Connection;
        import java.sql.ResultSet;
        import java.sql.SQLException;
        import java.sql.Statement;
        import java.util.ArrayList;
        /* This class handles all floor operations */
         public class FloorPeer
         /* This method returns all the floor numbers */
         public static ArrayList<Integer> getAllFloorNumbers(DataManager dataManager) {
            ArrayList<Integer> floornumbers = new ArrayList<Integer>();
            Connection connection = dataManager.getConnection();
            if (connection != null) {
              try {
                Statement s = connection.createStatement();
                String sql = "select ID from floor order by ID asc";
                try {
                  ResultSet rs = s.executeQuery(sql);
                  try {
                    while (rs.next()) {
                      floornumbers.add(rs.getInt(1));
                  finally { rs.close(); }
                finally {s.close(); }
              catch (SQLException e) {
                System.out.println("Could not get floor numbers: " + e.getMessage());
              finally {
                dataManager.putConnection(connection);
            return floornumbers;
         }  The classes compile properly, but when I load this page up in Tomcat it just freezes and does not load the form. I tested the DB connection and it works fine.
    What am I doing wrong in the JSP code?
    Thanks for the help in advance.
    UPDATE: I commented out the form, and added <%=floornumbers.size()%> right above the commented code to check if the ArrayList is indeed getting populated with the values from the database (the values are of type integer in the database). The page still freezes like before. I'm puzzled now :confused: .

    Wrong usage of Iterator.
    <!-- Form for picking the floor -->
             <!-- Get the available floors -->
             <% ArrayList<Integer> floornumbers = dataManager.getAllFloorNumbers();
                Iterator<Integer> iterator = floornumbers.iterator(); %>
             <!-- Create the form for users to select the floor -->
             <form id="floorselectionform">
                  <input type="hidden" name="action" value="floorselected"/> <!-- Guides the servlet to redirect to the appropriate page -->
                  Select floor | <select name="floorselector" id="floorselector">
                       <% while (iterator.hasNext()) {
                                    Integer inte = iterator.next();
                            %>
                       <option value="<%=inte.intValue()%>"><%=inte.intValue()%></option>
                       <% } %>
                  </select>
                  <input type="submit" value="Go!"/>
             </form>or make use of enhanced loop as you are already using J2SE 5.0+ for avoiding confusions.
    <!-- Form for picking the floor -->
             <!-- Get the available floors -->
             <% ArrayList<Integer> floornumbers = dataManager.getAllFloorNumbers(); %>
             <!-- Create the form for users to select the floor -->
             <form id="floorselectionform">
                  <input type="hidden" name="action" value="floorselected"/> <!-- Guides the servlet to redirect to the appropriate page -->
                  Select floor | <select name="floorselector" id="floorselector">
                       <% for(Integer inte:floornumbers) {%>
                       <option value="<%=inte.intValue()%>"><%=inte.intValue()%></option>
                       <%}%>
                  </select>
                  <input type="submit" value="Go!"/>
             </form>and a lot better thing would be making usage of basic Taglib provided with JSTL spec or struts spec which make life easier and simple.
    something like usage of <c:forEach/> or <logic:iterate/> would be lot better without writing a single scriptlet code.
    Hope that might help :)
    REGARDS,
    RaHuL

  • Problems with populating Drop Down List (WD ABAP)

    Hi,
    I am trying to populate two Drop Down fields CARRID and CONNID (Type Table SPFLI) on an Adobe Interactive Form in a Web Dynpro ABAP Application.
    In the WD Context I have a node "Flights" with those attributes.
    In the WDDOINIT I populate the Context elements (just for test purposes with all entries of SPFLI).
    [code]  
    DATA:
         node_flights                        TYPE REF TO if_wd_context_node,
         elem_flights                        TYPE REF TO if_wd_context_element,
         stru_flights                        TYPE wd_this->element_flights,
         it_flights TYPE TABLE OF spfli.
    SELECT carrid connid FROM spfli INTO TABLE it_flights.
    navigate from <CONTEXT> to <FLIGHTS> via lead selection
       node_flights = wd_context->get_child_node( name = wd_this->wdctx_flights ).
    node_flights->bind_table(
        new_items            = it_flights
        set_initial_elements = ABAP_FALSE
    [/code]
    According to this
    Re: adobe form/reader  error I bound the element values property of the Enumerated Drop Down List to [code]$record.sap-vhlist.CARRID.item[*][/code], whereas <i>Object Text</i> is "Text" and <i>Object Value</i> is "Key".
    Unfortunately the DDLs on the Adobe Form are not populated with the values read from the table. I debugged the application and the values are written to the Context node.
    Do you have any further hints?
    Best regards,
    Robin
    Message was edited by:
            Robin Wennemuth

    Robin:
    Did you get this resolved? Would you please tell me how you got it done?
    Thank you,
    Fred.

  • Dynamically Populating Drop Down Lists

    Hi,
    I am trying to dynamically populate a drop down list on a form based on a selection in another drop down list. I have read the help file "To dynamically populate a second field after populating the first" which goes through an example, however I cannot get this example to work for me.
    I know that the best way to do it is to create an xml file and connect the form to this file. I am new to programming in xml but have had some experience in other forms. The code that I have (from the help page) looks like this;
    <?xml version="1.0" encoding="UTF-8"?>
    <MyData>
       <country/>
       <countries>
          <item uiname="United States" token="US"/>
          <item uiname="Vietnam" token="SRV"/>
       </countries>
       <state/>
       <US>
          <item>California</item>
          <item>New York</item>
          <item>Texas</item>
       </US>
       <SRV>
          <item>An Giang</item>
          <item>Bac Giang</item>
          <item>Bac Kan</item>
       </SRV>
    </MyData>
    I have then followed the instructions on the page, and am unable to populate either field on my form. Perhaps there is something wrong with my code? Or any other suggestions would be greatly appreciated! 
    Thanks

    Hi Paul,
    I have another question,
    I would now like to populate a third drop down menu based on the selection in the second one, however my code is going wrong somewhere as now when I put in the first 2 drop down lists, nothing appears in the second one. ie, the first drop down list I link to countries, and the second to state, as I did with the previous file, but now, when I preview it, I can choose a country, but nothing comes up in state. When I set the first drop down box to countries, I have to specify that I want it to show the uiname, but I can't do that with the second one when I select state using the XML file below, nothing is shown. Where am I going wrong?
    <MyData>
       <Country/>
       <countries>
          <item uiname="United States" token="US"/>
          <item uiname="Vietnam" token="SRV"/>
       </countries>  
       <state/>
       <US>
          <item uiname="California" token="CA"/>     
          <item uiname="New York" token="NY"/>   
          <item uiname="Texas" token="TEX"/>
       </US>
       <SRV>
          <item uiname="An Giang" token="AG"/>
          <item uiname="Ban Giang" token="BG"/>
          <item uiname="Bac Kan" token="BK"/>
       </SRV>
       <time/>
       <CA>
          <item>6</item>
          <item>7</item>
       </CA>
       <NY>
          <item>5</item>
          <item>4</item>
       </NY>
       <TEX>
          <item>3</item>
          <item>8</item>
       </TEX>
       <AG>
          <item>2</item>
       </AG>
       <BG>
          <item>1</item>
       </BG>
       <BK>
          <item>9</item>
       </BK>
    </MyData>
    Thank you for your help!

  • Error message when populating drop-down list with mysql DB

    Hi everyone,
    i'm having an error message which gives zero result on google...
    here's the context: i have a drop-down list called "Patient" in the template pages of a livecycle form. The binding is set to Global so that the value is the same on the two pages of the form. I have also linked the items of the list to a mysql database (with DataConnection) by clicking the "Specify Item Values" link on the Binding tab of the element.
    now, when i open my form (or preview) i get this message, in french:
    "Propriété incorrecte de l'opération SET; dataGroup ne possède pas de propriété id."
    which is, in english (personal translation):
    "Incorrect property of the SET operation; dataGroup doesn't have an id property."
    this message appears in a messagebox, the background is empty (standard gray color)
    Then i click "OK" (which is the only button available), and my form appears, the list is populated with the values of my database table, so it actually works...
    As i said, i have zero results on google with this message...
    any idea what it means and how to avoid it?
    Thanks!

    Hi,
    For all things XFA Forms and Databases there is no place better than Stefan Cameron's blog: http://forms.stefcameron.com/.
    Have a look here: http://forms.stefcameron.com/2006/12/18/databases-inserting-updating-and-deleting-records/ and at comment 60.
    Good luck,
    Niall

  • Populating drop down list in a table cell-urgent

    Hi all
    I have a problem. I want to populate a dropdown list in a table cell. can anybody tell me the step by step procedure for that.
    I am doing it generally. not using R/3
    I am creating sub node like u have mentioned. I haven't done it using wizard.
    Is there any difference in the way we populate this list?
    My root node is expense. Inside that some value attributes are there. For the drop down list i've created a sub node 'extype'.
    I am getting error.
    it is:
    com.sap.tc.webdynpro.progmodel.context.ContextException: Node(EREmpHomeView.expense.extype): cannot bind or add elements because the node has no valid parent
    Following is the code i've written.
    IPrivateEREmpHomeView.IExtypeElement el;
              IPrivateEREmpHomeView.IExtypeNode nd=wdContext.nodeExpense().nodeExtype();
              el=wdContext.nodeExpense().nodeExtype().createExtypeElement();
              el.setEtype("Travel");
              nd.addElement(el);
    Sill i'm getting the same error
    Hi Nidhideep
    Error has gone with the code that Mr Anil has given. But there is no value in the List. Dropdown list is coming as a blank list.
    Thanks and Regards
    Aparnna
    Message was edited by:
            aparnna prasad

    hi
    Aparna try this code:
    1. Context description at design time:
    Value-Node "myNode", collection type=list, cardinality=0..n, selection=0..n
    and the attribute:
    Value attributes “myValue”, type="String".
    2. The corresponding Java source code example that you create in the wdDoInit method of the controller implementation:
    // The ISimpleTypeModifiable interface enables access to
    //a data type instance that can be modified at runtime:
    ISimpleTypeModifiable myType =
       wdThis.wdGetAPI().getContext.getModifiableTypeOf(“.myNode.myValue”);
    //Sets the label text for this data type.
    myType.setFieldLabel(“New label”)
    //Sets the valid values of this data type. The individual elements are inserted
    //when the put method is called and
    //and the value set is filled with the appropriate
    //key value pair.
    IModifiableSimpleValueSet values =
       getSVService().myType.getModifiableValueSet();
    values.put(“key_1”,”Mister”);
    values.put(“key_2”,”Mistress”);
    values.put(“key_3”,”Miss”);
    Regards
    Nidhideep

  • Issue populating drop-down lists on newly created instances.

    I have a drop-down list on the main page and another ddl on the flowed subform. I have js code that populates the support type ddl when a selection is made on the team ddl. My issue is when I use instanceManager.addInstance(1); The new instance doesn't populate with the selection. How do I get it to populate. most of my code; not the array is at http://pastebin.com/uM0ssT8v

    Can anyone help???
    I have a date field on my jsp form. I want to ensure
    that the date is entered correctly.
    To do this I have 3 drop down lists....year, month,
    date.
    How can I populate the date list when the user selects
    a month?
    e.g. user enters "Feb". Date list should only display
    numbers 1 to 28 or 1 to 29 if it is a leap year.
    Any idea's or suggestions???

  • Populating drop down lists

    Greetings
    I have created a form in Acrobat XI Pro with 3+ text fields which populate a drop down list.  My problem is that when I duplicate the Drop down, which I need to do around 50 times, each selection resets all the drop downs to that choice.
    The Drop down fields have a Javascript action added to call a single Javascript. 
    function popDropdown()
        var myBlocks = [];
            myBlocks.push("Select from Drop down");
        if (this.getField("Block1").value != "")
            myBlocks.push(this.getField("Block1").value);
        if (this.getField("Block2").value != "")
            myBlocks.push(this.getField("Block2").value);
        if (this.getField("Block3").value != "")
            myBlocks.push(this.getField("Block3").value);
        this.getField("select").clearItems();
        this.getField("select").setItems(myBlocks);

    Here is the problem: You are modifying the dropdown configuration every time somebody moves the mouse over one of the dropdowns. Every time you set the data in the dropdown list, it will always reset the selection to the first item.
    I would remove all embedded JavaScripts, and all "On Focus" triggers for the dropdowns and the text fields. Then create a new text field that uses the following script as it's custom calculation script:
    // global calculation script
    // take the information from Block1..Block3 and
    // initialize the dropdown lists
    var aDropdownListData = [];
    aDropdownListData.push("Select from Drop down");
    aDropdownListData.push(this.getField("Block1").value);
    aDropdownListData.push(this.getField("Block2").value);
    aDropdownListData.push(this.getField("Block3").value);
    var lDropdowns = ["select1", "select2", "select3" ];
    for (var i in lDropdowns) {
      // get the currently selected item in the dropdown list
      var f = this.getField(lDropdowns[i]);
      var a = f.currentValueIndices;
      var item = "";
      if (typeof a == "number") {    // A single selection
        item = f.getItemAt(a, false);
      else {     // Multiple selections
        item = f.getItemAt(a[0], false);
      f.setItems(aDropdownListData);
      // select the previously selected item again
      for (var i in aDropdownListData) {
        if (aDropdownListData[i] == item) {
          f.currentValueIndices = [ i ];
    Now set this new field to read-only and hidden. This will take care of modifying the dropdown controls whenever you modify one of the text fields. It will also make sure that whatever setting was selected, will be selected again after this change (unless that value is no longer available).

  • Populating drop down lists dynamically???

    I have a date field on my jsp form. I want to ensure that the date is entered correctly.
    To do this I have 3 drop down lists....year, month, date.
    How can I populate the date list when the user selects a month?
    e.g. user enters "Feb". Date list should only display numbers 1 to 28 or 1 to 29 if it is a leap year.
    Any idea's or suggestions???

    Can anyone help???
    I have a date field on my jsp form. I want to ensure
    that the date is entered correctly.
    To do this I have 3 drop down lists....year, month,
    date.
    How can I populate the date list when the user selects
    a month?
    e.g. user enters "Feb". Date list should only display
    numbers 1 to 28 or 1 to 29 if it is a leap year.
    Any idea's or suggestions???

  • Drop down list in Excel Layout

    Hi,
    I'm trying to have in the header a dropdown list so that users can select Cost Center's for example. But can not get it when in the Planning Level or Planning Package the Cost Center is left blank. Do you have to restrict it in order to be able to make it selectable?

    Hi,
      You can create variable for Cost Center in multiple
      types (Char, attribute, Hierarchy) and use the
      replacement path based on your business requirements.
      No restriction is needed to make it selectable but
      restriction is needed so user's don't lock each other
      out.Just as a test create a CC variable with Char type
      and replacement type as user-defined values.Put this
      in your level definition in BPS0 and add it to your
      GUI/Web folders in the variable section.You should be
      able to see your list of Cost Centers.
      But if you want to restrict based on additional
      attributes of Cost Center, you may want to think about
      creating an attribute variable,if you want to restrict
      based on BW authorizations then you could use char
      type variable with replacement type authorization.
      Hope this helps.
    Cheers
    Srini

  • Making a self populating drop down list in a servlet

    Dear all,
    I'm trying to make a self-populating list in my servlet. I've seen lots of ways to do it in php and asp and jsp, but i really want to make it work within my current architecture.
    So in my DAO class I have added this method:
    public ResultSet get_Artist_Names_Only()
    try
    ResultSet r = c.createStatement().executeQuery
    ("SELECT artist_name FROM customers");
    c.close();
    return r;
    catch(Exception e)
    System.out.println("Check artist_names_only method");
    return null;
    and then in my servlet i have put this:
    writer.println("<TABLE align=\"top\">");
    writer.println("<TH colspan =\"1\" width = \"4%\">");
    writer.println("<TH colspan =\"1\" width = \"7%\">");
    writer.println("<form method=POST action=BookingFromScreen>");
    writer.println("<select name=\"userList\" size=\"1\">");
    ResultSet r;
    r = factory.getCustomersDAO().get_Artist_Names_Only();
    while (r.next())
    writer.println("the artists are: ");
    writer.println("<option value="+r.getString("artist_name")+"></option>");
    writer.println("</select></TD></TR>");
    writer.println("<tr><td colspan = \"2\"><h2>Enter Artist Name to be booked: </h2></tr></td>");
    writer.println("</table>");
    this is horrible code and its not very surprising it doesn't work, however i'm burned out from looking at it and can't seem to see the problem, i'd really appreciate your help if you could point out to me how i'm being stoopid.
    Thank you
    Jen

    thank you saish, moving 'the artists are' helps visually, as for the fix, i really needed to store it in an arrayList, resultSets aren't very happy about being manipulated!
    here's the fix:
    writer.println("<select name=\"userList\" size=\"1\">");
    ArrayList a = new ArrayList();
    ResultSet r=null;
    // this is just my way of accessing the database and the correct method with the artist names in it
    r = factory.getCustomersDAO().get_Artist_Names_Only();
    while(r.next())
    // retrieve artist names as String variables
    String artist = r.getString("artist_name");
    // add to ArrayList
    a.add(artist);
    for(int i=0; i<a.size(); i++)
    Object art = a.get(i);
    art = (String)art;
    writer.println("<OPTION VALUE=\"" +art+ "\">" art "</OPTION>");
    writer.println("<tr><td colspan = \"2\"><h2>Enter Artist Name to be booked: </h2></tr></td>");
    writer.println("</SELECT></TD></TR>");
    thanks again, i've got another problem now that i'm just about to post about, how to register when one particular cell in a html table has had its link clicked!
    jenxx

  • Filtering in excel - not all options display in drop down list

    I have found an issue with the filter drop-down list in Excel 2010. I have now been upgraded (by my employee) to Excel 2013 and same problem still exists.
    Problem: I highlight the row containing the column headings; then click on filter (available via the Home tab); then click on the down arrow in the column of interest (in this case "Council Names" column); the drop-down window appears but not all
    council names are displayed in the selection list, even though those council names are still in the list. I am aware of the 10,000 option limit with the selection list, but my spread sheet has well under 10,000 rows (unless there is something hidden that I
    do not know about).
    I have found work-arounds for the problem by searching google for answers to similar problems. I have also spoken to my employee's IT HelpDesk. I will explain the work-arounds I have found below. However, my main concerns now are:
    (1) What is the cause of the problem? Is there are better fix that addresses the cause, rather than having to use work-arounds?
    (2) Is the issue an indication that the spread sheet has been corrupted in some way? - I need assurance that this is not an indication that the spread sheet is unstable and such problems could multiply or already be existing. (The reason I ask
    this is that I had an earlier version of the same spread sheet where the problem did not occur, but it appeared in a later copy - could the copying of the sheet/workbook have caused the problem?)
    Workarounds found:
    (1) Select the entire sheet, then select the filter button in Home tab
    (2) select all the columns manually (click in top left cell and drag down until all data selected), then select filter button
    (3) Ensure all rows in the column of interest are filled in, then select filter button
    I would really appreciate any answers/assistance.

    Hi Jan,
    Thank you very much! Yes you are right - I have looked at the Current Region and the Council Names within that region match those in the filter list. The Current Region does not contain the entire sheet.
    [By the way - there were some errors in my original post: employee should be employer and in my description of the problem the following should read
    "...even though those council names are still in the spread sheet". I assume that this would not change your response?]
    Further questions
    (1) It is odd, though, that an earlier version of the same spread sheet had a complete list of council names (the current range on this sheet contains all of the required rows of the sheet). How did the current region change between versions (I did not knowingly
    do it)?
    (2) Does the above mean that the file, workbook or spread sheet is damaged/corrupted in some way? If yes, can this be corrected and how?
    (3) In addition to (2) above - what is the safest way to copy an excel workbook to minimise risk/avoid future corruption? [I have been copying and keeping earlier versions, partly for testing reasons, but also as a safety measure for the project as
    we are making changes all the time and may decide we wish to go back to the previous version(s)].
    Regards and thanks again,
    Bea Rogers.

  • Drop Down list in BPC Input Schedule

    Hi all,
    In an input schedule I need to have some values "controlled", and allow to give a value only among a list of specific values. So I came up on the idea to builld it using cell "validation" feature of native Excel, just like I have been able to find in [this thread|Re: Regarding the Function.......] (by the way, great the hint about using name's ranges for being able to define the list in a different sheet than where it is being used).
    So, I need to achieve one more thing. Let's say that the values I must include in the list are not numerical values, but alphanumerical, so I must combine in the schedule the alphanumerical value with the numerical value it represents. I have played around with excel and BPC formulas for quite a while already but cannot get it to work. Anybody has implented it?
    Regards,
    Rafael
    PS: I get to define the drop down list of values in a cell and get it to write the corresponding numerical value in another cell referenced by a EvSND, but this only works in one direction (the cell does not get updated when I change the current view for example).

    Hi Rafael,
    I've done something similar.
    In one cell I've put a drop down list, using Excel's data validation. The members in the list are human-readable text values, so the user can select one of these descriptive values.
    In a second cell, these text values are transcoded into numeric values, thanks to function VLOOLUP. This cell is in the data range of an EvDRE expansion area, so when the user saves data the numeric value gets written to the back-end.
    In a 3rd cell I fetch the numeric value currently saved on the server, via an EvGET.
    In a 4th cell, I transcode that value into the corresponding text value, using another VLOOKUP function.
    Finally, I've used function AFTER_REFRESH to read the content of the 4th cell, and set the value of the drop-down cell to that value. The VBA instruction to do the latter thing is something similar to:
    ActiveCell.FormulaR1C1 = <the value of the 4th cell>
    This way, the drop-down entry selected by default after refreshing data is the value currently stored on the server.
    However I still miss something. I've set the Excel validation only in the 1st cell of the 1st row, and I want that the EvDRE expansion copies the validation to all other cells in all rows resulting from expansion. But this does not happen! Validation is not copied during expasion.
    How's that? Everything else is copied--values, formats, formulas. Why validation is not copied?
    * UPDATE
    I've solved this issue. The solution is described here:
    http://scn.sap.com/thread/3209213
    Rafael Moreno wrote:
    Hi Ethan,
    yes, you are right, with VLOOKUP you get the information I want, but only in ONE direction. By "one direction" I mean that I can get in the cell with the VLOOKUP the text I want by reading a (numerical) value from a different referenced cell. But I would also need to be able of changing value in that same cell (by picking up one of those text values from a drop down list) and having the corresponding numerical value written on the referenced cell. Can you see the difference?
    In few words, I would need a cell to read and write a value (just as the raw EvSND allows), but converting the numerical value into its corresponding text value.
    Regards,
    Rafael
    Message was edited by: Davide Cavallari

Maybe you are looking for