F4 help in dropdownlistbox and values in input fields

I need a F4 help in dropdown list box. Actually i have 2 more input fields alongwith one dropwdown list box. As per my problem
if i select one value from F4 help then corresponding other values should bepopulated into input fields. For example in F4 help
of dropdown box i am getting single selection containg three values "15  LIMAPLANT     45802" after selecting it the "15" should
be only input entry to dropdownlist box, values "LIMA PLANT" and "45802" should be input entry to other two input fields.

Look at the below code:
<b>Oncreate:</b>
        entry-name = '15'.   entry-value = '15'.   APPEND entry TO itab.
        entry-name = 'LIMAPLANT'. entry-value = 'LIMAPLANT'. APPEND entry TO itab.
        entry-name = '45802'.  entry-value = '45802'.  APPEND entry TO itab.
<b>Layout:</b>
     <htmlb:dropdownListBox id                = "myid"
                              nameOfKeyColumn   = "NAME"
                              nameOfValueColumn = "VALUE"
                              onSelect          = "myclick"
                              selection = "<%= v_selected %>"
                              table             = "<%= itab %>" />
    <htmlb:inputField id      = "myinp1"
                            value   = "<%= v_field1 %>"  />
    <htmlb:inputField id      = "myinp2"
                            value   = "<%= v_field2 %>"  />
<b>Page attribute:</b>
entry     TYPE     IHTTPNVP
itab     TYPE     TIHTTPNVP
<b>To capture the event:
OnInputprocessing:</b>
DATA: event TYPE REF TO CL_HTMLB_EVENT.
  event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
  IF event->id = 'myclick'.
CALL METHOD request->get_form_field
      EXPORTING
        name  = 'myid'
      RECEIVING
        value = v_selected.
clear: v_field1, v_field2.
Loop at itab into entry where name NE v_selected.
if v_field1 is initial.
v_field1 = entry-value.
  else.
  v_field2 = entry-value.
  endif.
endloop.
endif.
This will solve your problem..
<b>* Reward each useful answer</b>
Raja T

