on 08-03-2013 7:45 PM
In 1 of my requirement i need to create a field of sold to party with a f4 help for searching Accounts. I founded same functionality in component BT115QH_SLSQ ,view "details" and context node btpartnerset with Attribute Soldto_name . I have copied the same code for get_v , get_p and outbound plug but in my z custom component i am not able to navigate from Get_V to outbound plug 'OP_SELSOLDTO'.
Get v code
METHOD GET_V_SOLDTO_NAME.
CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_navdescr
EXPORTING
iv_outbound_plug = 'OP_SELSOLDTO'.
ENDMETHOD.
out bound code :
method OP_SELSOLDTO.
bp_account_search( IV_ROLE = 'SOLDTO' ).
endmethod.
get p code :
method get_p_soldto_name.
case iv_property.
when if_bsp_wd_model_setter_getter=>fp_fieldtype.
if CL_CRM_UIU_UTIL_CHM=>IS_PARTMAN( ) eq abap_true.
rv_value = cl_bsp_dlc_view_descriptor=>field_type_text.
elseif iv_display_mode eq abap_true.
rv_value = cl_bsp_dlc_view_descriptor=>field_type_event_link.
else.
rv_value = cl_bsp_dlc_view_descriptor=>field_type_input.
endif.
when if_bsp_wd_model_setter_getter=>fp_onclick.
rv_value = 'TOSOLDTO'. "#EC NOTEXT
endcase.
endmethod.
can anyone help me out if i am missing something .
Hi,
I can think of one thing which you may be missing.
Make method OP_SELSOLDTO to PUBLIC if it is protected or private.
Also following code is not required in GET_P method.
when if_bsp_wd_model_setter_getter=>fp_onclick.
rv_value = 'TOSOLDTO'. "#EC NOTEXT
Regards,
Naresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Guys i founded the solution.
When we create Outbound plug by default it is Protected. I made it public and nw its working fine ..Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
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.