Value help in a disabled field?

Hi all,
In a web dynpro Abap application I want to add a field with a search help(OVS).
The thing is that I don't want the user to enter data in the field but he should be able to select a value using the F4 functionality.
Do you think that it is possible with Abap Web Dynpro? If yes, how?
Thanks a lot for your help.
kr
karim

Up to my knowledge, I don't think it's possible in WDA. Alternatively, you can do one thing;
Create an Input field as read only mode and create a button say Get values after this Input field. In the Action event of this button you can call a F4 and then select the entry and pass this value in the Input field.
Hope it works for you.

Similar Messages

  • Dynamic value help for a table field to fill two fields, how to?

    Hi all gurus,
    In SRM 7 I defined a dynamic value help for a single field (ZZ_PROLE_R3) of my header custom table.
    That's the code from WDDOMODIFYVIEW in the webdynpro /SAPSRM/WDC_DODC_CT, view V_DODC_CT:
    DATA: lo_tabnode        TYPE REF TO IF_WD_CONTEXT_NODE.
          DATA: lo_tabnode_info   TYPE REF TO IF_WD_CONTEXT_NODE_INFO.
          DATA: tab_value         TYPE WDR_CONTEXT_ATTR_VALUE_LIST,
                wa_value          TYPE WDR_CONTEXT_ATTR_VALUE.
          lo_tabnode = wd_context->GET_CHILD_NODE( name = 'THCUS' ). "the custom table node
          lo_tabnode_info = lo_tabnode->get_node_info( ).
          wd_this->GET_VALHELP_ZZ_PROLE_R3( EXPORTING iv_guid = lv_guid
                                            IMPORTING ZZ_PROLE_R3_VALHELP = tab_value ). "this method returns the dyn value table
          lo_tabnode_info->set_attribute_value_set( name = 'ZZ_PROLE_R3'
                                                     value_set = tab_value ).
    The method GET_VALHELP_ZZ_PROLE_R3 dynamically builds the value help table tab_value; such table is made up by two fields:
    value : contains the value of the field
    text   : contains a description of the value
    The above solution works; now I'd like to enhance it. The custom table THCUS contains also a field called ZZ_PROLE_R3_DESC, which represents the description of ZZ_PROLE_R3. It is, exactly, the TEXT field in tab_value.
    So I'd like to do as follows:
    - the user clicks on the search help for ZZ_PROLE_R3 field of the table;
    - the above described value help appears;
    - after the selection, both ZZ_PROLE_R3 and ZZ_PROLE_R3_DESC are filled with the selected couple value - text chosen from the value help.
    Could anyone help me achieving such a behaviour?
    Again, a little request... when I open the above value help dialog box, the window itself has a label "Floorplan Manager application for OIF.." that obviously I'd like to redefine (e.g. "Role selection value help"). Is there any way to do that?
    Thanks in advance

    Chris Paine wrote:
    It seems to me - given that your code is in wddomodifyview that you are trying to have different dropdowns per row
    - I'm not sure where you are populating lv_guid - but I'd guess it is an attribute of the row selected? If it isn't then I can't see any reason that you would do this code in wddomodifyview and not wddoinit.
    Hi Chris and thanks for your help,
    lv_guid is the GUID of the document's header; I need to pass it to the method that populates my value help table because the values in it are derived from some fields on the document. (the situation actually is more complex; there's an RFC call on the backend for which the document is intended for to retrieve the data that populate the value help...).
    I'm quite unexperienced on webdynpro and terminology; if dropdown menus are fixed selection option that appears on a field, I guess this is not my case. I did a pair of screenshot to provide an idea of what the solution by now is, and what "I would like to have":
    [Pre-selection (F4 icon on the field in table)|http://imagebin.ca/view/npIsaqF.html]
    [Value Help popup for the field ZZ_PROLE_R3|http://imagebin.ca/view/8fZUh3T.html]
    [Result by now |http://imagebin.ca/view/3PaqdvE.html]
    [Result I'd like to have.|http://imagebin.ca/view/dExR0J.html]
    Chris Paine wrote:
    However - by your comment on the "value help dialog box" I am guessing you are using an input field? If this is the case then I would strongly suggest that you change/enhance the structure of the context node THCUS (btw, better coding practise to refer to it as wd_this->wdctx_thcus when using the get child node construct) so that you refer to an actual SAP ddic search help, if you then associate in the structure the value and text fields then populating the text field should happen automatically. Also you'd have the nice side effect that your value help dialog would be named after the associated ddic search help.
    Thanks for the code suggestion, I'll apply that. For what concerns the context node THCUS... It is, by standard, a node which I can't explictly find in the context for the view V_DODC_CT. The problem is that ZZ_PROLE_R3 and the corresponding description field ZZ_PROLE_R3_DESC of the table must be filled with data retrieved dynamically @ runtime from the backend. So I guess I can't populate a val help referring to a dictionary table/field; I'd rather do as follows:
    - retrieve what's the target backend for the document (to do so, I have to process the document .. that's why the header guid passed to my method);
    - RFC call to a custom method that extracts possible values for the specific backend;
    - bind the ammissible values to the value help.
    Chris Paine wrote:
    I realise that this is rather a lot - so if you have any specific question please do respond - hopefully I or someone else will be able to clarify.
    Thanks again for your help; additional info as well as code examples would be highly appreciated

  • Implementation of F4 value help for a search field which is an EEWB field

    Hi...
                I am trying to create a F4 value help for a search field which is an eewb field.The f4 value help jus need to be a pop up containing the values of the field existing in the system.Since this is a search field the GET_V method cannot be used. I tried implementing it by creating a search help and then using it in the GET_DQUERY_VALUEHELPS method.But the problem when u use the search help is that all the values including the null values and duplicate entries will be populated when f4 is clicked.Is there any way to filter the values that get populated when f4 is clicked?If any other method can be used to implement the functionality please let me know..Thanks in advance....

    Hi,
    the GET_V methods worked for me most of the time. Even in advanced searchs. Only time they do not is if there is a different aproach considered in the GET_DQUERY_VALUEHELPS.
    As the GET_V_ you created obviously was called I suppose you found the correct place to Populate it to be used in the search.
    I do not know what the problem with the NULL values and duplicate entries is you talked about, but it sounds to me the creation of your valuehelp class is flawed. Not the integration into the UI.
    Maybe have a look at SAPs' standard implementations of Search Components. You should get a feeling for how search helps work. See. BT111S_OPPT, BP_HEAD_SEARCH
    cheers Carsten

  • Value help for a custom field, ENTER press after selection wanted

    Hi all gurus,
    my requirement is quite simple; in an SRM 7 system, a value help (control table Z_V_EKORG) is associated to a custom (input) field, ZZ_EKORG.
    By pressing the search button on it, some fixed values appears in a list but then, after the selection of a value, no refresh/badi is triggered.
    To trigger a refresh (and passage thru CHANGE and CHECK BADIs) the user is forced to press the ENTER key on the inputfield.
    I'm wondering if there's a way to automatically set an action/event (e.g. ENTER key pressed after input) to the selection from the list; I guess it should be a property of the selection for that value help, but I cannot find explicit information on how to do that.
    Waiting for your suggestions and support, thanks

    Hi Matteo,
    Would recommend you to handle this refresh in the post exit of the WDMODIFY method.
    Regards,
    Murthy

  • Personalised Value Help in Select-Option field WD ABAP

    Hi
    I would like to know how I could provide the user with generic value help. I am using the Select Options in a Web Dynpro(ABAP) Application.
    Regards
    Faaiez

    Hi
    The key word here is "generic value help". This means the values that I want to fill the drop down with changes all the time based on various criteria. I need to fill the help values within the ABAP code based on the values in internal tables.
    Regards
    Faaiez

  • Value Help for Date in Z date field

    Hi,
    I am working on CRM 7.0 and am pretty new to the system.
    My query is that i have created an assignment block with value attributes created in a Z table. In that particular Z table there is one date field.
    I need to assign value help to that particular field and i am not able to do so.
    Can anyone please help me in this regard.
    Thanks in advance for the time you will be investing in answering my cause.
    Best Regards,
    Saurabh Garg

    Hi,
          Make sure that the technical field type is a date type(say, DATS). Then also make sure that you have a m_getter for that attribute. For example,
    method GET_M_START_DATE.
        DATA: attr    TYPE dats,
              dref    TYPE REF TO data.
        GET REFERENCE OF attr INTO dref.
        metadata ?= if_bsp_model_binding~get_attribute_metadata(
             attribute_ref  = dref
             attribute_path = attribute_path
             name           = 'START_DATE'                      "#EC NOTEXT
    *      COMPONENT      =
             no_getter      = 1 ).
    endmethod.
    Regards,
    Arun Prakash

  • Freely-programmed value help for a single ALV cell

    Greetings everyone,
    I have a freely-programmed value help that works beautifully when attached to the context element of a single field, but now I'm needing to use it in an ALV for a specific cell.  Is there a way to shut off the dropdown for all of the rows (cells) in the column where I don't need it?  Or, is there an appropriate workaround that can deliver the same results?
    I've found several posts that address similar issues, but nothing for this exact problem.
    Thanks,
    Jason Block

    I take it from reading your description what you want is a little more complicated than just controlling the read-only property on the input field. If I read you properly you still want to have all the cells in a column to be open for input, just on some of them you want to disable the value help.  Is that correct?  See these screen shots for clarification:
    If you focus on the the input field in the first row, you get the value help:
    http://www.flickr.com/photos/tjung/2714133068/
    However if you go to the second row and focus on the same input field in this column, you don't get the value help:
    http://www.flickr.com/photos/tjung/2714133094/
    If this is what you want, then buckel up because this was a challenging one.  The problem is that the value help specification is not done at the UI element level, but instead at the context attribute level.  Therefore it can't be as simple as controlling a property on the inputField itself.  What you will need to do is extend the context node that you have bound to the ALV.  You need to add a second version of the attribute that is bound to your input field.  In this second version you can set the value help specification to Disabled:
    http://www.flickr.com/photos/tjung/2713320505
    Notice from the screen shot that I also added another attirbute called CVAR (type STRING).  We will need that later.  It will be used to store which cell variant show be used on a particular row.
    Now we must go to the place in your code where you fill the context node with data.  You will need to copy the data from your primary attribute to your secondary one.  In my case I was copying the values from CARRID to CARRID2.  Of course for update, you would need to merge the data back together before saving it back to the database.  I also set a simple odd/even pattern of controller in the cell variant.  I assume you will have some actual business logic that controls this:
    data odd type boolean value abap_true.
       loop at lt_f_r_sflight[] assigning <ls_f_r_sflight>.
        clear ls_c_r_sflight.
        move-corresponding <ls_f_r_sflight> to ls_c_r_sflight.
        move <ls_f_r_sflight>-carrid to ls_c_r_sflight-carrid2.
        if odd = abap_true.
          odd = abap_false.
        else.
          odd = abap_true.
          ls_c_r_sflight-cvar = 'NOVH'.
        endif.
        insert ls_c_r_sflight into table lt_c_r_sflight[].
      endloop.
      lo_r_sflight->bind_table( lt_c_r_sflight[] ).
    Next is the logic in the initialization of the ALV.  We will need to create two input fields - each bound to the different context attributes. We will make the one the primary cell editor.  The other will become the cell editor of the cell variant.  We then tell the column where it can get its cell variant value from:
    DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
      lo_cmp_usage =   wd_this->wd_cpuse_alv( ).
      IF lo_cmp_usage->has_active_component( ) IS INITIAL.
        lo_cmp_usage->create_component( ).
      ENDIF.
      DATA l_salv_wd_table TYPE REF TO iwci_salv_wd_table.
      l_salv_wd_table = wd_this->wd_cpifc_alv( ).
      DATA l_table TYPE REF TO cl_salv_wd_config_table.
      l_table = l_salv_wd_table->get_model( ).
      l_table->if_salv_wd_table_settings~set_read_only( abap_false ).
      DATA input1 TYPE REF TO cl_salv_wd_uie_input_field.
      DATA l_column TYPE REF TO cl_salv_wd_column.
      l_column = l_table->if_salv_wd_column_settings~get_column( 'CARRID' ).
      CREATE OBJECT input1
        EXPORTING
          value_fieldname = 'CARRID'.
      l_column->set_cell_editor( input1 ).
      DATA input2 TYPE REF TO cl_salv_wd_uie_input_field.
      CREATE OBJECT input2
        EXPORTING
          value_fieldname = 'CARRID2'.
      DATA l_cv TYPE REF TO cl_salv_wd_cv_standard.
      CREATE OBJECT l_cv.
      l_cv->set_key( 'NOVH' ).
      l_cv->set_editor(  input2 ).
      l_column->add_cell_variant( l_cv ).
      l_column->set_sel_cell_variant_fieldname( 'CVAR' ).

  • Selection Screen - Text instead of Key in the value help

    Hi ,
    I have implemented selection options for Web dynpro.
    The value help for the selection fields displays the key of the selected value (standard).
    I would like to know if there is an option to display the text (instead of the key) in the field.
    Key Text
    01    AAAA
    02    BBBB
    03   CCCC
    So if I select say - 01 and 03 in the value help, Can I display AAA, CCCC in the field (or next to the field)
    Thanks,
    Sri
    Edited by: Sri on Sep 29, 2010 8:19 AM

    HI,
    You can dispaly it as dropdown and it shown the text:Use the beloe code refernce;
    DATA lt_valueset TYPE wdy_key_value_table.
      DATA ls_valueset LIKE LINE OF lt_valueset.
      ls_valueset-key = '1234'.
      ls_valueset-value = '1234test'.
      APPEND ls_valueset TO lt_valueset.
      ls_valueset-key = '1235'.
      ls_valueset-value = '1235test'.
      APPEND ls_valueset TO lt_valueset.
      ls_valueset-key = '1264'.
      ls_valueset-value = '1236test'.
      APPEND ls_valueset TO lt_valueset.
      CALL METHOD wd_this->lo_select->add_selection_field
        EXPORTING
          i_id = 'CAND_ID'
      it_result                    = lt_range_table
          i_as_dropdown                = abap_true
          it_value_set                 = lt_valueset
    *      i_read_only                  = ABAP_FALSE
    *      i_dont_care_value            =
    *      i_explanation                =
    *      i_tooltip                    =
    Regards,
    madhu

  • Java Script Error while deploying a Model with Value Help

    Hi,
    I am using EP 7.0 SP 10.
    I am trying to deploy a model which includes the Value Help for an Input field, and i am trying to deploy this model.
    The model compiles successfully, but gives a Java Script Error while deploying the model,
    ! Error on Page
    When Click on this java script error, it shows that ,
    Line:14985
    Char 1: Error
    object does n't support this property or method.
    code
    URL: <serverhost>/VCRes/WebContent/VisualComposer6.0/bin/223334.htm?24102006.1712.
    The Same model works in dev server, and it fails in the production server.
    Thanks and Regards,
    Sekar

    Hi jakob,
    Thankyou for your quick response.
    I did a basic model with the help of a documentation which i got from this forums.I created a iView and from there i used Bapi "BAPI_SALESORDER ".
    I created a Input Form and a outpot form (table view).I tested model and am able to get the output.but when i try to deploy it is giving me the error.
    And i think am not paring any formulas here.
    Please guide me.
    thanks and regrads
    Pradeep.B

  • Value Help in Interactive Adobe Form in Web Dynpro

    I have to provide a value help for certain Fields in Interactive Adobe Form using Web Dynpro ABAP. I have managed to get the Value Help Popup for the fields using Java Script in Adobe, but the problem is that whenever I select the Value from the Value Help, the selected value in not getting populated in the field....
       Please let me know the solution in case any one of you come across such kind of requirement.

    Priyanka:
    Can you let me know the steps on how to provide value help in interactive forms?
    Thanks
    Vijai

  • Value help.. in version 7.0?

    Hello all,
      I have VC 7.0 installed in the system. We have an option to provide the value help, for a particular field.
    In the wizard, when we select the data service(i.e, RFC), it says not aple.plicab
    Later, we get a value help button, but no value appears,even tho it enters the RFC.
    Can someone tell me on the kind of RFC, for a value help fieldi.e, kind of import and export details for the RFC.
    Regards,
    Sharath

    Hai,
    if your providing value help for particular field u have select key and value field . then only the data will pouplate in the value help.
    Regards ,
    Venkat

  • Problem in Value help

    I created a custom component 'ZTEST23' it act sas pop-up screen in my component for the field LAST NAME when I click the F4 the pop-up is generated but when i double click on the value,it is not coming back to to last name and pop-up is not closing automatically? <<text removed>>
    Thanks & Regards,
    Chetan Agali.
    Edited by: Matt on Oct 5, 2011 9:35 AM

    Thanks for your suggestion,
    To Add value help I reffered cpgas_advsearch field empl resp, I am sending my code please check it and if you found any error let me know.
    method: get_dquery_defination.
    FIELD-SYMBOLS: <rs_result> LIKE LINE OF rt_result.
      CALL METHOD super->get_dquery_definitions
        RECEIVING
          rt_result = rt_result.
      LOOP AT rt_result ASSIGNING <rs_result>.
        CASE <rs_result>-field.
          WHEN 'CPLASTNAME'.
            <rs_result>-server_event = 'LAST_NAME_F4_OPEN'.
             WHEN OTHERS.
        ENDCASE.
      ENDLOOP.
    endmethod
    method EH_ONLAST_NAME_F4_OPEN.
       cl_thtmlb_util=>get_event_info(
        EXPORTING
          iv_event = htmlb_event_ex
        IMPORTING
          ev_index  = mv_vh_index ).
      IF lastname_valuehelp_popup IS NOT BOUND.
        DATA lv_title TYPE string.
       lv_title = cl_bsp_runtime=>get_otr_text( 'CRM_UIU_BP/SEARCHEMPLOYEETITLE' ).
        lv_title = 'SearchLastName'.
        lastname_valuehelp_popup = comp_controller->window_manager->create_popup(
         iv_interface_view_name = 'ZTEST23/MainWindow '
         iv_usage_name = 'Value_help'
         iv_title =  lv_title ).
      ENDIF.
      lastname_valuehelp_popup->set_on_close_event( iv_view = me iv_event_name = 'LAST_NAME_F4_CLOS' ).
      lastname_valuehelp_popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_surrounded ).
      lastname_valuehelp_popup->open( iv_inbound_plug = 'CLEAR_ALL' ).
    endmethod.
    method EH_ONLAST_NAME_F4_CLOS.
      DATA:   lv_col_wrapper TYPE REF TO cl_bsp_wd_collection_wrapper,
               lv_current TYPE REF TO if_bol_bo_property_access,
              lv_last_name TYPE REF TO data,
               lv_sold_to TYPE REF TO if_bol_bo_property_access,
               lv_outbound_plug TYPE seocmpname,
               lv_context_node TYPE REF TO cl_bsp_wd_context_node,
               lr_qs            TYPE REF TO cl_crm_bol_dquery_service,
               lr_col           TYPE REF TO if_bol_bo_col,
               lv_bo            TYPE REF TO cl_crm_bol_abstr_bo,
               lv_value         TYPE REF TO data,
               lv_fired_plug    TYPE  seocmpname,
               lr_iterator      TYPE REF TO if_bol_bo_col_iterator.
      FIELD-SYMBOLS: <lv_last_name> TYPE ANY,
                  <lv_value>         TYPE ANY.
      lv_fired_plug = lastname_valuehelp_popup->get_fired_outbound_plug( ).
      CHECK lv_fired_plug IS NOT INITIAL.
      lv_context_node = lastname_valuehelp_popup->get_context_node( iv_cnode_name = 'RESULT' ).
      lv_col_wrapper = lv_context_node->collection_wrapper.
      lv_current ?= lv_col_wrapper->get_current( ).
      IF lv_current IS BOUND.
       lv_last_name ?= lv_current->get_property( iv_attr_name = 'CPLASTNAME' ).
        ASSIGN lv_last_name->* TO <lv_last_name>.
        lr_qs ?= me->typed_context->search->collection_wrapper->get_current( ).
        lr_col = lr_qs->get_selection_params( ).
      Get the line where the value help has been called from
        lv_bo ?= lr_col->find( iv_index = mv_vh_index ).
        IF lv_bo IS BOUND.
          lv_bo->if_bol_bo_property_access~set_property( iv_attr_name = 'LOW' iv_value = <lv_last_name> ).
        ENDIF.
      ENDIF.
    endmethod.

  • Dump in Value-Help Component for date

    I created a Value-Help-Component for date fields. (I cannot use the standard value help, because I need the help to start in the month, the user is working on).
    I am using the Date Navigator to select a date.
    If I first change the month with an arrow of the date navigator and then select a date I get a dump in the method IF_WD_CONTEXT_ELEMENT~GET_ATTRIBUTE_REF in line
        attr_info = me->node_info->if_wd_context_node_info~get_attribute( name_only ).
    , because the element does not have a node_info.
    If I just choose a date in the preselected month (without using the arrows of the date navigator) everything is fine.
    Does anybody have an idea??
    Many thanks in advance.

    I found the "solution" to the problem myself.
    I used the method bind_structure in the component containing the date navigator.
    After I replaced it by set_static_attributes it worked without producing dumps.
    Very strange!

  • Value help does not work for ONE person only !

    Hi,
    we have a strange problem. In the Web IC, we are using a standard value help for the country field for a Business Partner. This works fine for everyone (ie, it picks up the country and slots it into the field) except one person. For her, it never returns any value into the country field. We are guessing that it's not Web IC related but is something in her browser settings etc...but haven't been able to pin it down. Can anyone offer any advice on this ?
    thanks for looking.
    Malcolm.

    Hello Malcolm,
    If this error occurs for one user only it's definitely related to the clients PC.
    Did you already delete all temporary files and the cookies on that PC? Usually this does the trick!
    If this does not solve the problem, try to let that particular user login on another PC where the problem does not occur. (If the error does occur on another PC too it's probably profile/authorization related)
    Hope this helps!
    Regards,
    Joost

  • Overwrite Value help error message

    Hi Experts,
    I want to overwrite the error message given by value help of an input field.
    Currently its showing the default error message when the selected value does not exist in value help as "String "56fds65fs" does not match the enumeration"
    Can i overwrite this message with my custom message as
    "Data not found for the given selection"?
    Regards,
    Ashish Shah

    Hi Guys,
    There is a solution to this problem.
    using the following tutorial.
    [A Simple Input Form with Message and Error Service Support|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/webdynpro/wd%20java/wdjava%20archive/a%20simple%20input%20form%20with%20message%20and%20error%20service%20support.pdf]
    i generated the error message using
    wdThis.wdGetAPI().getComponent().getMessageManager().
    reportContextAttributeMessage(
    this.wdContext.currentContextElement(),
                             attributeInfo,
                             IMessageWD_TutComp.MISSING_INPUT,
                             new Object[] { fieldLabel },
                             true);
    and raised the error as
    wdThis.wdGetAPI().getComponent().getMessageManager().raisePendingException();
    Regards,
    Ashish Shah

Maybe you are looking for

  • Doubts in VKOA

    Dear SAP Gurus, Please clarify me on the following part in FI-SD integration part. 1) While maintaining the entries in VKOA tables viz., C721 or C722 or C726, we provide two GL accounts (last two columns). One for revenue and another one for provisio

  • Calling the system

    How can I call the linux's system example (ls) with java.

  • How to validate if the baseBN using JNDI..?

    Hi, I have the directory server's admin username, admin password, system ip and port along with the BaseDN, how do i check whether the BaseDN that was entered by the user is valid one using JNDI..? thanks, Barani

  • Doubt about Integration Directory

    Hi Expers, I have one doubt about ID. What are  the objects we can re-use in the IR And  ID. Please let me know. Regards Khanna

  • Compound Path Without Fills

    I have been trying and trying to turn this whole design into a compound path so I can add a texture to it with the minus front feature. However, every time I attempt it fills in circles or changes the stroke width of lines. I have attached the file s