Search Fields value based on the input.

Hi Experts,
I was trying to develop a web dynpro with two  input-fields and process the logic based on the input-fields.
The scenario is,have two Input fields, the value for the first input-field a static search help is assigned and for the second input-field the value are populated on the based of the values selected in the first input-fields.
so here the values for second input-field depends on the first input-field.
Please put in your thoughts or suggestion for the scenario.
Thanks
Best Regards,
Lalitkumar.
Moderator message: wrong forum, please post again in Webdynpro forum.
Edited by: Thomas Zloch on Jul 9, 2010 1:36 PM

Please refer the following for achieving the same.
http://wiki.sdn.sap.com/wiki/display/Snippets/OVSsearchhelp

Similar Messages

  • Value based on the periodic unit price(only with pr.ctrl S) field in MatMas

    Dear all,
    There is this field in mateial master called "Value based on the periodic unit price (only with pr.ctrl S)" in accounting view 1,
    1 - May I know what is this field about (in between our company using material ledger).
    2 - May I know why the value of this field are different between our company period 6 and period 7 for this year? what contribute to it? and is it something wrong with different value between two different period or absolutely normal?
    Thanks.
    Tuff

    Hi Tuffy,
    For your 1st query:
    PUP field in Accounting 1 (if ML is active, Price Determination indicator=3) is the result of Actual Costing Run (CKMLCP) closing entry.
    For your 2nd query:
    In most of the cases the values will be different in Previous Period and Current Period. e.g.Period 6 values are the results of Actual Costing Run (CKMLCP) in 1st week of Period 6 for Previous Period (i.e. Period 5). Period 7 values are the results of Actual Costing Run (CKMLCP) in 1st week of Period 7 for Previous Period (i.e. Period 6).
    The reason for the different values: Price differences, Exchange rate differences, Price/Exchange rate differences from Low lower materials, etc.
    Thanks & Regards,
    ADI

  • Value based on the periodic unit price (only with pr.ctrl S) field in mat.

    Dear all,
    There is this field in mateial master called "Value based on the periodic unit price (only with pr.ctrl S)" in accounting view 1,
    1 - May I know what is this field about (in between our company using material ledger).
    2 - May I know why the value of this field are different between our company period 6 and period 7 for this year? what contribute to it? and is it something wrong with different value between two different period or absolutely normal?
    Thanks.
    Tuff

    Hi Tuffy,
    For your 1st query:
    PUP field in Accounting 1 (if ML is active, Price Determination indicator=3) is the result of Actual Costing Run (CKMLCP) closing entry.
    For your 2nd query:
    In most of the cases the values will be different in Previous Period and Current Period. e.g.Period 6 values are the results of Actual Costing Run (CKMLCP) in 1st week of Period 6 for Previous Period (i.e. Period 5). Period 7 values are the results of Actual Costing Run (CKMLCP) in 1st week of Period 7 for Previous Period (i.e. Period 6).
    The reason for the different values: Price differences, Exchange rate differences, Price/Exchange rate differences from Low lower materials, etc.
    Thanks & Regards,
    ADI

  • User wants to get the cumulative values based on his input.

    Hi
    I am working one FI Report; the out put values are Cumulative values for Current, Previous years. I developed and it fetches the data last 3 years Cumulative year’s data without any input FYMonth based on SAPexits and varible offsets. But user wants to put Fiscal year Month as input. So he wants get the cumulative values based on his input. For example, If his input SEP'2005(062005), Then Query gives the Output Cumulative Value (I.e., Sum of Total values of Form APR'2005 to SEP'2005)
    Please provide the solution…
    Thanks
    Mannev

    Mannev,
    You can try doing this.
    1. If the user input is fiscal period(2005006) , you can create a customer exit variable which will take the user value (i_step =2), and change the variable value to 20005001. (this is a simple code where tye last 2 digits are replaced by 01).
    if the user is entering calmonth, you can use FM - DATE_TO_PERIOD_CONVERT, to convert the month to fiscal period.
    2. You can create a rkf with restrictions on time char based on the customer exit variable and the user entered variable.
    -Saket

  • Widget to get drop down values based on user input query string

    Hi,
    I have a requirement, where in user types in some text and clicks on a search button. On button click, a drop down or some box appears which has result based on the input string (from json ). User can select one of the values in the drop down or box. User should be able to select values from drop down or box only.
    How can I achieve this. Is there any custom widget in CQ for this, or I have to write my own widget.
    Can i use SuggestField widget for this? if yes, please give some example for this widget.
    I want something similar to "authselection" widget. In case of authselection widget user names come from CQ, in this case user name will come from some other system using a CQ custom json.
    If user types "gopa" and click on search , i should be able to call a json with query parameter "gopa" & the result from the query will be in the drop down.
    Regards,
    Gopal

    Hi Gopal,
              Out of the box there are many example. You can look for siteadmin has a reference.
    Thanks,
    Sham

  • Value based on the periodic unit price (only with pr.ctrl S)

    Dear all,
    There is this field in mateial master called "Value based on the periodic unit price (only with pr.ctrl S)" in accounting view 1,
    1 - May I know what is this field about (in between our company using material ledger).
    2 - May I know why the value of this field are different between our company period 6 and period 7 for this year? what contribute to it? and is it something wrong with different value between two different period or absolutely normal?
    Thanks.
    Tuff

    Dear all,
    Does anyone know my question?
    Thanks,
    tuff

  • Dynamic structure creating based on the input parameter

    Hi all,
                 How to create a dynamic structure based on the input parameter given in the selection screen. I have a file path given and it contains three fields in common, but after that depending upon the input given the fields get changed. For example, i have 0002 infotype given in the selection screen, my file path structure should contain pernr begda endda and PS0002 structure, if the infotype is changed the PS structure has to be changed dynamcially.
    Thank you,
    Usha.

    Ans

  • Reading user input from a form within a workflow and perform actions in workflow based on the input

    Sharepoint 2013
    Need to get input from a user based on some condition within a workflow and based on the input received continue with the workflow. It can be a form with a text box and button to which i can redirect and when user enters a value and clicks on the button
    ,I should come back to the workflow and perform other processing. I should also be able to manually start this workflow from VS.
    Tried different approaches like initiation forms ,user input action of SP2010 etc all of these approaches either add some tasks to task list or force me to click on the workflow link to get input from a user.
    Any suggestions on this?

    Hello
    Thanks for the code, but I don't need an array of beans. By the way this code make a bean and an arraylist everytime it's called?
    I was looking for something like this:
    <form action="myjsp.jsp" method="post">
    ...so after submitting the result will go to the myjsp.jsp file and in the myjsp.jsp file
    <jsp:useBean id="value" class"myBean">
    <jsp:setpropertiy name"value" ....>so everytime I click the add button the values will go the mysjp.jsp file and that will set them in the javabean file. this method uses two files but I was looking for doing this in the same jsp file and not sending it to another file.
    chers
    Ehsan

  • How to Handle Blank Field Value based Condition in SmartForms

    Dear Sir,
    In SMARTFORM , we need to define a Condition that incase Field Value is not equal to  BLANK value (blank means that field is empty) then a specific text gets printed .
    Our problem is that  We do not know as how to define  Empty Field Value  based condition .
    Had it been Non Empty Field value based condition then solution was simple and could be done in following way :
    Field Value                        R                     Comparision Value
    WA_KZDKZ                      =                      'X'
    In our case , we need to give Blank (Empty Value) instead of 'X' .
    Kindly help us pl .
    Rgds
    B Mittal

    Hi,
    To handle blank field values in SMARTFORMS,
    Go to the conditions tab in your SMARTFORM and give condition there
    Field                Comparision operator          value
    <Field name>      <> Here symbol is diff     space.
    eg:
    wa_mara-matnr    =/                                   space.
    Regards,
    Santosh Kumar M.

  • Is there a way to fill a cell with a value based on the selection from another cell?

    For example: If have a drop down menu created for Cell A1 with options (Dog 1, Cat 2, Bird 3). Is there a way to fill cell A2 automatically when I select from the drop down menu.
    So if I selected 'Cat' in A1, cell A2 would automatically input the 2.

    I suggest an extensible method that allows you to add other animals:
    This method adds a small table called "Animal Lookup" that matches names (same as in the pop-up menu) with a value.
    The table on the left uses this table to retrieve the value based on the animal:
    B2=VLOOKUP(A2, Animal Lookup :: A:B, 2, 0)
    select B2 and fill down

  • Identiying the Profiles based on the input of Info provider

    Hi BW Experts,
    Right now i know the Info Provider Name.I just want to identify the profile name based on the input of Info Provider.
    Can you suggest me any TCODES for identiying the profiles.
    Thanks,
    Jelina.

    Hi,
    I'm explainning below the steps I usually take.
    You'll need to:
    1) Access RSSTOBJDIR table.
    2) Fill INFOCUBE parameter with the infocube's technical name and the AKTPS one with 'X'.
    3) Get the authorization(s) object(s) - OBJECT column.
    4) Go to the AGR_1251 table.
    5) Fill OBJECT parameter with the value(s) of step 3.
    It will be returned a list with the required profiles to access the infocubes entered on step 2.
    Regards,
    Tiago.

  • Can you mask a field value based on another?

    In XML publisher, is it possible to not display field values based on a value from another field?  If so, how can this be accomplished?
    For example, I have a field value for Address Line 1 as "123 Main Street".  I don't want the City, State, Zip, County and Country to be be displayed in the pdf output.  However, all other Address Line 1 values should be displayed.
    Thanks in advance,
    -joe

    PLD is a very basic tool.  The goal you try to achieve may not be available as I know of.
    Thanks,
    Gordon

  • ALV heading should change based on the input

    Hi Experts,
    how to change the column heading in my ALV report with respect to the input
    fields.....based on my inputs the column's heading should change....
    also , I need to display the values fetched from dbtab as
    heading in my ALV o/p. Please advice is it possible ( please don't advice in OOPS )
    and below this heading I need to display its corresponding values.
    My functional has asked me to refer t-code IE03.
    Thanks
    Karthik

    Hi there Karthik , Try something like  these .
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name       = 'ZSTPASSOS'
          i_client_never_display = 'X'
        CHANGING
          ct_fieldcat            = field_catalog.
      LOOP AT field_catalog INTO wa_catalog.
        CLEAR wa_cat_batch.
        CASE wa_catalog-fieldname.
          WHEN 'TIPOCONSTR'.
            wa_cat_batch-text_fieldname  = 'Tipo de constr. Red' .
            wa_catalog-outputlen = '20'.
            MOVE: text-005 TO wa_catalog-coltext,
                  text-005 TO wa_catalog-reptext.
            wa_cat_batch-reptext_ddic = text-005.
          WHEN 'LONGPREVRED '.
            wa_catalog-outputlen = '20'.
            MOVE: text-006 TO wa_catalog-coltext,
                  text-006  TO wa_catalog-reptext.
            wa_cat_batch-reptext_ddic =  text-006.
          WHEN 'NOACOMASOC'.
            wa_catalog-outputlen = '20'.
            MOVE: text-007 TO wa_catalog-coltext,
                  text-007 TO wa_catalog-scrtext_s.
            wa_cat_batch-reptext_ddic = text-007.
          WHEN 'TIPORAMAL'.
            wa_catalog-outputlen = '20'.
            MOVE: text-009  TO wa_catalog-coltext,
                  text-009  TO wa_catalog-reptext.
            wa_cat_batch-reptext_ddic = text-009.
          WHEN 'TIPOACOM'.
            wa_catalog-outputlen = '20'.
            MOVE:  text-008 TO wa_catalog-coltext,
                   text-008 TO wa_catalog-reptext.
            wa_cat_batch-reptext_ddic = text-008.
          WHEN 'LONGPREVACOM'.
            wa_catalog-outputlen = '20'.
            MOVE: text-010  TO wa_catalog-coltext,
                  text-010   TO wa_catalog-reptext.
            wa_cat_batch-reptext_ddic = text-010.
        ENDCASE.
        MODIFY field_catalog FROM wa_catalog
                             TRANSPORTING  outputlen  coltext reptext scrtext_l scrtext_m scrtext_s .

  • How can i dynamically select columns based on the input parameter?

    I have an input parameter which takes single numeric value.
    Based on this value i have to dynamically select table-columns .
    For eg: if i have following fields in my table :
    SEM_1
    SEM_2
    SEM_3 and SEM_4.
    And if i give numeric input as 2 , then i have to select "SEM_2" column only.
    if the input is 3 then i have to select "SEM_3" only and leave the rest of the columns.
    how do i achieve this dynamic feature in the "Select .....  From...... table...." statement in the ABAP??

    Hi,
    you should try something like this.
    TYPES: cond(72) TYPE c.
    data: condtab TYPE TABLE OF cond,
             condw type cond.
    data: lv_field(30) type c value 'SEM_'.
    write p_num to lv_field+4(1).
    condw = lv_field.
    append condw to condtab.
    SELECT (CONDTAB) FROM table INTO.....
    Kostas
    Message was edited by:
            Kostas Tsioubris

  • Auto-fill text box field values based on pulldown selection

    Trying to fill in address, city, state, zip text fields based on option selected in a select form field. The following code works great in Internet Explorer, but in Chrome or Firefox, after making selection, text fields are populated with the word "undefined."
    I've found a PHP version of Jquery script here that would probabably fit the bill.
    http://stackoverflow.com/questions/3657127/jquery-populate-text-input-from-table-based-on- select-value
    Maybe someone has a CF version they could share?
    Thanks in advance to any who can point me to a solution for this code, or a better way to accomplish my need.
    <!--- Destinations with auto-fill of address, city, etc. --->
    <script type="text/javascript">
          function selectAddress(list) {
                // assume first item is empty
                if (list.selectedIndex > 0) {
                      var locationID = list.options[list.selectedIndex].value;
                      var locationAddress = list.options[list.selectedIndex].locationAddress;
                      var locationCity = list.options[list.selectedIndex].locationCity;
                  var locationState = list.options[list.selectedIndex].locationState;
                  var locationZip = list.options[list.selectedIndex].locationZip;
                  document.getElementById('locationID').value = locationID;
                      document.getElementById('locationAddress').value = locationAddress;
                      document.getElementById('locationCity').value = locationCity;
                  document.getElementById('locationState').value = locationState;
                  document.getElementById('locationZip').value = locationZip;
    </script>
    <tr>
    <td align="right" bgcolor="#FFFFFF" valign="top">Name of Destination</td>
    <td align="left" bgcolor="#FFFFFF" valign="top">
       <select name="locationID" onChange="selectAddress(this)" class="smallforms">
                 <option value="">SELECT DESTINATION ››››››››››</option>
                 <cfoutput query="allLocations">
                       <option value="#locationName#" locationAddress="#allLocations.locationAddress#" locationCity="#allLocations.locationCity#" locationState="#allLocations.locationState#" locationZip="#allLocations.locationZip#">#locationName#</option>
                 </cfoutput>
            </select> 
          Other: <cfinput name="destinationNameOther" type="text" class="smallforms" size="75">
          <br />
           <input id="locationID" name="locationID" type="hidden"><br>
             Address:    <input class="smallforms" id="locationAddress"    name="locationAddress"    type="text" size="30"> 
             City:       <input class="smallforms" id="locationCity"    name="locationCity"    type="text" size="20"> 
             State:       <input class="smallforms" id="locationState"    name="locationState"    type="text" size="2"> 
             Zip:       <input class="smallforms" id="locationZip"       name="locationZip"       type="text" size="8"><br />
    <br />
    </td></tr>

    Thanks a million for the help Steve, the array is being created in source as follows: 
    <script type="text/javascript">
    var addresses = [
       "locationName": "Airport Park School",
       "locationAddress": "",
       "locationCity": "",
       "locationState": "WI",
       "locationZip": ""
       "locationName": "American Legion Golf Course",
       "locationAddress": "1001 Golf Club Road",
       "locationCity": "Wausau",
       "locationState": "WI",
       "locationZip": "54403"
    but I'm lost at the
    // reference as address[index].locationName...address[index].locationZip where index = 0-[arraysize-1]
    direction, and just to double check, you named the Javascript var "addresses", so the "reference as address" s/b "reference as addresses" right?
    I've tried many iterations of "onchange" adding other variables (locationCity, locationZip, etc.) but coming up empty.
    Anyway, I wish I could buy you a beer or two for the help . . .
    Here's where I'm at, which ain't working. If you have a minute to look over, it would be MUCH appreciated. Try not to laugh at my (what's probably ugly) Javascript code:
    <!--- Code from Steve @ Adobe.com CF Forum --->
    <script type="text/javascript">
    var addresses = [
    <cfset variables.fs = "" />
    <cfoutput query="allLocations">
      #variables.fs#{
       "locationName": "#jsStringFormat(locationName)#",
       "locationAddress": "#jsStringFormat(locationAddress)#",
       "locationCity": "#jsStringFormat(locationCity)#",
       "locationState": "#jsStringFormat(locationState)#",
       "locationZip": "#jsStringFormat(locationZip)#"
      <cfset variables.fs = "," />
    </cfoutput>
    // reference as address[index].locationName...address[index].locationZip where index = 0-[arraysize-1]
    </script>
    <tr>
    <td align="right" bgcolor="#FFFFFF" valign="top">Name of Destination</td>
    <td align="left" bgcolor="#FFFFFF" valign="top">
      <select name="locationID" class="smallforms"
      onChange="var locationAddress = addresses[list.selectedIndex].locationAddress;">
                 <option value="">SELECT DESTINATION &#8250;&#8250;&#8250;&#8250;&#8250;&#8250;&#8250;&#8250;&#8250;&#8250;</option>
                 <cfoutput query="allLocations">
                       <option value="#locationName#">#locationName#</option>
                 </cfoutput>
          </select> 
      Other: <cfinput name="destinationNameOther" type="text" class="smallforms" size="75">
      <br />
      <cfoutput>
       <input id="locationID" name="locationID" type="hidden"><br>
       Address:  <cfinput class="smallforms" id="locationAddress"  name="locationAddress"  type="text" size="30"> 
       City:   <cfinput class="smallforms" id="locationCity"   name="locationCity"  type="text" size="20"> 
       State:   <cfinput class="smallforms" id="locationState"   name="locationState"  type="text" size="2"> 
       Zip:   <cfinput class="smallforms" id="locationZip"   name="locationZip"   type="text" size="8"><br />
      </cfoutput>
    <br />
    </td></tr>
    Thanks again Steve . . . much appreciated!

Maybe you are looking for