on 04-17-2008 9:52 AM
Hi guru,
i hope you can help me. I must integrate a search help in my web dynpro abap. I'm following the manual in https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c09fec07-0dab-2a10-dbbe-c9a26bdf... . In the context I'm adding a Node with an Attribute, and the type of this Attribure hasn't a Standart Search Help. So, I created a Custom Search Help, and in the Context I changed the Attribute's Input Help Mode by Automatic to Dictionary Search Help, and i added the new help.
Now, when i start my web dynpro, i see the select-option structure, but i can't see the match-code.
How can i fix it?
thank you all.
Hi Valerio,
Put the following code in WDDOINIT of your input view.
selopt is the component usage declared in the using component. You may replace it by your comp usage name.
DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
DATA : lt_range_table TYPE REF TO data,
rt_range_table TYPE REF TO data,
read_only TYPE abap_bool,
typename TYPE string.
lo_cmp_usage = wd_this->wd_cpuse_selopt( ).
IF lo_cmp_usage->has_active_component( ) IS INITIAL.
lo_cmp_usage->create_component( ).
ENDIF.
wd_this->m_wd_select_options = wd_this->wd_cpifc_selopt( ).
wd_this->m_handler = wd_this->m_wd_select_options->init_selection_screen( ).
lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'S_CARR_ID' ).
wd_this->m_handler->add_selection_field(
i_id = 'S_CARR_ID'
it_result = lt_range_table
i_read_only = read_only ).
lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'S_CONN_ID' ).
wd_this->m_handler->add_selection_field(
i_id = 'S_CONN_ID'
it_result = lt_range_table
i_read_only = read_only
I_VALUE_HELP_ID = 'H_SPFLI'
I_VALUE_HELP_STRUCTURE = 'SFLIGHT'
I_VALUE_HELP_STRUCTURE_FIELD = 'CONNID' ).
Regards,
Chitrali
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all,
i resolved the problem. In se11 i created a structure with the field and the help.
and after i used the code
CALL METHOD LR_HELPER->ADD_SELECTION_FIELD
EXPORTING
I_ID = 'OBJECT_ID'
I_WITHIN_BLOCK = MC_ID_MAIN_BLOCK
I_DESCRIPTION =
I_IS_AUTO_DESCRIPTION = ABAP_TRUE
IT_RESULT = LT_RANGE
I_OBLIGATORY = ABAP_FALSE
I_COMPLEX_RESTRICTIONS =
I_USE_COMPLEX_RESTRICTION = ABAP_FALSE
I_NO_COMPLEX_RESTRICTIONS = ABAP_FALSE
I_VALUE_HELP_TYPE = IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_NONE
I_VALUE_HELP_ID = 'Z_BBPH_CTR_CONTRACTS'
I_VALUE_HELP_MODE =
I_VALUE_HELP_STRUCTURE = 'ZCONT_HELP'
I_VALUE_HELP_STRUCTURE_FIELD = 'OBJECT_ID'
I_HELP_REQUEST_HANDLER =
I_LOWER_CASE =
I_MEMORY_ID =
I_NO_EXTENSION = ABAP_FALSE
I_NO_INTERVALS = ABAP_FALSE
I_AS_CHECKBOX = ABAP_FALSE
I_AS_DROPDOWN = ABAP_FALSE
IT_VALUE_SET =
I_READ_ONLY = ABAP_FALSE
I_DONT_CARE_VALUE =
I_EXPLANATION =
I_TOOLTIP =
.
Hi Valerio,
If the search help you want to use is a dict search help not being used in any of the tables/structures, then the way out is to specify the parameter I_VALUE_HELP_TYPE as 'SEARCHHELP' instead of creating a structure just to use this search help for your webdynpro UI element.
Regards,
Chitrali
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Valerio,
If its a search help, use the following code:
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 = 'SEARCHHELP'
i_value_help_id = 'Z_SAPLANE' ).
In this example, 'Z_SAPLANE' is the dictionary search help.
This will solve your problem
For further details, goto interface IF_WD_VALUE_HELP_HANDLER to get a list of values you can supply to parameter I_VALUE_HELP_TYPE.
This is similar to what you do with a context, similar to the options you get in the dropdown for Input Help property.
Regards,
Chitrali
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
follow the example in this link
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Valerio,
You must have used method "add_selection_field" of interface IF_WD_SELECT_OPTIONS to add a field to the select option right?
One of the parameters of this method is I_VALUE_HELP_ID. Try passing the search help here and check if it works for you.
Regards,
Chitrali
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
For Custom serach help ,
1. Input help mode -> Dict. Serach help.
2. Type -> Ztablename-Field name.
3. Dictionary serach help -> Your search help name.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi valerio......
check whether you have activated everything.
---regards,
alex b justin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.