cancel
Showing results for 
Search instead for 
Did you mean: 

Proviiding F4 function for SAP Standard filed.

Former Member
0 Kudos

Hello Gurus ,

Can anyone help me in providing the solution in my issue.

The SAP Standard ID field must be implement F4 fucntionality to search for Business partner.

Any help is greatly appreciated and point will be Rewarded.

Best Regards

Shaik

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello Proficient,

Thanks for all your support. My issue realted to F4 help for standard filed had set on by me only.

For having F4 help to standard filed, we need put into action Get_V and Get_I menthod.

Get_I method will be previously defend ,that need to re defend and have to change the value rv_disabled = 'TRUE'. to rv_disabled = 'FALSE' with correlated circumstances.

Best Regards,

Shaik

Edited by: Shaik Shakeer Hussain on Jan 19, 2009 10:16 PM

saumya_govil
Active Contributor
0 Kudos

Hi Shaik,

To achieve this do the following:

1. Create a Z-class

2. Add an interface IF_BSP_WD_CUSTOM_F4_CALLBACK to the class

3. Method RETRIEVE_CUSTOM_VALUES would be automatically added to the class.

4. Add code to this method, and state the constraints (if any) that you need to impose of the user selection.

5. Pass the final list to be displayed to parameter CT_RESULTS_TAB of the method.

Make a call to this Z-Class when ever the F4 help is done.

This should solve your issue!

Hope this helps!

Regards,

Saumya

Former Member
0 Kudos

Hi Saumya,

Thank you for the timely reply.

I have Implemented the same thing as per the below and its the same as per your step by step suggestion. But I am unable to see the F4 help symbol on UI Screen.

*CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr

*EXPORTING

*iv_help_id = 'ZCL_BSP_WD_CUSTOM_F4_CALLBACK'

*iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_callback

*iv_input_mapping = lt_inmap

*iv_output_mapping = lt_outmap

*iv_trigger_submit = abap_true.

Any help concerning this matter is appreciated.

Best Regards

Shaik.

saumya_govil
Active Contributor
0 Kudos

Hi Shaik,

Please check the field for which you are implementing is of the required datatype and the widget used is that of F4 help.

Regards,

Saumya

Former Member
0 Kudos

Hi Saumya,

Could you please elaborate your mail?

(Please check the field for which you are implementing is of the required datatype and the widget used is that of F4 help.)

Let me present my necessity once again.

<<< I need to add F4 help to Standard Exiting filed "ID Number" type Bu_Partner. >>>

I have enhanced the GET_V method, but F4 help is not getting visible.

Do i need to do some think by transaction EEWB or any changes have to done in .htm file.

Any help concerning is appreciated.

Best Regards

Shaik.

stephenjohannes
Active Contributor
0 Kudos

Another thing to keep in mind folks:

If the dropdown is needed on a search screen, the GET_V method should be added to the controller class of the view of the search screen. It will not work if you add the GET_V method to the context node, nor will design layer assignment will work.

Take care,

Stephen

Former Member
0 Kudos

Hi..

Have you tried enhancing the GET_V method of the std. field ?

try this code:

DATA: ls_map TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,

lt_inmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,

lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.

CREATE OBJECT rv_valuehelp_descriptor

TYPE

cl_bsp_wd_valuehelp_f4descr

EXPORTING

iv_help_id = 'class_name'

iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_callback

iv_input_mapping = lt_inmap

iv_output_mapping = lt_outmap

iv_trigger_submit = abap_true.

class_name is the class that you need to create which would implement the interface method retrieve_custom_values of interface IF_BSP_WD_CUSTOM_F4_CALLBACK where you write the code for retrieving the F4 help values.This is helpful in providing customized result set.

U can also search for std. value help views/std. search helps for BP in transaction se11 and pass it as param iv_help_id instead of classname .

Hope this may help you...

Thanks...

Former Member
0 Kudos

Hi Swapna,

I have enchance the GET_V as per below, but i am not getting F4 symbal in a UI screen.

CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr

EXPORTING

iv_help_id = 'ZCL_BSP_WD_CUSTOM_F4_CALLBACK'

iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_callback

iv_input_mapping = lt_inmap

iv_output_mapping = lt_outmap

iv_trigger_submit = abap_true.

I have tried as per below code by creating outbound plug "OP_F4_PARTNER_NO", even this is also could not help.

CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_navdescr

exporting

iv_outbound_plug = 'OP_F4_PARTNER_NO'.

Could you suggest where i am doing wrong, or do i need to code in *.htm file in Component to get F4 help symbal ?

Best Regards

Shaik.