on 12-31-2013 3:01 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.