Populate variable 2 according to the value selected in variable 1

Hello BW Experts,
I have two variables sales area vsarea and sales org vsorg.
eg: data:
sales area area1 contains
    1) sales org org1
    2) org2
sales area area2 contains
    1) org3
    2) org4
req:
first the user selects the values in the vsarea area1. then when he comes to select the variable vsorg it should show only show org1, org2. it should not show org3 and org4.
possible solutions:
-- 1) is this possible using the variable exit ?
please suggest any solutions for the above problem.
Thanks,
BWer

thanks for the suggestion.
however what I wanted to do is somewhat different.
variable selection sequence:
sales area then sales org
1) variable 1: sales area: user selects 1000 for sales area
2) variable 2: sales org: I should only show 1001, 1002, 1003 sales org, which belong to 1000 sales area
please suggest if there is already a solution for this.
Thanks,
BWer

Similar Messages

  • Populate text field based on the lov selected value

    Hi,
    based on the value selected in lov, i want to populate another text field. Below is the code I have written
    In PFR:
    if(pageContext.isLovEvent())
    String lovInputSourceId = pageContext.getParameter(SOURCE_PARAM);
    if ("lovCategory".equals(lovInputSourceId))
    java.util.Hashtable lovResults = pageContext.getLovResultsFromSession(lovInputSourceId);
    if(lovResults!=null)
    String value =(String)lovResults.get("lovCategory");
    amobj.categorycode(value);
    AMImpl code:
    public void categorycode(String code) {
    sundryCodeVOImpl vobj = getsundryCodeVO1();
    vobj.setWhereClause( "lookup_code = "+"'"+code+"'");
    vobj.reset();
    vobj.executeQuery();
    String desc = vobj.first().getAttribute("Description").toString();
    String attr = vobj.first().getAttribute("Attribute1").toString();
    testEOViewImpl vobj1 = gettestEOView1();
    vobj1.getCurrentRow().setAttribute("CodeDescription",desc);
    vobj1.getCurrentRow().setAttribute("PurchasingCategoryCd",attr);
    vobj1.executeQuery();
    With this code, the updated values for the attributes CodeDescription, PurchasingCategoryCd are getting inserted into the database table but they are now showing up in the text fields when a value is selected in lov.
    Please tell me what is the mistake I'm doing.
    Thanks
    Sunny

    I'm using Lov Map to populate the lov field say field A. But I need to populate another field say field B based on the value selected in field A.
    to give an example of my requirement. Consider a view object having attributes col1,col2,col3 and having following data.
    col1--col2--col3
    1-----a-------x
    2-----b------y
    3-----c------z
    I 'll populate the lov of field A with values in col1. when user selects value 1 in field A. automatically field B should show value 'a'. If user selects value 2 in field A, field B should show value 'b' so on.
    Thanks
    Sunny

  • How to capture the value selected in the drop down box

    Hi all,
    I am populating values in  drop down box by using FM vrm_set_values in module pool.
    like below
    01  ABC
    02 ACB
    03 BCA
    04 CAB
    in module pool drop down box element name is RQGM-VALUE.
    Problem is what ever the value is select in the drop down box from above element RQGM-VALUE is not filling any value.
    i need to capture the value selected in the drop down box and pass it to another variable.

    Hi,
    Refer this standard code. Your issue will be resolve.
    REPORT demo_dynpro_dropdown_listbox.
    TYPE-POOLS vrm.
    DATA: name  TYPE vrm_id,
          list  TYPE vrm_values,
          value LIKE LINE OF list.
    DATA: wa_spfli TYPE spfli,
          ok_code TYPE sy-ucomm,
          save_ok TYPE sy-ucomm.
    TABLES demof4help.
    name = 'DEMOF4HELP-CONNID'.
    CALL SCREEN 100.
    MODULE cancel INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE init_listbox OUTPUT.
      CLEAR demof4help-connid.
      SELECT  connid cityfrom cityto deptime
        FROM  spfli
        INTO  CORRESPONDING FIELDS OF wa_spfli
       WHERE  carrid = demof4help-carrier2.
        value-key  = wa_spfli-connid.
        WRITE wa_spfli-deptime TO value-text USING EDIT MASK '__:__:__'.
        CONCATENATE value-text
                    wa_spfli-cityfrom
                    wa_spfli-cityto
                    INTO value-text SEPARATED BY space.
        APPEND value TO list.
      ENDSELECT.
      CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id     = name
                values = list.
    ENDMODULE.
    MODULE user_command_100.
      save_ok = ok_code.
      CLEAR ok_code.
      IF save_ok = 'CARRIER' AND NOT demof4help-carrier2 IS INITIAL.
        LEAVE TO SCREEN 200.
      ELSE.
        SET SCREEN 100.
      ENDIF.
    ENDMODULE.
    MODULE user_command_200.
      save_ok = ok_code.
      CLEAR ok_code.
      IF save_ok = 'SELECTED'.
        MESSAGE i888(sabapdocu) WITH text-001 demof4help-carrier2
                                            demof4help-connid.
      ENDIF.
    ENDMODULE.

  • Plot a chart dynamically based on the values selected

    Hi All,
    I have some requirement like this i want to plot a chart . The chart should change dynamically based on target_name and date. What type of UI should I use ? I tried using multiselect or shuttle for choosing the target_name and date picker tool for date once i choose all this the chart should appear. Can I have a custom button called submit so once all the values are entered it plots chart ? Please help me out with our ideas.
    Thanks in Advance

    Hi,
    Using the dependent value sets you can govern the values which can be selected based on a specific value selected in a particular segment. Example if Country name is selected in segment 1 then specific states names as per the country selected can be displayed in segment 2.
    As per the requirement described you want to enable different fields based on the value selected in segment1, currently there is no standard mechanism available to enable/disable fields based on a value and you will have to do an extension/customization to meet this requirement.
    Thanks,
    Sanjay

  • How can I change a the dropdown menu background according to the text selected?

    How can I change a the dropdown menu background according to the text selected?

    Read here about how to use the color object correctly:
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/common/html/w whelp.htm?context=Acrobat9_HTMLHelp&file=JS_API_AcroJS.88.260.html
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/common/html/w whelp.htm?context=Acrobat9_HTMLHelp&file=JS_API_AcroJS.88.261.html

  • Set the css style of text in a column according to the value of another col

    I'd like to set the css style of text in a column according to the value of another column. Each field may end up with a different style of text as a result, for instance.
    Any ideas? I looked thru the forums but couldn't find anything.
    Thanks,
    Linda

    Does the class=”t7Header” make it into the rendered HTML?
    ---The text "class="tHeader" does not show but the other text is rendered using the style t7Header as defined in the stylesheet! Exactly what I wanted.
    You might want to use a div or a span instead of a p.
    ---Yes -
    What's very cool is we can create a display column that is dynamically filled with the html and style wrappers based on a lookup to see what style should be applied according to the actual data value. This is critical as our tables are all dynamic so I can't depend on using the additional APEX methods to control the display of a column (as the # of columns in the view vary from instance to instance) and I did not want the display specs to muddy up my SQL queries.
    I wonder why this is not well documented. It is so easy!
    Thanks again for your help.
    Linda

  • How can I set a specific value for a field, according to the option selected in a previous drop-down menu?

    Eg.: I have a drop down menu with the following options: "1,2,3,4,5". What I want to do is the followin: If the option selected is "1" the field "Color" must be filled with "Green", if "2" the field color must be filled with "Red", etc

    You can use something like this as the custom calculation script of the color field:
    var v = this.getField("Dropdown1").valueAsString;
    if (v=="1") event.value = "Green";
    else if (v=="2") event.value = "Red";
    // etc.
    else event.value = "";

  • How do I populate form fields depending on the value of a list box?

    Hi,
    Can anybody help me out here?
    I'm creating a form where I'm needing to populate a number of fields (first name & last name) based on the value of a list box (values are 1,2,3,4,5,6) ie: if 3 is selected 3 sets of the first name and last name fields populate on the page for the user to fill out.
    At this stage it is just a prototype site and there is no database running behind it.
    Thanks
    Hayden

    This can only be solved if you have javascript coding skills.  Without knowing more about what you want to do and why, I can only show you a skeleton of how your code should look, but consider this form select field -
    <select onchange="populateForm()">
    When a value is selected from that list, the "onchange" event will fire, and will call the javascript function called populateForm().  You need to define a function by that name somewhere on the page -
    <script type="text/javascript">
    //<![CDATA[
    function populateForm(value) {
         if value >0 { document.getElementById("fieldID").style.display='block' }
         if value >1 { .... }
         etc.
    //]]>
    </script>
    The page itself would need to have ALL the fields already in the form, but with those that are to be revealed set to a style of display:none.
    Obviously, this is a skinny skeleton.  Each test in the function would reveal a new field on the page by changing its display style from "none" (which is how they should be set in the code) to "block".  You would need a separate function for each type of field that might need to be chosen.
    If this is well over your head, then I'm afraid you will be out of luck for this particular approach....

  • How to capture the values selected at selection screen

    Hi.
    I need some basic idea  reg.  to capture the selected values at selection screen into an internal table.
    for example.
    Selection-screen  having the following fields,
    Grade1....a1
    grade2..a2
    grade3..a3
    grade4..a4
    grade15--a15
    Now i want to get the values of grade into an internal table.. so that i can create dynamic  table  based on selected values
    a1 a2 a3 a4 a5...

    use function moduel
    CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
       EXPORTING
          CURR_REPORT = repname   " Your report name
       TABLES
          SELECTION_TABLE = it_sels.
    you can get all values from the selection screen

  • How can I to obtain the value selected in a search help?

    Hi Gurus,
    I have a search help and it has a "search help exit" (a FM).
    At FM search help exit I am calling the standard FM RHF4_RFC_FIELD_VALUE_REQUEST to another system ( assigning the corresponding "destination" ).
    The FM RHF4_RFC_FIELD_VALUE_REQUEST display a screen where the search is done. When a field is selected returns the values in the internal table RETURN_TAB.
    At FM search help exit I assign the selected value ( in RETURN_TAB ) to internal table's field RECORD_TAB-STRING.
    The search help is assigned to a table field and when I want to obtain a value through search help in SM30 transaction, the screen created by FM RHF4_RFC_FIELD_VALUE_REQUEST appears, but when I select a value, this is not "copy" to the table field.
    In what am I wrong? What am I omitting?
    Thanks

    Hi,
    Probably you are not mapping the right fields from source to destination structures.
    plz check RETURN_TAB-STRING(this is an example) assigned to RECORD_TAB-STRING.
    put a break point at this line and check.
    Thanks,
    Sree.

  • How capture the value selected in the component ( Select Many Choice )

    Hello Everyone ,
    I am new to ADF and i have a ADF page developed with Select Many Choice as one of the component , this field can be multiple numbers , i would
    like to capture each one the value being selected under each message choice and print them using sop .
    Let me explain through example :
    Application 1
    : Role 1
    : Role 2
    Application 2
    : Role 4
    : Role 5
    Where Application 1 , 2 are name of the Select Many choice component and Role 1 , 2 .. are values inside various Message choice .
    Now if i select Role 1 in Application 1 and Role 5 in Application 2 , i would like to print each of these information on click of a button.
    can some one help to achieve this .
    Note : All the values like Application 1 , 2 and Role 1,2,3 etc are just hard coded , not using any data base .
    --Keerthi                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Pratap ,
    Thanks for your response ,Its just a page with component ( Select Many Choice ) i have hard coded some of the values for
    select choice .
    Let me know if you need any further input .
    --Keerthi                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Controlling form appearance according to the values in the table.

    Hi,
    I want to control my form appearance foreground color,background color, font name, font size etc. at form startup. These values are kept in a table. Please tell me the best way.
    Thanks,
    Shafiq
    null

    Depend on the values; if the values are a given, i.e if the values only takes a certain combinations then create predefined visual attributes and at runtime apply thro the pre-form trigger.
    if the values are vary regularly then pick the values at runtime pass it thro parameters/global variables at the pre-form
    /when-new-form instance.
    null

  • Change the Status depending on the value selected in Sales stage

    I want to change the status in opportunity, depending upon what is entered in sales stage.
    I tried to find an appropriate BADI for the same purpose, but couldn't figure out any.
    I was thinking of changing the method do_prepare_output and including the code to get the value of sales stage and set the status. Is this feasible?

    Alternatively, you can enhance the SET method of the sales status and add the logic for status update as well.
    Regards, Kathirvel

  • Populate 2nd combo box based on value selected in 1st combo box

    I am still using Acrobat 6 though I may be upgrading soon to Acrobat 8. I have a form with two combo boxes, the first "state" has values of MN and WI. Based on which value the user picks I would like to populate a "county" combo box with lists of counties that we deal with.
    Thanks,
    Gene

    One can set the option and export value using an arry:<br /><br />// document level script<br />// Master List of Lists <br />// Each entry in this object listeral is the name of a State <br />//Manually enter the State Names into the state field combo box <br />// The associated value is the item list, where each item is a name value pair, [<County> and [county code, zip code]] <br /><br />// state: ["county name", ["county code", "zip code"]]<br />var oStateNames = {MN: [["-", ["", ""] ], <br />                       ["St. Louis", ["MNStl", "55001"] ], <br />                       ["Carlton", ["MNSCrl", "55002"] ], <br />                       ["Pine", ["MNPin", "55003"] ],<br />                       ["Cook", ["MNCok", "55004"] ] <br />                       ], <br />                   WI: [["-", [" ", " "] ],<br />                        ["Douglas", ["WIDou", "55005"] ] ,<br />                        ["Bayfield", ["WIBay", "55006"] ],<br />                        ["Burnette", ["WIBur", "55007"] ],<br />                        ["Ashland", ["WIAsh", "55008"] ]<br />                       ]<br />                     }; <br /><br />//SetCountyEntries() on keystroke entry in state field <br />function SetCountyEntries() <br />{ <br />   if(event.willCommit) <br />   { <br />      // Get the new counties list from the Master List <br />      // Since the selection is being committed, <br />      // event.value contains the State name <br />      var lst = oStateNames[event.value]; <br />      // Clear the county list if there are no counties for the selected state <br />      this.getField("ee.address.county").clearItems();<br />      this.resetForm(["ee.address.code", "ee.address.zip"]);<br />      if( (lst != null) && (lst.length > 0) )<br />           this.getField("ee.address.county").setItems(lst); // set opiton and export value<br />   } <br />} <br />//  end document level script<br /><br />For the combo box "ee.address.county" one can create an array from the export value to populate the county code and zip code<br /><br />// custom keystroke for county combo box<br />if(event.willCommit & event.value != "") {<br />// split county and zip codes<br />var aCodes = this.getField(event.target.name).value.split(",");<br />this.getField("ee.address.code").value = aCodes[0];<br />this.getField("ee.address.zip").value = aCodes[1];<br />}<br />// end custom key stroke code

  • Not able to read the value selected in DDBK.

    int key = Integer.parseInt(wdContext.node<Nodename>().getCurrentElement().getAttributeAsText("<attribute>"));
    IWDAttributeInfo attributeInfo = wdContext.node<Nodename>().getNodeInfo().getAttribute("<attribute>");
    ISimpleValueSet values = attributeInfo.getSimpleType().getSVServices().getValues();
    String text = values.getText(key-1);
    Solved.
    Edited by: Tony on Mar 12, 2009 9:39 PM

    We were using JDK1.6.0_29 and it was not supporting ODI 11.1.1.5, so we have uninstalled the JDK1.6.0_29 and reinstall the JDK1.6.0_11.This solves our issue.
    Thanks a lot!!

Maybe you are looking for

  • Can I really Install SAP ECC 6.0 SR3

    Hello Experts, I have a question, I am an amateur and need your expert advice regarding installation of SAP R3 on my laptop. My question is that If I install SAP on my laptop would I be able to practice it anywhere even without the Internet? I am new

  • Bookmarks Safari 5.0.5 will not import into Firefox 17.0 with Mac OS 10.6.8

    I am on Mac OS 10.6.8. When trying to import bookmarks from Safari 5.0.5, they will not import/display into Firefox 17.0. I have tried the following from the bookmark menu: Import Bookmarks from HTML... Import Data from Another Browser... No bookmark

  • Can we add more than one layout in a panel

    hai everybody, i m working in a project in that a panel(with gridbaglayout) does not allow borderlayout to set in the same panel.............. if we set so then components that is placed as in borderlayout is invisible Help me out Thanx in advance sh

  • Mail wouldn't send a message, what to do?

    I have a month old MacBook (just switched from PC) it receives emails to the @mac.com account with no problem, but it would never send an email out. No Help or tutorial addresses this. Only sometimes there is an Error Message. Please help!! Thanks, E

  • Windows 2003 Memory Dump - Bug check Analysis attached

    Hi all I recently have had a Windows 2003 Standard with SP2 server crash with a memory dump  I have used WinDBG to read the file and output below can anyone shed any light on the faults, or point me in the right direction? *                        Bu