on 06-04-2008 4:13 PM
Hi Experts,
As per my requirement, when we press F4 in one select option , I would like to generate search help based on the value entered in the select option field.
eg: I have select option for "Partner Name". if user enters "TOM" in select options. On press of F4 , I would like to generate search help table with all name having "TOM" in it and attach table with this select option.
Something similar like "ON VALUE REQUEST" event of ABAP.
Regards,
Vishal.
Its very urgent. Full points would be rewarded.
Edited by: VISHAL GUPTA on Jun 4, 2008 12:37 PM
Hi Vishal,
*" Freely programmable search help for select option
lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'S_PLANETYE' ).
wd_this->m_handler->add_selection_field(
i_id = 'S_PLANETYE'
it_result = lt_range_table
i_read_only = read_only
*i_value_help_type = 'APPLDEV'*
i_value_help_id = <ref_value_help_comp>).
Regards,
Chitrali
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It sounds like you just want to use a freely programmed value help. It should work the same for a select-option as it does for an input field.
[http://help.sap.com/saphelp_nw70/helpdata/EN/47/9ef8cc9b5e3c5ce10000000a421937/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/47/9ef8cc9b5e3c5ce10000000a421937/frameset.htm]
Via the API of the IWD_VALUE_HELP interface you can access to the context attribute that triggered the value help, so you can have access to the current value to read your matching values.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you need to research the Freely Programmed value help first. There is no coding of the API in your component. This is something that would be done in your Freely Programmed Value Help Component. When you implement the IWD_VALUE_HELP interface in your Value Help component you will get a method called SET_VALUE_HELP_LISTENER. This listner object (it is an importing parameter of this method) is IF_WD_VALUE_HELP_LISTENER. There is an attribute of this object called F4_CONTEXT_ELEMENT that gives you access to the source element.
You are correct it is a bit different with a select-option. You have to use the I_VALUE_HELP_TYPE and I_VALUE_HELP_MODE importing parameters of the ADD_SELECTION_FIELD method of the IF_WD_SELECTION_OPTIONS. That way when the selection object component generates its inner context it will have the Value Help.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.