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.

Accepted Solutions (1)

Accepted Solutions (1)

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

Answers (4)

Answers (4)

praveen_kumar194
Active Contributor
0 Kudos

Hi

When you create object of value descriptor class I think there is one parameter for server round trip check it once

Former Member
0 Kudos

Hi Shakuntala,

     Redifine the GET_V_ method of attribute and use this class/Interface 'CL_BSP_WD_VALUEHELP_F4DESCR' or IF_BSP_WD_VALUEHELP_F4DESCR.

Regards,

Satish B.

In that GTYPE_PARAM_MAPPING_TAB method. so you can set the DDIC values.

durga_prasad25
Participant
0 Kudos

Hi Shakuntala,

You can check context class method Do_prepae_output/On_New_Focus which can trigger when our table view loade or refreshed after selection of field and you can set your second column's value based on first column it will work.

Best Regards,

Durga Prasad

Former Member
0 Kudos

Hi Durga Prasad,

Yes I have tried all those events. Nothing seems to happen after the get_v is executed once.

Former Member
0 Kudos

Hello,

How does the GET_V for column2 look. I think the DDIC-help is not enough. This will not filter on attribute column1. In GET_V you should have access to the internal table used to fill column2. And you should be able to filter this internal table according to your needs.

Best regards,

Thomas Wagner

former_member182421
Active Contributor
0 Kudos

Hi,

If I understand what do you need, call the search help in GET_V of the column2 and  do the mapping manually reading the column1.

Take a look at this document:

http://scn.sap.com/docs/DOC-5201

Regards,

Luis

Former Member
0 Kudos

Hi Thomas,

I have implemented the get_v of the column 2 too. But, this gets called on the load of the table., the get_v of column 2 is not triggered after the selection of column 1. So, not too sure how to get that happening.

Former Member
0 Kudos

Hello,

In this case try the dummy event which Amit Singh described. This triggers a server roundtrip.

Best regards,

Thomas

Former Member
0 Kudos

Without the dummy event you would need to press enter to get a server roundtrip.