cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with f4 help

Former Member
0 Kudos

Hello All,

I have an issue with the values being displayed in the f4 help. I have enhanced one order object with a table view. Two of the columns in the table view are inout fields with f4 helps. The issue I am facing is based on the input in column1 I have to fill the values in the f4 help of column 2 . I am not able to achieve the same.The f4 helps are DDIC helps.Please respond.

View Entire Topic
former_member211707
Active Participant
0 Kudos

Hello Shakuntala,

Please put this coding in get_p method of attribute:-(first f4 help)

  WHEN IF_BSP_WD_MODEL_SETTER_GETTER=>FP_SERVER_EVENT.

      RV_VALUE = 'select'.

and, create eh_onselect event handler...nd write code to fill data in second f4 help...

Hope it will be helpful.

Thanks,

Amit Singh

Former Member
0 Kudos

Hi Amit,

Thank you for the reply. I tried doing this , but in my scenario if the column 1  is prepopulted and I want to change the value in column 2 , this does not work. The only was I could get the server round trip was by calling an outbound plug in the get_v of column 2 . But I cannot fire the DDIC help from the outbound plug. Is there a way to do that ?

former_member211707
Active Participant
0 Kudos

Hello Shakuntala,

1.

Create one attribute gv_attr of static type in z_component_controller_implementation class...and

set z_component_controller_implementation class=>gv_attr in get method of first f4 help attribute like below:-

z_component_controller_implementation class=>gv_attr = value.

2.

Now,


Are you maintaining any relationship between the total data options for 2nd f4 help and value present in 1st f4 help.

for example:--

for value A in 1st f4 help, we are maintaining any relationship in table like this:-

A-A1

A-A2

A-A3

A-A4

A-A5

if A will be selected then A1,A2,A3,A4 and A5 will be filled in F4 help selection value.

If you are not maintaining then maintain it....

3.

Now, go to get_p method of 1st F4 help attribute and write following code:-

WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
       rv_value = 'F4_SELECT'.

and, create event handler EH_ONF4_SELECT. Write code to fill table that will be used as selection table during creation of search help for 2nd F4 help.

I have discussed early that relationship between total data options for 2nd f4 help and value present in 1st f4 help. Maintain it. and fill selection table to be used based on 1st f4 help value.(

lv_attr = z_component_controller_implementation class=>gv_attr )

Note:-- delete all data from selection table before adding all data based on value in 1st f4 help...delete selectiontab..

4.

Now,write the code to fill data in F4 help..use custom search help here and use same selectiontab as selection method parameter during creation of search help.

It is my custom approach...that might be helpful for you.

Thanks,

Amit Singh