on 04-11-2012 5:40 PM
Hello,
I have created two search helps and want to restrict values in one of the search help based on the other. For example : Depending on search1 the result of search2 is to be modified in the selection screen.
I have not created any context nodesand have only created the selection screen parameters by:
wd_this->m_helper->add_selection_field(
i_id = `ZROLE`
i_within_block = `BL01`
it_result = lr_field
I_VALUE_HELP_TYPE = IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_SEARCHHELP
I_VALUE_HELP_ID = 'ZROLE').
So this way the selection screen is defined and the f4 works fine but now i am not sure how to retrieve the hit value of the first search help and pass it to second search help as an importing parameter. Please help.
Thanks,
Venkat
venkat varadan wrote:
I have not created any context nodesand have only created the selection screen parameters by:
This confuses me a bit. What kind of UI-Element are you using? If the search helps are Inputfields you must have some context elements for the obligatory binding.
Despite from what you have done already; my approach would be two input fields with respective context bindings. Two freely programmed search helps or OVS which depend on internal tables for the F4-Value List. The F4-Value Lists, be they in the context/attributes/assistance class, could be altered at the "onEnter" event of either Inputfield.
Cheers, Lukas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I create selection fields by
wd_this->m_helper->add_selection_field(
i_id = `ZROLE`
i_within_block = `BL01`
it_result = lr_field
I_VALUE_HELP_TYPE = IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_SEARCHHELP
I_VALUE_HELP_ID = 'ZROLE').
and then retrieve the values from the table into an internal table and then bind the internal table to a context node. There is no seperate context node for selection screen fields.
For one of the selection screen field, i have to restrict the f4 help based on another selection screen parameter.
Regards,
Venkat
Hi Venkat ,
For Second SEARCH-HELP based on first help ,
Create event-handler method which is created for event provided by wdr_select_options component
Read the node, where first selection field values binded.
Then in Select query ,use that internal table in where clause.( with for all entries )
Further ,you use ur own logic.
Ragards,
Jyoti
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
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.