on 01-17-2011 8:37 AM
Hi all,
I have attached a search help in a context attribute but I need to pass some extra values in the search help before it is called. (the system's language).
How can I set up the input and output of a dictionary based search help on abap web dynpro?
Thanks in advance
hi,
if you have created the search help then just foloow the following steps
1)goto se11 ..search help ...press change..
2)in the selection method ...write the name of the ztable you want your search help to be associated with.
3)in the search help parameters write the field name you want to be displayed in the search help .
now in the ztable you can populate the dynamic values as many as possible and the same will be reflected in search help.
if you want to remove the repetition of the value in search help write C140_DELETE_DUPLICATES in "search help exit ".
hope this will solve your query.
thanks and regards,
sahai.s
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have no problem in creating a search help. My problem is that I don't know how to get and set the input/output of a dictionary search help in an ABAP web dynpro component. What I've done is create a search help and then bind it with a context attribute. This works as far as displaying the help button and getting the correct results. But how can I retrieve programmatically all the fields which the search help is supposed to provide?
Thanks though.
hi,
the search help must be showing the F4 button ..and on clicking it it must be poping up a window and on clicking in one of the values being displayed you can select a value...rite? you have done till this step? is it not?
now after selecting a value in the field you want to retrieve it ....you will have to read the context attribute/node using code wizard to get all the values selected for that particular field.
click on the code wizrd and click on the node select the attribute/node and select the radio button read...you will get the code gerated similar to the one given below
DATA LO_ND_NODE_MAIN TYPE REF TO IF_WD_CONTEXT_NODE.
DATA LO_EL_NODE_MAIN TYPE REF TO IF_WD_CONTEXT_ELEMENT.
DATA LS_NODE_MAIN TYPE WD_THIS->ELEMENT_NODE_MAIN.
DATA LV_AIRCRAFT_TYPE TYPE WD_THIS->ELEMENT_NODE_MAIN-AIRCRAFT_TYPE.
* navigate from <CONTEXT> to <NODE_MAIN> via lead selection
LO_ND_NODE_MAIN = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_NODE_MAIN ).
* @TODO handle non existant child
* IF lo_nd_node_main IS INITIAL.
* ENDIF.
* get element via lead selection
LO_EL_NODE_MAIN = LO_ND_NODE_MAIN->GET_ELEMENT( ).
* @TODO handle not set lead selection
IF LO_EL_NODE_MAIN IS INITIAL.
ENDIF.
* get single attribute
LO_EL_NODE_MAIN->GET_ATTRIBUTE(
EXPORTING
NAME = `AIRCRAFT_TYPE`
IMPORTING
VALUE = LV_AIRCRAFT_TYPE ).
LV_AIRCRAFT_TYPE will get all the value which user selected there..
hope this will help you to know more any query regarding this tell me.
thanks and regards,
sahai.s
Hi rabbitisle,
1. Go for OVS as suggested by Pradip,
There in phase 2 use a select query to get the value from the table
select Field name from table name into ...
Now in the internal table add your own values .
ovs_callback_object->set_output_table( output = internal table).
2. I think you can also use dynamic search help the same way
to get the values from table and then use dynamic search help to populate new values.
Check the component DEMO_VALUE_HELP this might can help you.
Edited by: MonishankarC on Jan 17, 2011 3:04 PM
Edited by: MonishankarC on Jan 17, 2011 3:04 PM
If you want to use EXPORT/IMPORT of additional values from the Search Help, that is possible with DDIC search help, but only if you follow a very specific design. The Search Help must be attached to a data dictionary structure/table. Within the structure/table you must define the mappings of the export/import parameters of the search help. Then you must use this same structure/table as the definition of the context node in Web Dynpro. Only then will the framework perform the automatic copy of exporting/importing values of your search help.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.