Similar Messages

  • Not allows to assign default value to input field using values in datastore

    Hi Masters,
    Consider that I have one input field in a form. I should assign default value to it. I should assign to it, the value which i have stored in a datastore. When i run the application, if i give default value as 123 ,then it is working fine i.e., it is showing 123 in the textfield in form , but if i give the default value as STORE@ProductId, then it is not displaying that value in the form.
    Please help me out.
    Thanks & Regards,
    Kaushik Sreeram

    Hi,
    i faced this problem and here's what i concluded:
    There's no way you can set default value for input field dynamicly, since the default value of input control is caculated only once (i think on initializing of the iView). The input control and the data store are initialized at the same time, STORE@productID is empty that time...
    If you don't need to recieve value through the input field you're trying to initialize, but just to display the value from the store - I suggest you try using another control - Expression Box. It's value is calculated continiously, just like the Label's, and you can refere to it later.
    Regards,
    Yulia

  • User can not enter value in INPUT field.

    hi experts,
    i have a table control on the screen which have one input field which user needs to fill. But as per he business req. we don't want him to enter any value, values should be enter from the search help only.
    If i make input field Read only it comes in gray color and user get confused. tell me some way so i can create white input field in which user can not enter values from key board.
    Please suggest...
    points will be awarded...

    >
    ashish gupta wrote:
    > hi experts,
    >
    > i have a table control on the screen which have one input field which user needs to fill. But as per he business req. we don't want him to enter any value, values should be enter from the search help only.
    >
    >
    > If i make input field Read only it comes in gray color and user get confused. tell me some way so i can create white input field in which user can not enter values from key board.
    >
    >
    > Please suggest...
    >
    > points will be awarded...
    This you cannot control. because if it is enabled only in that case you can see it white.
    do that thing as suggested by basakar to add a new input field just besides first one with zero padding.
    One workaround is use an image instead of real input field. the image should have the input field as image.
    and besides it create the input field with width 0 and padding also zero.
    i think this can fulfill the requirement.
    Thanks
    sarbjeet singh

  • Month and Year in Input Field

    Hi Gurus,
    I m Using SPMON(Period to analyze month and year) as input Field in my BSP Application.
    If i Click the Input Help i want to call a Function module "popup_to_display_month" ..
    How to acheive this.
    I have used onValueHelp attribute in which it will call only the Javascript.
    Please guide me...
    Thanks n Regards
    Aravindh

    Hi Aravindh,
    First thing if this FM 'POPUP_TO_SELECT_MONTH' gives a popup in SAPGUI , you can not use it in BSP since SAP GUI popups are not supported in BSP.
    I have used onValueHelp attribute in which it will call only the Javascript.
    If triggering a server side event using onValueHelp solves you  problem that you can do it as follows..
    1)In the layout somewhere use a blankimage that will not be visible in UI.
    2)Suppose ID of this image is 'blank'
    now call javascript function for onValueHelp
    and in this javascript function use
    dacument.getElementById('blank').click();
    change dacument to document.
    This will trigger a server event which you can process in onInputProcessing and call the FM.
    Regards,
    Anubhav

  • AT SELECTION-SCREEN ON VALUE-REQUEST FOR not input value in input field

    Dear All,
    I make search help for field ARBPL in selection screen are not excepted selected value.
    Code is
    SELECT-OPTIONS:  p_arbpl FOR zdmde-arbpl MODIF ID two.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_arbpl-low.
    REFRESH sh_arbpl.
    SELECT * from crhd into CORRESPONDING FIELDS OF TABLE sh_arbpl.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
         RETFIELD               = 'P_ARBPL'
         DYNPROFIELD            = 'P_ARBPL'
         VALUE_ORG              = 'S'
       TABLES
         VALUE_TAB              = sh_arbpl.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_arbpl-high.
    REFRESH sh_arbpl.
    SELECT * from crhd into CORRESPONDING FIELDS OF TABLE sh_arbpl.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
         RETFIELD               = 'P_ARBPL'
         DYNPROFIELD            = 'P_ARBPL'
         VALUE_ORG              = 'S'
       TABLES
         VALUE_TAB              = sh_arbpl.
    Please tell how to input selected field from search help into input field in both low and high.
    Would appreciate your reply .
    Regards,
    Pooja

    Hi Pooja,
    For getting the response back from the user selection , please get the return code too. Before that instead of directly using the table crhd structure.. please do create a type declaration of that table , make sure that the field that you wanted to get using search help be specified at last of declaration type like this
    TYPES: BEGIN OF ty,
       OBJTY TYPE CR_OBJTY,
            ARBPL TYPE ARBPL,
    END OF ty.
    this is because the return parameter t_rtn will holds the last value of type which been selected by user.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD               = 'P_ARBPL'
          DYNPROFIELD            = 'P_ARBPL'
          VALUE_ORG              = 'S'
        TABLES
          VALUE_TAB              = sh_arbpl
          return_tab             = t_rtn.
    LOOP AT  t_rtn INTO x_rtn .
       ENDLOOP.
    try executing this code.
    TABLES crhd.
    TYPES: BEGIN OF ty,
       OBJTY TYPE CR_OBJTY,
            ARBPL TYPE ARBPL,
       END OF ty.
    DATA: sh_arbpl TYPE TABLE OF ty.
           DATA: dynpfields TYPE TABLE OF DYNPREAD,
    x_dynpfields TYPE dynpread,
    t_rtn TYPE STANDARD TABLE OF DDSHRETVAL ,
    x_rtn TYPE  DDSHRETVAL.
    SELECT-OPTIONS:  p_arbpl FOR crhd-ARBPL MODIF ID two.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_arbpl-low.
    REFRESH sh_arbpl.
    SELECT  * from crhd into CORRESPONDING FIELDS OF TABLE sh_arbpl WHERE werks eq '1000'.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD               = 'P_ARBPL'
          DYNPROFIELD            = 'P_ARBPL'
          VALUE_ORG              = 'S'
        TABLES
          VALUE_TAB              = sh_arbpl
          return_tab             = t_rtn.
    LOOP AT  t_rtn INTO x_rtn .
       ENDLOOP.
    x_dynpfields-fieldname = 'P_ARBPL-LOW' .
       x_dynpfields-fieldvalue = x_rtn-fieldval.
       APPEND x_dynpfields TO dynpfields.
       CALL FUNCTION 'DYNP_VALUES_UPDATE'
         EXPORTING
           dyname                     = sy-cprog
           dynumb                     = sy-dynnr
         TABLES
           dynpfields                 = dynpfields
    *   EXCEPTIONS
    *     INVALID_ABAPWORKAREA       = 1
    *     INVALID_DYNPROFIELD        = 2
    *     INVALID_DYNPRONAME         = 3
    *     INVALID_DYNPRONUMMER       = 4
    *     INVALID_REQUEST            = 5
    *     NO_FIELDDESCRIPTION        = 6
    *     UNDEFIND_ERROR             = 7
    *     OTHERS                     = 8
    Regards,
    Sivaganesh

  • Value in input field of Hier.Node variable displays tech.name of the IO

    Dear all,
    we are facing an issue with Hierarchy node variable(auth.) in the selection screen of webReports.
    After selecting a hierarchy node value,it is displayed along with + sign and tech.name of the Infobject in input field .
    example: lets say we have Country Hierarchy and i have selected Country group 'NAM' node..This is displayed as "+NAM(ZCOUTRYGRP)". where ZCOUTRYGRP is tech.name of the InfoObject Country group.
    Expected value is just "NAM" which is Key .Does anyone have solution for this? This Problem occuers when we select Level 01 value of hierarchy and we do have hierarchy node values from same INfoObject.
    Regards,
    Murali.
    Edited by: Muralidhar c on Aug 1, 2009 1:24 PM
    Edited by: Muralidhar c on Aug 3, 2009 10:40 AM

    it works as designed.found in sap help.

  • How to set default value to input field

    Hi Experts,
    I need to set default value to one input field for the transaction crmd_order as a screen variant. Guide me in doing that.
    Regards,
    Harish

    Using the transaction SHD0, you can define the screen variant. While defining the sceen variant, you are allowed to define the default values.
    Using screen variant, for the main transactoin, you can also define the transaction variant and you can use this as an independent transaction.

  • How to Fill value in Input fields before displaying ADOBE FORM

    Hi to all,
    Please can anyone tell me how to fill the entry in ADOBE FORM before displaying?
    I have written a program to generate ADOBE FORM, but I need while displaying ADOBE FROM some input field should already be filled by value and can not be changed.
    Please can anyone tell me how to do that in program?
    Below is the program.
    DATA: fm_name           TYPE rs38l_fnam,
            fp_docparams      TYPE sfpdocparams,
            fp_outputparams   TYPE sfpoutputparams.
    Parameters: p_pdf_form_name type fname.
      fp_docparams-langu   = 'E'.
      fp_docparams-country = 'IN'.
      fp_outputparams-preview = 'X'.
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = fp_outputparams
        EXCEPTIONS
          cancel          = 1
          usage_error     = 2
          system_error    = 3
          internal_error  = 4.
      CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
          i_name     = p_pdf_form_name
        IMPORTING
          e_funcname = fm_name.
      E_INTERFACE_TYPE           = E_INTERFACE_TYPE
      CALL FUNCTION fm_name
        EXPORTING
          /1bcdwb/docparams        = fp_docparams
      IMPORTING
        /1BCDWB/FORMOUTPUT       = fp_outputparams
        EXCEPTIONS
          usage_error           = 1
          system_error          = 2
          internal_error           = 3.
      CALL FUNCTION 'FP_JOB_CLOSE'
       IMPORTING
        E_RESULT             =
        EXCEPTIONS
          usage_error           = 1
          system_error          = 2
          internal_error        = 3
          OTHERS               = 4.
    I shall be thankful to you for this.
    Regards
    Pavneet Rana
    Edited by: pavneet rana on Jul 25, 2011 2:57 PM

    Hello,
    you need to provide the information via the interface, which you create for the Adobe form.
    And then pass this values via the following function module inside your generation report.
    CALL FUNCTION fm_name
    check standard report : FP_EXAMPLE_01 as an example!

  • How to compare value in input field to value in database?

    Hi all. I need to clear up if the value in the input field (e.g. input_field) is equal to at least one record in the field (e.g. name) in database table (e.g. customers), or not. The code should be like this:
    IF...
      message001.  "(there's such a record in database)
    ELSEIF...
      message002.  "(there's no such record in database)
    ENDIF.
    thanks all.

    Hi,
    I think u r asking about validating the selction screen and displaying a mess if that input is not in the DB right?
    AT SELECTION-SCREEN ON s_matnr.
    *Validate material no details
      PERFORM validate_matno.
    FORM validate_matno.
      SELECT SINGLE matnr INTO v_matnr
             FROM mara
             WHERE matnr IN s_matnr.
      IF sy-subrc NE 0.
        MESSAGE i128.
        LEAVE LIST-PROCESSING.
      ENDIF.
    ENDFORM.
    Make sure that u are validating against the header table.
    say eg if u wnat t validate matnr in marc, then do as below.
    SELECT-OPTIONS: s_matnr FOR  marc-matnr.                  "Material No
    AT SELECTION-SCREEN ON s_matnr.
    *Validate material no details
      PERFORM validate_matno.
    FORM validate_matno.
    DATA: v_matnr LIEK mara-matnr.
      SELECT SINGLE matnr INTO v_matnr
             FROM <b>mara</b>
             WHERE matnr IN s_matnr.
      IF sy-subrc NE 0.
        MESSAGE i128.
        LEAVE LIST-PROCESSING.
      ENDIF.
    ENDFORM.
    Dont select from marc.
    Hope this is clear.

  • Ctrl+right Click and hide a input field

    Hi Experts,
    In ep7.0 Sp11, ERP2005, couple of fields in ess should be hided. i have the role content admin assigned and went to the role and accessed the iview in the content admin, <b>"ctrl+right click"</b> on the field and hided the field. fine, the fields are hided for my user.
    when a user accesses this application, the input field again pops up.
    are <b>ctrl+right click</b> changes to any iview transportable?
    Regards

    Thank you.
    The problem is I am trying to do at the Role level that is copied from the Standard Role.
    This should be done at the Standard iView level as the URL of PCD page is looking at the Standard iView (content provided by sap>end user content>......)
    Thanks for the help.

  • How to set default value to input field dynamically

    Hello Experts,
    I am using adobe forms inside Webdynpro Java.
    Adobe form is having few input fields where at run time i want to assign default value to those fields.
    How can i do it ?
    Thanks in advance,
    Vinay
    Edited by: VINAY on Feb 24, 2011 6:39 AM

    Hi Mate,
    Just set the value to the webdynpro context fields on view init.
    if its like that will override the values entered by use on the form.
    just check if the default value is equall to the field value if yes leave it, if not dont touch that field.
    does this make sense...?
    Cheers,
    Sai

  • Not getting field value in Input field of field exit

    Hi all
       I  am using field exit for data element GWLDT in transaction code IE02. But in this field exit I am not getting the value entered in the field "Begin guarantee date(GWLDT)" in the INPUT field of field exit.How I can get the value in the INPUT field of field exit?
    Regards
    Deepak

    Use this statement in source code.
    output = input.

  • How to mask and format an input field at the same time?

    Dear Experts,
    I need to have an input field, which has the following behavior:
    1. The input field accepts only number, i.e. characters other than number are ignored (not displayed on the text field).
    2. The number is automatically formatted to ###,###,### as the user enter the number.
    Example as the user enter 1-2-3-4-5-6-7, the sequence of number displayed in the text field is:
    1
    12
    123
    1,234
    12,345
    123,456
    1,234,567
    I have done the following:
    import java.awt.*;
    import javax.swing.*;
    import java.text.*;
    import javax.swing.text.*;
    class FormattedTFDemo {
         NumberFormat cf;
         JLabel jlab;
         JFormattedTextField jftfSalary;
         JFormattedTextField jftfEmpID;
         JButton jbtnShow;
         public FormattedTFDemo() {
              JFrame jfrm = new JFrame("JFormattedTextField");
              jfrm.getContentPane().setLayout(new FlowLayout());
              jfrm.setSize(240, 270);
              jfrm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              try {
                   MaskFormatter mf = new MaskFormatter("###,###,###");
                   jftfEmpID = new JFormattedTextField(mf);
              } catch (ParseException exc){
                   System.out.println("Invalid Format");
                   return;
              jftfEmpID.setColumns(15);
              cf = new DecimalFormat("###,###,###");
              jftfSalary = new JFormattedTextField(cf);
              jftfSalary.setColumns(15);
              jftfSalary.setValue(new Integer(7000));
              jfrm.getContentPane().add(new JLabel("First field"));
              jfrm.getContentPane().add(jftfEmpID);
              jfrm.getContentPane().add(new JLabel("Second field"));
              jfrm.getContentPane().add(jftfSalary);
              jfrm.setVisible(true);
         public static void main(String[] args) {
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        new FormattedTFDemo();
    }The "First field" adopts no. 1 behavior, i.e. it does not allow any character other than numbers, but the "," are always displayed and the number displayed as I enter 1-2-3-4-5-6-7 are:
    1 , ,
    12 , ,
    123, ,
    123,4 ,
    123,45 ,
    123,456,
    123,456,7
    which is not according to behavior no. 2
    The "Second field" displayed 1,234,567 only after the focus left the text field and not while typing. Moreover, characters other than number can still be displayed and only rejected after the focus left the text field.
    I need a guide of what text field and what filter / format / mask I should use. Am I correct to use JFormattedTextField? Is the only way to accomplish this by using JTextField and create my own PlainDocument for the textfield, where
    I rebuild the displayed output after each character is entered?
    Thanks for any advice,
    Patrick

    So exactly what do you want the user to put in? and what do you want to see?
    I need to have an input field, which has the following behavior:
    1. The input field accepts only number, i.e. characters other than number are ignored (not displayed on the text field).
    2. The number is automatically formatted to ###,###,### as the user enter the number.
    Example as the user enter 1-2-3-4-5-6-7, the sequence of number displayed in the text field is:
    1
    12
    123
    1,234
    12,345
    123,456
    1,234,567The user should type only numbers and when he types other than numbers, the field ignore it.
    What I want to see, as the user, for example, types 1-2-3-4-5-t-6-7 is:
    1
    12
    123
    1,234
    12,345
    <beep / ignore> (because t is invalid)
    123,456
    1,234,567
    Thus, I need a guide of what swing components should I use to accomplish this task. If you can give me the code, that will be perfect.
    Hope you can advise me,
    Patrick

  • Search for recordsgreater than 45 days and between user input fields

    Hi,
    How can I query where the
    Status id '3' greater than 45 days from the setup_date. (which is the sysdate)
    select ppcontract from proj_track where status_id = '3' and SETUP_DATE >= ADD_months (sysdate, +1.5)
    Also, How can I put a search criteria to the query which selects the creation_date between the beginning date (user input field) and the end date (user input field)
    I guess it would be like this, but it doesn’t work
    and creation_date between :p12_start and :p12_end
    Thank you in advance. Rav
    Message was edited by:
    user486969

    Try out this.
    Where START_DATE = Trunc(Sysdate) - 45
    Assuming both input fields are text/varchar2 type,
    DT Between To_Date(BEGIN_DT,'MM-DD-YYYY) And To_Date(END_DT,'MM-DD-YYYY)

  • Value Help Not Working and Values Not Showing in BPS0

    I have custom characteristics transported from a BW 3.5 system to a NW2004s.  I have maintained master data and activated master data.  When I try to do the value help selection from inside maintain, I don't see the characteristic values.  In BPS0 the values are not registering and the variables are failing cause they say there are no master data values.  How to resolve?
    Thanks,
    Cherie

    I also noted the anomaly only occurs with custom characteristics, transported from a 3.5 system to a NW 2004s system and have NO attributes assigned to the characteristic. Those custom ones that have attributes show up fine.

Maybe you are looking for