on 02-10-2015 8:59 AM
Hallo Colleagues and Experts,
I have a field which already assigned to a F4 (I defined ddic_shlp_name in if_ofm_guibb_form~get_definition)
Now in Form I have a dropdown, I would like the F4 to be replaced with other F4 if the dropdown changed.
Can this be done?
Thank you and best regards,
Steve
Hi Steve,
dynamic exchange of search helps is not supported in (static) GUIBBs. But you could define a field catalog based on a DDIC structure having assigned a context sensitive F4 help which takes the value of the other field (bound to the drop down) into account. Alternative you may use the OVS technique (IF_FPM_GUIBB_OVS) and code against the value of the drop down.
Best regards
Jens
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jens,
Thank for your reply.
could you please give me more explanation to the 1st alternative, probably code example?
My knowledge ends here:
method if_fpm_guibb_form~get_definition.
eo_field_catalog ?= cl_abap_typedescr=>describe_by_data( my_struct_data ).
I will of course consider the OVS alternative.
Thank you, I really appreciate your help.
Best regards,
Steve
Hi Steve,
if my_struct_data is based on a DDIC structure (e.g. TYPE sflight), the structure field corresponding input field could have an assignment of a value help (on DDIC structure level) with two import parameters: one mapped to the field itself and the other one mapped to the structure field corresponding to your drop down. If this value help provides different result sets depending on the second import parameter, this may solve your requirement.
Best regards
Jens
Hi Steve,
You can create one Z-table with two fields
Dropdown value
Shlp Name
So based on dropdown selected, you can fetch shlp name from z-table and you can pass that shlp name.
Thanks
KH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Katrice,
Thanks for your reply,
You said "pass that shelp name". This is exactly what I want to do, where can I do that?
There are only three method which are called on dropdown event: flush, process event, and get data.
I do not see any fields contain the shelp, which I can replace.
Best regards,
Steve
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.