cancel
Showing results for 
Search instead for 
Did you mean: 

While creating F4 help , not able to navigate to outbound plug from get_v .

0 Kudos

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 .

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

former_member211707
Active Participant
0 Kudos

Hello Naresh,

Yoj mentioned right. Thrre is no need of fp_onclick event..once you will select f4 , it will call outbound plug method.

Thanks,

Amit

0 Kudos

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

former_member184672
Participant
0 Kudos

Thank you very much Golden G, I was desperately searching for a solution to this and your suggestion really worked for me. Changing the visibility of the outbound plug method to 'Public' eliminates this error.

Regards,

Sarath.