on 03-21-2013 6:41 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ?
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
Hi
When you create object of value descriptor class I think there is one parameter for server round trip check it once
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
2 | |
2 | |
1 | |
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.