Skip to Content

How to trigger "on enter" action dynamically without performing any action manually.

Hi All,

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jan 02, 2014 at 11:26 AM

    Hi Harry,

    If you want to force an enter during a field is filled you have to change the type of field.

    For fields type picklist you can do:

    METHOD get_p_field.

    CASE iv_property.

    WHEN if_bsp_wd_model_setter_getter~fp_fieldtype.

    rv_value = cl_bsp_dlc_view_descriptor=>field_type_picklist.

    WHEN if_bsp_wd_model_setter_getter=>fp_server_event OR

    if_bsp_wd_model_setter_getter=>fp_onclick.

    rv_value = 'DUMMY_EVENT'.

    ENDCASE.

    ENDMETHOD.

    This DUMMY_EVENT you don't need to create.

    Best regards.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Jorge,

      I want to trigger an "Enter" action on Another field.

      For eg.

      In the above screenshot,

      if I select any value from drop down "legal entity address", then related "legal entity" will be filled.

      now the controller is in "legal entity address" . manually I need to place the cursor on`the "legal entity" and then press "Enter" . After doing the action, the data is updated in the item list.

      How to perform "enter" action, without manual action ?

      Regards,

      Harry.

      Untitled.png (7.0 kB)

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.