Skip to Content

How to trigger On ENter Event for a field in WEB UI

HI All,

My requitement is as below:

I have a field on my Web UI. and upon filling the field with some value, and Upon Clicking Enter on the screen i have to perform some logic..

for that i have checked the GET_P method of that attribute :

if_bsp_wd_model_setter_getter=>fp_

but i dint find any method...

Can any one pls sugget me how to accomplish this ..

is there any other way say by using HTMLB Tags.. pls help !!

Kindly Help ASAP...

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 26, 2012 at 10:12 AM

    HI Santosh,

    If you are explicitly clicking on enter after filling the input field , then a server round trip gets triggered . You need not place any code in GET_P_XX to get this done.

    You can place your logic in either SET_XXX method or DO_PREPARE_OUTPUT or DO_FINISH_INPUT depending upon your requirement.

    Regards,

    Nithish

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Nithish/Santosh,

      Even I am struck with the same error. Can you please check the below Query.....

      And set_method is not triggering here

      In Quote creation component "BT115QH_SLSQ/Details", Partner data is flowing from "BTPARTNERSET " to "Parties involved" assignment block.

      All the data related to BP is flowing from header data to "Parties Involved" assignment block.

      After populating if I change any Business Partner name in header then the "parties involved" assignment block is also changing with the same BP name. But the problem is the record has BP ID, BP address etc which is not updated..... Once I press enter on that particular BP name then the record is updating to the related BP ID & Address.

      Now how can I achieve this without pressing enter?

      Below is the code of Get_P method of a BP name field in "parties Involved" assignment block.

      method GET_P_PARTNER_NO_DESCR.


      CASE iv_property.

      WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.

      IF iv_display_mode EQ abap_true.


      IF cl_crm_uiu_bt_partner=>check_link(

      ir_collection_wrapper = collection_wrapper

      iv_index = iv_index ) EQ abap_true.


      rv_value = cl_bsp_dlc_view_descriptor=>field_type_event_link.


      RETURN.

      ENDIF.

      ENDIF.


      rv_value = cl_bsp_dlc_view_descriptor=>field_type_input.


      WHEN if_bsp_wd_model_setter_getter=>fp_sortable.

      rv_value = 'TRUE'. "#EC NOTEXT


      WHEN if_bsp_wd_model_setter_getter=>fp_onclick.

      rv_value = 'TOPARTNER'. "#EC NOTEXT

      ENDCASE.

      endmethod.


      suggest me how to do the above requirement without performing action "Enter" manually.

      Thanks & Regards,

      Harry.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.