OVS Search Help
Hi,
I am using OVS search help for an input field.
I want to know whether it is possible to use personal value list in OVS, Like one in dictionary search help.
If yes, then how to proceed for that and also suggest any dummy program if possible.
Regards
Pankaj Aggarwal
Hi Pankaj,
I think, 'personal value list' in value help is only possible for Dictionary Search Helps, but not for OVS & Freely programmed. Check out the NOTE section of the [link|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/9ef8cc9b5e3c5ce10000000a421937/content.htm]. It says below.
Before programming your own input helps, see whether your input helps can be depicted using an ABAP Dictionary search help. If you consistently use the search help and thus the default input helps, your Web Dynpro application is more uniform. In addition, the ABAP Dictionary search help allows you to maintain a personal values list (favorites).
This clearly means that, PERSONAL VALUE LIST is only for dictionary helps.
Incase if you use mix of dictionary helps & OVS helps and to make your WD application uniform, its recommended to disable PERSONAL VALUE LIST for dictionary helps.
Hope it answers your question.
Regards,
Manne.
Similar Messages
-
Problem with OVS search help.. pls help..
Hi friends, I have a prblem with OVS component layout
can some tell me create another COPY button just under the search button on OVS.
Basically in my product search.. there is already an OVS component created.. in the Z component layout.. jus the result table is been designed. I dnt see any other UI elements availble in that layout. (like input field to accept vaules on OVS), .. so i was wondering how to create a new button.
this was developed by others;s so .. i m fighting with this and not able to get anything from sdn aswell.. pls help me.
And also when they enter values in input fields.. instead of clicking search.. they wanted to hit ENTER key on keyboard... and result shoud display.. how to achieve this..
sorry im very sorry but pls take out some time and help me out.
I want one more button COPY on OVS search help. just under the SEARCH button... and also the search shud start once i hit ENTER key on keyboard.
pls help on this.
NirajaHi Niraja,
As how discussed in the email we can get this additional push button as how desired by enhancing the standard component WDR_OVS. Just click on the "Enhance" (spiral kind of button) button present in the application toolbar & create an Enhancement Implementation for the component. Now within this standard component you have the corresponding layout present in the SEARCH view. So go to this view & make the necessary changes. From now on what all components which declare a component usage of the WDR_OVS would be getting this newly modified UI & functionality.
Regards,
Uday -
How to set column names in OVS search help of ALV EDIT
Hi All,
I have a OVS search help for my ALV EDIT column.This OVS will have two columns,I need to give the names(name1 , name2) to the columns.
I am writing the below codo in phase 0.
ls_text-name = 'Column1'.
ls_text-value = 'name1'.
INSERT ls_text INTO TABLE lt_column_texts.
ls_text-name = 'Column2'.
ls_text-value = 'name2'.
INSERT ls_text INTO TABLE lt_column_texts.
ovs_callback_object->set_configuration(
label_texts = lt_label_texts
column_texts = lt_column_texts
group_header = lv_group_header
window_title = lv_window_title
table_header = lv_table_header
col_count = 2
row_count = 20 ).
Below code in Phase 3.
Assign ovs_callback_object->selection->* to <ls_selection>.
if <ls_selection> is assigned.
ovs_callback_object->context_element->set_attribute(
name = `ATR1`
value = <ls_selection>-Column1 ).
endif.
But,the column names are not getting set.Please provide your inputs.
Regards,
Salmahi,
About your requirement, i don't know why you need to code in "Phase 3" of OVS.
"Phase 3" is used for transporting your selected value to Your ALV.
I think, the reason why you loose the result table including your customized column title, is that you loose the "Phase 2".
Generally, in the past i used OVS as the following code simply.Just one example:
* declare data structures for the fields to be displayed and
* for the table columns of the selection list, if necessary
types:
begin of lty_stru_input,
* add fields for the display of your search input here
carrid type string,
connid type string,
end of lty_stru_input.
types:
begin of lty_stru_list,
* add fields for the selection list here
carrid type string,
connid type string,
text type string,
end of lty_stru_list.
data: ls_search_input type lty_stru_input,
lt_select_list type standard table of lty_stru_list,
ls_text type wdr_name_value,
lt_label_texts type wdr_name_value_list,
lt_column_texts type wdr_name_value_list,
case ovs_callback_object->phase_indicator.
when if_wd_ovs=>co_phase_0. "configuration phase, may be omitted
* in this phase you have the possibility to define the texts,
* if you do not want to use the defaults (DDIC-texts)
ls_text-name = 'CARRID'. "must match a field name of search
ls_text-value = 'Search Field-Carrid'.
insert ls_text into table lt_label_texts.
ls_text-name = 'CONNID'. "must match a field name of search
ls_text-value = 'Search Field-Connid'.
insert ls_text into table lt_label_texts.
ls_text-name = 'CARRID'. "must match a field in list structure
ls_text-value = 'Result-Carrid'.
insert ls_text into table lt_column_texts.
ls_text-name = 'CONNID'. "must match a field in list structure
ls_text-value = 'Result-Connid'.
insert ls_text into table lt_column_texts.
ls_text-name = 'TEXT'. "must match a field in list structure
ls_text-value = 'Result-Text'.
insert ls_text into table lt_column_texts.
lv_group_header = 'Group Header'.
lv_window_title = 'Window Title'.
lv_table_header = 'Table Header'.
ovs_callback_object->set_configuration(
label_texts = lt_label_texts
column_texts = lt_column_texts
group_header = lv_group_header
window_title = lv_window_title
table_header = lv_table_header
col_count = 3
row_count = 8 ).
when if_wd_ovs=>co_phase_2.
* If phase 1 is implemented, use the field input for the
* selection of the table.
* If phase 1 is omitted, use values from your own context.
if ovs_callback_object->query_parameters is not bound.
******** TODO exception handling
endif.
assign ovs_callback_object->query_parameters->*
to <ls_query_params>.
SELECT * INTO CORRESPONDING FIELDS OF TABLE lt_select_list FROM ZTABLE_FLIGHT
WHERE CARRID LIKE lw_carrid
AND CONNID LIKE lw_connid
*ovs_callback_object->set_output_table( output = lt_select_list ).*
Hope it can help.
Best wishes. -
OVS search help window Condensed
Hi experts,
Please Suggest Some solution for the below problem.
I had Two Columns in OVS search help where only one column is displayed and the other column is condensed.
Please suggest some solution asap this issue needs to be cleared early.
Thanks in Advance.Duplicate thread to OVS - change window size
Locking this thread. -
OVS Search Help in Web Dyrnpro Java Online Interactive Form
Hi Experts,
Is there any OVS Search Help control we can use in Online Interactive Form as a as we have in Web Dynpro java. Can we assign this search help to any existing control.
If it is not possible can we call a Web Dynpro View as a popup from Intefactive Form such that field search can be done in popup window and on selection the resultant record should populate to Interactive Form control.
Please suggest me feasible solutions
Thanks
Chinna..Hi You can create Value Help in Webdynpro to show F4 Help values.
Follow this link
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2833ce90-0201-0010-f1af-d3cfe1155b16
Reward Points if Helpful
Edited by: Praveen Kommineni on May 7, 2008 8:05 PM -
One search help for multiple select-options in webdynpro abap
Hi,
I need a way to use one search help for multiple select-options fields. My scenario is :
I have a table for keeping different organizational units' values of different systems. I have pasted some sample data from this table at the end of this mail. On the screen I want to have 1 select-options filed for werks, and 1 select-options filed for vkorg. (In fact I will have more org. unit fields...) In the beginning of my application the user will select sid.
If the user selects ADS as SID, when he opens search-help for the first org. unit (werks), he will see the records with SID: ADS, VARBL = $WERKS, LANGU = SY-LANGU.
If the user selects AGT as SID, when he opens search-help for the second org. unit (vkorg), he will see the records with SID: AGT, VARBL = $VKORG, LANGU = SY-LANGU.
I have created a search-help taking SIDD, VARBL and LANGU as import parameters; used field mapping and bound this search help to my table. I have created 2 context nodes : org1 and org2 having attributes SID, VARBL, VALUE, LANGU .
I have assigned related SID, VARBL and Langu values to these attributes at runtime as I needed. That way, if I use input field and reference to the related context attributes org1-value and org2-value2 accordingly, search help works well as I want.
However, when I use select-options field , I can not bind the field to the context data. I can give reference only to ddic structure. Is there any way to reference to a context attribute? I searched for this in SDN, but could find nothing.
I think I won't be able to use this way. What do you say?
As I read from forums maybe using OVS help will be suitable for me. But I have to use one search-help for all select-options fields. Do you know how I can determine the active select-options field and pass its name (for instance "werks" ) as parameter to this OVS search help. (Also I'll pass SID and LANGU.)
MY TABLE (ZBYYT080) CONTENTS:
SID VARBL VALUE LANGU VTEXT
ADS $WERKS 1 T Werk 0001
ADS $WERKS 11 T OZYAS GIDA URETIM YERI
ADS $WERKS 5501 T BOYA GEBZE FABRİKASI
ADS $WERKS 5502 T BOYA CIGLI FABRİKASI
AGT $WERKS 2301 T KAMLI DAMIZLIK
AGT $WERKS 9601 T PANAR DENIZ URETIM YERI
ADS $VKORG 22 T AA KİMYASALLAR
ADS $VKORG 8001 T İINSAAT BOYALARI
AGT $VKORG 6500 T DAMk St.Org
AGT $VKORG 5400 T PANAR St.Org.
I wish I'm clear enough..
I will be gald if someone answers me as soon as possible...
Thanks İn advance..
MERALHi,
Your ques is how to refer to a DDIC search help to refer to selection screen parameter ?
Am I right ?
If Yes, then in the interface IF_WD_SELECT_OPTIONS
method ADD_SELECTION_FIELD, ADD_PARAMETER_FIELD etc
have importing param like I_VALUE_HELP_TYPE and I_VALUE_HELP_ID, I_VALUE_HELP_MODE, I_VALUE_HELP_STRUCTURE
etc which may help you to link your create DDIC Search help to selection screen params.
this is just a clue from my side. I haven't tried it myself.
You can go to the where used list of this method and find some sample implementations which use these params.
Hope this helps.
Regards
Manas Dua -
How to create an elementary and collective search help in webdynpro
Hi all,
my requirement is i have to create an collective search help. and that should be same as other tcode search help functionality.
and now the ztcode is in r3 system and my webynpro development is going on bw system how to copy that tcode from r3 to bw system. and then for my input field is cost center and for this input field i should create the search help functionalty.kindly help me how to achieve this functionality i am new to this webdynpro so kindly send me the detail steps.
Thanks & Regards,
NaveenHi Naveen,
There's no difference to using a collective search help or a regular search help.
in the attribute of the context that you want the search helps to appear for - specify that the input help is of type dictionary search help, then specify that the input help is your collective search help.
Search helps in WDA, if search help is available at dictionary level, no need to create any search help, you get automatically.
If you want to create search help for any input field, another option is using OVS. we have WDR_OVS component for search helps, you need to reuse this component in your custom component, just change some coding according to your requirements you get search help.
Go through these documentation and helps...
http://help.sap.com/saphelp_nw73/helpdata/en/cf/21ee45446011d189700000e8322d00/frameset.htm
http://help.sap.com/saphelp_nw73/helpdata/en/3d/e53642e2a3ab04e10000000a1550b0/content.htm
OVS search help..
http://wiki.sdn.sap.com/wiki/display/Snippets/OVSSearchHelpinWebDynproAbap
freely programmed inputhelp
http://wiki.sdn.sap.com/wiki/display/WDABAP/Freelyprogrammedinput+help
http://wiki.sdn.sap.com/wiki/display/WDABAP/UsingSearchhelpattachmentsforWebDynproABAP
Thanks,
Kris. -
Problem with OVS search result table..pls hlp
Hi friends,
I have crated an OVS search help. .and its working fine when i hit F4.
but when i hit search button.. the result table is showing more number of rows(blank), though the result has just 2 records returned.
there are many no of blank rows. i wnat to get rid of this.
i also tried to give the default no of rows in my componet (OVS), layout table.
but still its not decreasing.
can someone help me howto solve this.
NirajaHi Niraja,
When you implement event handler for OVS search, you must have seen the code that gets automatically generated when you assign OVS event to that event handler. i.e.
case ovs_callback_object->phase_indicator.
THE FIRST PHASE WHICH SET CONFIG PARAMETERS
when if_wd_ovs=>co_phase_0. "configuration phase, may be omitted
in this phase you have the possibility to define the texts,
if you do not want to use the defaults (DDIC-texts).....
and so on.......
so here inside co_phase_0 you can set the requried data by calling this method:
ovs_callback_object->set_configuration(
label_texts = lt_label_texts
column_texts = lt_column_texts
group_header = lv_group_header
window_title = lv_window_title
table_header = lv_table_header
col_count = 2
row_count = 20 ).
Here I have hard coded no. of rows to 20 you can just set it to variable which may be holding your rowcount.
I hope this will help you.
Regards,
Neha Modi -
How to assign search help for an input field by fetchign values from an int
i have an input field ,
i want to assign search help for the same by fetching values from a table.
how to achieve this ?Using the below ways you can assign search help to a field.
1) [OVS Search Help|http://wiki.sdn.sap.com/wiki/display/Snippets/OVSsearchhelp]
2) [Freely Programmed Search Help|http://wiki.sdn.sap.com/wiki/display/WDABAP/Freelyprogrammedinput+help]
3) Dictonary Help - Use the Data element for that purpose. -
How to disable a input field in OVS search
Hi friends,
I have crated a OVS search help for matnr.
i have two input field like matnr and mat desc.. user can enter any value and hit SEARCH..
im getting results.
Now i want to hardoced a value of matnr = 001.. and make this field read only..
how can we do it..
i just took a example of matnr and mat desc. to make u understand easily...
kindly help.
NirajaHi Niraja,
You can initialize the value for MATNR in the phase 1 of the eventhandler method for OVS. Try refer the code segment below. Am initializing the values for MATNR & MAKTX fields in the lines:
ls_search_input-matnr = 'D*'.
ls_search_input-maktx = '*'.
* pass the values to the OVS component
ovs_callback_object->set_input_structure(
input = ls_search_input ).
Regards,
Uday
Below is the complete code from my eventhandler method:
method ON_OVS .
" declare data structures for the fields to be displayed and for the table columns of the selection list
types:
begin of lty_stru_input,
" add fields for the display of your search input here
matnr type string,
maktx type string,
end of lty_stru_input.
types:
begin of lty_stru_list,
" add fields for the selection list here
matnr type string,
maktx type string,
end of lty_stru_list.
data: ls_search_input type lty_stru_input,
lt_select_list type standard table of lty_stru_list,
ls_text type wdr_name_value,
lt_label_texts type wdr_name_value_list,
lt_column_texts type wdr_name_value_list,
lv_window_title type string,
lv_group_header type string,
lv_table_header type string.
field-symbols: <ls_query_params> type lty_stru_input,
<ls_selection> type lty_stru_list.
data: lv_matnr type mara-matnr,
lv_maktx type makt-maktx.
case ovs_callback_object->phase_indicator.
when if_wd_ovs=>co_phase_0. "configuration phase, may be omitted
" in this phase you have the possibility to define the texts, if you don't want to use the defaults (DDIC-texts)
ls_text-name = `MATNR`. "must match a field name of search
ls_text-value = `Material Number`. "wd_assist->get_text( `001` ).
insert ls_text into table lt_label_texts.
ls_text-name = `MAKTX`.
ls_text-value = `Material Description`.
insert ls_text into table lt_label_texts.
ls_text-name = `MATNR`. "must match a field in list structure
ls_text-value = `Col1 -> Material Number`. "wd_assist->get_text( `002` ).
insert ls_text into table lt_column_texts.
ls_text-name = `MAKTX`. "must match a field in list structure
ls_text-value = `Col2 -> Material Description`. "wd_assist->get_text( `002` ).
insert ls_text into table lt_column_texts.
ovs_callback_object->set_configuration(
label_texts = lt_label_texts
column_texts = lt_column_texts
group_header = lv_group_header
window_title = lv_window_title
table_header = lv_table_header
col_count = 2
row_count = 10 ).
when if_wd_ovs=>co_phase_1. "set search structure and defaults
" In this phase you can set the structure and default values of the search structure. If this phase is omitted, " the search fields will not be displayed, but the selection table is displayed directly.
" Read values of the original context (not necessary, but you may set these as the defaults). A reference to " the context element is available in the callback object.
ovs_callback_object->context_element->get_static_attributes
( importing static_attributes = ls_search_input ).
" Setting the default values to be displayed in the selection screen
ls_search_input-matnr = 'D*'.
ls_search_input-maktx = '*'.
" pass the values to the OVS component
ovs_callback_object->set_input_structure( input = ls_search_input ).
when if_wd_ovs=>co_phase_2.
" If phase 1 is implemented, use the field input for the selection of the table
" If phase 1 is omitted, use values from your own context.
assign ovs_callback_object->query_parameters->*
to <ls_query_params>.
lv_matnr = <ls_query_params>-matnr.
lv_maktx = <ls_query_params>-maktx.
replace all occurences of: '*' in lv_matnr with '%',
'*' in lv_maktx with '%'.
select a~matnr
b~maktx into corresponding fields of table lt_select_list up to 10 rows
from mara as a inner join
makt as b on a~matnr = b~matnr where
( a~matnr like lv_matnr and b~maktx like lv_maktx and b~spras = 'EN' ).
" call business logic for a table of possible values
" lt_select_list = ???
ovs_callback_object->set_output_table( output = lt_select_list ).
when if_wd_ovs=>co_phase_3.
" apply result
assign ovs_callback_object->selection->* to <ls_selection>.
if <ls_selection> is assigned.
ovs_callback_object->context_element->set_attribute(
name = `MATNR`
value = <ls_selection>-MATNR ).
concatenate 'Description from MAKT:'
<ls_selection>-MAKTX
into <ls_selection>-MAKTX separated by space.
ovs_callback_object->context_element->set_attribute(
name = `MAKTX`
value = <ls_selection>-MAKTX ).
endif.
endcase.
endmethod. -
Web dynpro ALV requirement with search help
Hello Experts,
I developed a custom transaction in Web dynpro. It has an ALV display in editable mode where the user can enter Material number, plant, quantity and Batch as input fields for Production confirmation.
There is a requirement to add a search-help to BATCH field similar to the one that appears in std. MFBF transaction. Basically what it means is that I will have to capture the material, plant of that line in ALV table and get the stock and batch details from MCHB table and provide them in search help.
I created a dictionary search help with a search-help exit FM that will extract the details from MCHB table. I am having trouble in extracting the line index to get the material number and plant values from the view to export.
Please help me as to how to extract the line index of an ALV table for which the F4 help was clicked.
Also it would be great if I could find a much simpler and better approach to handle the requirement.
Regards
PratyushaHi,
If you have set the help mode as dictionary search help in your context, and if you have defined your search help to have these importing and exporting parameters, then it will work without you doing anything else. Provided you have mentioned the name of the search help in the structure definition itself. You do not have to write explicit event handlers for dictionary search helps.
Or else, you can use an OVS search help. In that case, in the OVS event handler, you will have a parameter ovs_callback_object. Ovs_callback_object->context_element will give you the element on which the F4 was clicked. If you do a get_static_attributes on that, you will get the values of each attribute. Then you can call your function module to get the Batch field. I think OVS will suit your requirement. You can see examples of OVS in the component demo_value_help in the package swdp_demo.
Hope this helps.
Regards,
Nithya -
Search Help Implementation in Webdynpro
Hello
In my project there is a situation where a table is present which will be populated with data coming from different BAPI.
If I need to add a new row for this table , For the First column I need to have a search help capability . The search help capability should be in such a way that I need to show the Search help in a Table format which has one Master Column ( I.e. tree inside a table ) .
Please can any one suggest me how to go about it.
Thanks,
V VinayVinay,
There is no way to alter OVS (Search Help) functionality in WebDynpro for Java.
Instead you may use pair of InputField + (Button|LinkToAction) and navigate to your own custom view. Here you may use Table with Master column.
VS -
To populate two inputbox based on one f4 search help
Hi,
I have two input box where I need to use a search help for the first input box where I will get the user id but the second input box which is read only should also be populated with the user name from the same database table of the search help simultaneously. I tried using onenter method of the first input box but the problem here is I am gettin the name only after clicking enter button.. I don't need that.. I need it to get populated that instant when the user id is populated.
I hope my writing is not more confusing that I am right now.
Any help will be really appreciated.
Thanks and Regards
TenzinHi Tenzin,
As per told by you that your are not able find the link which I have mentioned.. though I got the component .
With that component check the VIEW - V9, otherwise check the logic given below.
Logic for OVS Search help.
1. Take a Component Usage of WDR_OVS in you component controller.
2. Then take that used component of OVS in your view Controller.
3. Then for which attribute you need the OVS search help, make that input help mode properties to OVS and in the OVS Component usage pass the OVS component usage name.
4. After this bind the attributes to the UI element .
5. Then create a method of type event and assign the OVS event of the component usage of ovs you have created to that event.
After this write this logic within that method.
method on_ovs .
data: l_spfli_node type ref to if_wd_context_node,
l_struc_spfli type ig_componentcontroller=>element_sflight,
l_element type ref to if_wd_context_element,
l_tab_output type table of wdrtest_ovs.
field-symbols: co_phase_1.
nothing to do here
when if_wd_ovs=>co_phase_2.
query
cl_wdr_flights=>get_data(
exporting
tab_name = 'SFLIGHT'
changing
data = l_tab_output ).
ovs_callback_object->set_output_table( output = l_tab_output ).
when if_wd_ovs=>co_phase_3.
apply result
if ovs_callback_object->selection is not bound.
*******TODO exception
endif.
assign ovs_callback_object->selection->* to ).
endif.
endcase.
endmethod.
Regard
Manoj Kumar -
Trigger OVS Value Help by pushing a button?
Hello Experts,
I need to open a OVS value help when a button is pressed instead of prushing F4 in a regular input field.
Is this possible?
Thanks
JohannesHi Johannes Schnatz ,
you cant call a OVS search help in the button action ,
1. the instance attributes populated by system based on the context attribute which instantiate the OVS ,
2 .you cannot assig the ovs event to your button action method
3. if you try to call the OVS event handeler in your action method it will throw dump as
Parameter OVS_CALLBACK_OBJECT contains an invalid value
may be some expert can throw light if i am wrong ,
Regards
Chinnaiya P -
How to assign search help using ovs for select options for ALV in web dynpr
how to assign search help using ovs for select options for ALV in web dynpro
Hi,
refer http://wiki.sdn.sap.com/wiki/display/WDABAP/InputhelpofObjectValueSelectioninWDABAP
http://www.****************/Tutorials/WebDynproABAP/OVS/page1.htm
and http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproAbap-OVSsearch+help
Thanks,
Chandra
Maybe you are looking for
-
Hello guys, I Recently experienced a power outage when i was compiling FPGA VIs. Now every time i compile code the VI server generates an error when it reaches the stage of Generating the programming file. i have made an extract from both the xilinks
-
I've made a Facebook album and it uploaded fine. I put in a photo by accident that I don't want on Facebook. How do I delete the photo out of the Facebook album? When I delete it using the delete key and commnand it removes the photo from the project
-
Sorry if this has been answered before but I couldn't find it anywhere. My bf and I both have the Curve and are on the same provider and plan. We love the messenger service however, for some reason when we are chatting, on my screen it will say he
-
[Security:090398] Invalid Subject error in clustered deployment
Hi, I have a simple Java client that calls an EJB which works fine when the EJB is deployed on a non-clustered server, but it fails intermittently with a [Security:090398]Invalid Subject: ... error when the EJB is deployed on a clustered se
-
Artifacts between Logo and Vertical Menu Bar
See http://www.ottawapatentagency.com Artifact #1: a light grey dot at the joint between the logo and the vertical menu bar, on the right hand side. Artifact #2: on mouse over 'Home' - the top menu item of the vertical menu bar - there appears a ligh