Select options using OVS empty
Hi all,
I have created a select options dynamically using OVS.
If the output table is empty my OVS appears empty and i don't want that this appears.
The search help must appear only when the output table is not empty.
How do i solve this?
Thanks
Hi.
My problem has not been repair.
There is no way to disable an OVS at runtime.
See:
cancelling an OVS help?
Thanks a lot.
Similar Messages
-
How to get select option on OVS help.
HI all,
can we have select-option on OVS help screen? if yes how to declare the select option. do we need wds_select_options component? can any explane step by step how to achive this?
OVS is working fine without range. I went through so mant post but not able to catch the starting point of this.
Regards,
DeepthiHi,
check the below thread.
[https://forumsa.sdn.sap.com/thread.jspa?messageID=8331126#8331126]
Regards,
Priya -
Dynamic select-options using parameter
Hi experts,
It the user selects one value from dropdown list, it should generate one select-option using that name. Is it possible?
for example, (pls see my code).
If user selects 'Malek' from parameter, <b>and press 'ENTER'</b>
<b>select-option should display with that name</b> like
Malek malek-low malek-high
And if user selects some other like 'Amran'. It should generate(and append)
Malek malek-low malek-high
amran amran-low amran-high
and so on....
report c.
data: t_return like ddshretval occurs 0 with header line.
data: begin of t_names occurs 0,
name like usr01-bname,
end of t_names.
parameters : i_inspec like usr01-bname.
at selection-screen on value-request for i_inspec.
perform get_names.
form get_names.
t_names-name = 'Malek'.
append t_names.
t_names-name = 'Amran'.
append t_names.
t_names-name = 'Ow CC'.
append t_names.
t_names-name = 'titbit'.
append t_names.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'T_NAMES-NAME'
dynpprog = sy-cprog
dynpnr = sy-dynnr
dynprofield = 'I_INSPEC'
value_org = 'S'
tables
value_tab = t_names.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno with
sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
read table t_return index 1.
endform. "GET_NAMES
Reward guaranteed,
thanks
kakiUse At selection-screen output,use screen internal table..
User Dynamic Selection
at selection-screen output.
select single * from t000md.
loop at screen.
case screen-group1.
when 'REL'.
if not p_old is initial.
screen-input = '0'.
screen-required = '0'.
screen-invisible = '1'.
endif.
modify screen.
when 'BEL'.
if not p_new is initial.
screen-input = '0'.
screen-required = '0'.
screen-invisible = '1'.
endif.
modify screen.
when 'ARB'.
if p_new is initial.
screen-input = '0'.
screen-required = '0'.
screen-invisible = '1'.
endif.
modify screen.
when 'MTA'.
if p_new is initial.
screen-input = '0'.
screen-required = '0'.
screen-invisible = '1'.
endif.
modify screen.
endcase.
endloop. -
Select Options use in ALV Report in ABAP Webdynpro
Hello Experts,
I Already Done ALV Report In webdynpro with use of view Container UI element.But i do not know ALV report with help of select option.so
Kindly Give Me simple Example of Use in select Option In ALV.
Reply ASAP.
Regards,
Ameya KaradkhedkarFirst you need to add the component WDR_SELECT_OPTIONS to the tab "Used components" of your Web Dynpro component and then also in the properties tab of your view. In the layout you need to create another view container and embed the view WND_SELECTION_SCREEN of the new used component to it.
Then in the WDDOINIT method of your view you can write this code (where SEL_OPT is the given name for the used component) in order to set the select option (This example is a select option for a date):
DATA: lo_cmp_usage TYPE REF TO if_wd_component_usage,
lo_interfacecontroller TYPE REF TO iwci_wdr_select_options,
lo_r_helper_class TYPE REF TO if_wd_select_options,
rt_range_date TYPE REF TO data.
* Instantiate used component WDR_SELECT_OPTIONS (SEL_OPT)
lo_cmp_usage = wd_this->wd_cpuse_sel_opt( ).
IF lo_cmp_usage->has_active_component( ) IS INITIAL.
lo_cmp_usage->create_component( ).
ENDIF.
* Call method in used controller
lo_interfacecontroller = wd_this->wd_cpifc_sel_opt( ).
lo_r_helper_class = lo_interfacecontroller->init_selection_screen( ).
* Create select option for the date
CALL METHOD lo_r_helper_class->create_range_table
EXPORTING
i_typename = 'DATS'
RECEIVING
rt_range_table = rt_range_date.
CALL METHOD lo_r_helper_class->add_selection_field
EXPORTING
i_id = 'DATS'
it_result = rt_range_date
i_read_only = ABAP_FALSE.
* Hide unnecessary buttons
CALL METHOD lo_r_helper_class->set_global_options
EXPORTING
i_display_btn_cancel = abap_false
i_display_btn_check = abap_false
i_display_btn_reset = abap_false
i_display_btn_execute = abap_false.
Finally you need to write the following code in the action of the button in order to fetch the range table selected by the user.
DATA: lo_cmp_usage TYPE REF TO if_wd_component_usage,
lo_interfacecontroller TYPE REF TO iwci_wdr_select_options,
lo_r_helper_class TYPE REF TO if_wd_select_options,
rt_date TYPE REF TO data.
FIELD-SYMBOLS: <fs_date> TYPE table.
* Instantiate used component WDR_SELECT_OPTIONS (SEL_OPT)
lo_cmp_usage = wd_this->wd_cpuse_sel_opt( ).
IF lo_cmp_usage->has_active_component( ) IS INITIAL.
lo_cmp_usage->create_component( ).
ENDIF.
* Call method in used controller
lo_interfacecontroller = wd_this->wd_cpifc_sel_opt( ).
lo_r_helper_class = lo_interfacecontroller->init_selection_screen( ).
* get selected range of inspections date
CALL METHOD lo_r_helper_class->get_range_table_of_sel_field
EXPORTING
i_id = 'DATS'
RECEIVING
rt_range_table = rt_date.
ASSIGN rt_date->* TO <fs_date>.
Then you can use the value that is assigned to the field symbol <fs_date> to continue with your ALV. -
SELECT OPTIONS use in select statement
hi,
I have defined my selection screen in the main program.
selection-screen begin of screen 0101 as subscreen.
selection-screen begin of block b1.
select-options: S_KUNNR for KNA1-KUNNR,
selection-screen end of block b1.
selection-screen end of screen 0101.
then in an include in the same module pool, i try to use this in select statement
SELECT * INTO CORRESPONDING FIELDS OF XXX FROM ZPPP WHERE KUNNR IN S_KUNNR.
I get an error saying " the IN operator with S_KUNNR is neither followed by an internal table nor by a valuelist "..what does this mean ?
thksCheck the sample code...
REPORT ztest_mod.
DATA: kunnr TYPE kunnr.
* Custom Selection Screen 0200
SELECTION-SCREEN BEGIN OF SCREEN 0200 AS SUBSCREEN.
SELECT-OPTIONS: s_kunnr FOR kunnr.
SELECTION-SCREEN END OF SCREEN 0200.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_kunnr-low.
BREAK-POINT.
START-OF-SELECTION.
"in this screen i have a button with function code 'SEARCH'
" and a subscreen area with name sub
CALL SCREEN 100.
*& Module STATUS_0100 OUTPUT
MODULE status_0100 OUTPUT.
SET PF-STATUS 'STATUS'.
ENDMODULE. "status_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
MODULE user_command_0100 INPUT.
DATA: it_kunnr TYPE TABLE OF kna1.
CASE sy-ucomm.
WHEN 'SEARCH'.
SELECT * FROM kna1
INTO TABLE it_kunnr
WHERE kunnr IN s_kunnr.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE. "user_command_0100 INPUT
in the flow logic..
PROCESS BEFORE OUTPUT.
MODULE status_0100.
CALL SUBSCREEN sub INCLUDING sy-repid '0200'.
PROCESS AFTER INPUT.
MODULE user_command_0100.
Regards
Vijay Babu Dudla -
I need to pass multiple select options using submit and reutrn
dear all,
my requirement is i need to pass multiple values for work center like(biw01,biw02,biw03 etc) for this iam giving as biwl* and biot* for the tcode zpp_hmm ,using this i am going to get total working hours of perticular equiment.
for this iam using submit and return query but iam unable to pass multiple work centers as input.
my code is
DATA : z_budat TYPE RANGE OF budat,
wa_budat LIKE LINE OF z_budat.
wa_budat-low = '20111001'.
wa_budat-sign = 'I'.
wa_budat-option = 'BT'.
wa_budat-high = '20111031'.
APPEND wa_budat TO z_budat.
CLEAR wa_budat.
*wa_budat-High = '20111031'.
*wa_budat-sign = 'I'.
*wa_budat-option = 'BT'.
*append wa_budat to z_budat.
DATA : z_arbpl TYPE RANGE OF arbpl,
wa_arbpl LIKE LINE OF z_arbpl.
wa_arbpl-low = 'BIWL*'.
wa_arbpl-sign = 'I'.
wa_arbpl-option = 'EQ'.
APPEND wa_arbpl TO z_arbpl.
CLEAR wa_arbpl.
wa_arbpl-high = 'BIOT'.
*wa_arbpl-sign = 'I'.
*wa_arbpl-option = 'BT'.
*APPEND wa_arbpl TO z_arbpl.
SUBMIT zpp_rep_hemm_perf WITH s_bukrs = '1004' WITH s_budat IN z_budat WITH s_werks = 'SMJT'
with S_ARBPL IN Z_ARBPL USING SELECTION-SCREEN '1000' AND RETURN.
but my doubt is whether it is corect or wrong what ever i am passing inputs for arbpl.
thanks in advance.You can pass all parameter (rsparams-kind = 'P') and select-options (rsparams-kind = 'S') as a single internal table of type RSPARAMS. Go on appending the field names and values as rows and pass using SELECTION-TABLE parameter of SUBMIT command.
I gave appending one set of selection values for s_budat field but you can go on appending more values for s_budat and other fields.
DATA: lt_rsparams TYPE TABLE OF rsparams,
ls_rsparams TYPE rsparams.
CLEAR ls_rsparams.
ls_rsparams-selname = 'S_BUDAT'.
ls_rsparams-kind = 'S'.
ls_rsparams-sign = 'I'.
ls_rsparams-option = 'BT'.
ls_rsparams-low = '20111001'.
ls_rsparams-high = '20111031'.
APPEND ls_rsparams TO lt_rsparams.
SUBMIT zpp_rep_hemm_perf WITH SELECTION-TABLE lt_rsparams
USING SELECTION-SCREEN '1000'
AND RETURN. -
Create select-options using internal table
Hello,
I have number of table-fields in one internal table.
I need to create select-options on screen for each of the table field in that internal table.
Can anybody please provide a code for it ?
Thanks.hi,
you can create in this way :
select-options: <name> for itab-<field name>.
example code:
TABLES: vbak. " standard table
TYPE-POOLS: slis.
*-- Structure to hold data from table
TYPES: BEGIN OF tp_itab1,
vbeln LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
werks LIKE vbap-werks,
lgort LIKE vbap-lgort,
END OF tp_itab1.
*-- Data Declaration
DATA: t_itab1 TYPE TABLE OF tp_itab1.
DATA : i_fieldcat TYPE slis_t_fieldcat_alv.
* Selection Screen *
*--Sales document-block
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
SELECT-OPTIONS: s_vbeln FOR vbak-vbeln,
s_posnr FOR vbap-posnr,
s_werks FOR vbap-werks,
s_lgort FOR vbap-lgort.*
SELECTION-SCREEN END OF BLOCK b1.
hope it will help you
regards
Rahul sharma
Edited by: RAHUL SHARMA on Sep 19, 2008 8:25 AM -
Dynamic modification of select options using JSP
Is there any way other than reloading the page for the selection of one dropdown to dynamically change the contents of another dropdown?
ie selecting United States in one drop down will change another dropdown to list all the statesNo there are ways of doing it using javascript. Basically it works like this:
1) load all data that can appear in the second select box in a large array
2) the value of the first select box is an index into that array
3) in the onchange of the first select box, clear the second select box and fill it with new options that you take from the array. Use the value from the first selectbox as the index into that array.
Check this url:
http://www.quirksmode.org/js/options.html -
Dears,
I used select statement like
select rnn
pucustctycode
into table gt_zgrrnnh
from zgrrnnh
where rnn in s_rnn
and lrcdate gt gv_update
and deleteind eq space.
and
select rnn
pucustctycode
appending table gt_zgrrnnh
from zgrrnnh
where rnn in s_rnn
and lrcdate eq gv_update
and lrctime gt gv_uptime
and deleteind eq space.
in my program. and now i want to combinate them using just one select.
and the different select conditions is lrdate and lrtime. and the firest selections has no limit to lrtime, but just limit to lrdate.
Anyone could help me how to use select ............when ..........(...........or............)?
Thanks a lot.
Julie.Change your select query like this:
Select time also, u have to change your internal table Strucutre.
SELECT rnn
pucustctycode
lrctime
INTO TABLE gt_zgrrnnh
FROM zgrrnnh
WHERE rnn IN s_rnn
AND lrcdate GE gv_update
AND deleteind EQ space.
from this you will all the data irrespective of time , but you have time field in your internal table .
Now Loop at your internal table and delete those records whoes LRCTIME is less than GV_UPTIME.
This is one way, i am sure there can be many ways to do this.
One has to keep trying...
Let me know ,if you face further issue..
Regards,
Mayank -
Select-options and Parameters, when to use what?
Hi gurus,
I have been using Parameters for long. Now I want to choose a range of values, which I need to retrieve from database.
I tried using select-options. Can't I use 2 parameters that is parameter1 and parameter2 and mention query BETWEEN para1 AND
para2, and when I use NO INTERVALS and NO EXTENSION together, it behaves same like parameter, then why did SAP gave these
extensions.Hi friend,
Simple differences between Select-options and parameters.
Select-Options Uses keyword 'for'
Parameters Uses keywords 'like', 'type'
Select-Options Uses operator 'in'
Parameters Uses operator '='
Select-Options Provides ranges for selection
Parameters No ranges only single value
Select-Options Creates selection table
Parameters No selection table
Select-Options When i/p blank all records selected
Parameters When i/p blank none is selected
Note:
Select options can act as parameters by using 'no-extension' 'no intervals', but all records will be selected when i/p is blank unlike parameters.
Might be helpful..
Thanks...
Edited by: Guest77 on Feb 10, 2009 5:44 AM -
Problem if Select-Option is INITIAL.
HI all,
I have a question on how to handle to handle Select-Options.
IF some_value IN S_value.
Logic1.
ELSE.
Logic2.
ENDIF.
Problem here is when Select-Option S_value is Empty. It is true for all values in 'some_value'. Is there any easy way to handle it, WITHOUT explicitly checking if the Select-Option IS INITIAL or not, it make my code lot simpler.
Thanks in Advance,
Ravi.Hi,
Why do you want to avoid checking whether select-option is initial. That is the simplest way to handle this.
If you dont want that then my suggestion is use, describe table S_OPTION and get number of lines. You can check whether number of lines is zero or more than zero.
Ex:
data : l type i.
describe table s_option lines l.
if l = 0.
else.
endif.
Still checking for initial is the best option.
Regards,
Ramesh. -
Getting values from select option
Hi,
I have a requirement where the user is going to pass values in select-option in low and high. lets say s_bwart(movement types).
now i have to fetch this bwart values into an internal table.
my internal table will be having only one field that is bwart. so how do i populate my internal table with those values. could any body help me in this.
Thanks in advance
nehaHi, when using SELECT-OPTIONS, use can pretty much do any kind of selection he wants, including ranges, and excluding values, so the best way to handle it is to select from the data base when the user executes the report. for example.
data: begin of ibwart occurs 0,
bwart type mseg-bwart,
end of ibwart.
select-options: s_Bwart for mseg-bwart.
start-of-selection.
select bwart into table ibwart
from <b>T156</b>
where bwart in s_bwart.
Regards,
Rich Heilman -
REPORT_ATTRIBUTE_ERROR_MESSAGE and SELECT-OPTIONS
Hi,
I'm still at a loss on how to use the REPORT_ATTRIBUTE_ERROR_MESSAGE on select-options using WDR_SELECT_OPTIONS.
Do I need to create a Context Node and attributes in the view for the selection options I'm creating? Then, get the attributes of this node and context elements to pass to the REPORT_ATTRIBUTE_ERROR_MESSAGE?
Thanks,
HuntrHi,
I'm still at a loss on how to use the REPORT_ATTRIBUTE_ERROR_MESSAGE on select-options using WDR_SELECT_OPTIONS.
Do I need to create a Context Node and attributes in the view for the selection options I'm creating? Then, get the attributes of this node and context elements to pass to the REPORT_ATTRIBUTE_ERROR_MESSAGE?
Thanks,
Huntr -
Read Selcet Options using DYNP_VALUES_READ
Hi friends,
I have declared a Select option with no intervals, Multiple values can be entered
I am trying to Read the Select options using DYNP_VALUES_READ in AT ...ON HELP REQUEST for another field on selection screen
I am able to read only one value of the selection option using the above FM, Any inputs on how to read the multiple values
Thanks
ChandraP681634 wrote:
Hi friends,
I have declared a Select option with no intervals, Multiple values can be entered
I am trying to Read the Select options using DYNP_VALUES_READ in AT ...ON HELP REQUEST for another field on selection screen
I am able to read only one value of the selection option using the above FM, Any inputs on how to read the multiple values
Thanks
Chandra
FORM VARIANTEN_AUSWAHL *
Auswahl einer ALV Variante für die Liste (F4) *
--> pvari : Variantenname *
FORM varianten_auswahl CHANGING p_vari LIKE disvariant-variant.
**commented by ajay_05/13/2008
DATA: x_exit(1) TYPE c,
x_variant LIKE disvariant,
x_variant2 LIKE disvariant.
DATA: fieldvalues TYPE dynpread OCCURS 1 WITH HEADER LINE,
crepid like sy-repid,
summb LIKE fieldvalues-fieldvalue.
crepid = sy-repid.
Feld SUMMB vom Dynpro einlesen.
(Da der PAI noch nicht durchlaufen ist!)
CLEAR fieldvalues.
REFRESH fieldvalues.
MOVE: 'SUMMB' TO fieldvalues-fieldname.
APPEND fieldvalues.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = crepid
dynumb = '1000'
TABLES
dynpfields = fieldvalues
EXCEPTIONS
INVALID_ABAPWORKAREA = 1
INVALID_DYNPROFIELD = 2
INVALID_DYNPRONAME = 3
INVALID_DYNPRONUMMER = 4
INVALID_REQUEST = 5
NO_FIELDDESCRIPTION = 6
INVALID_PARAMETER = 7
UNDEFIND_ERROR = 8
DOUBLE_CONVERSION = 9
STEPL_NOT_FOUND = 10
OTHERS = 11.
if sy-subrc = 0.
READ TABLE fieldvalues INDEX 1.
summb = fieldvalues-fieldvalue.
else.
clear summb.
endif.
Aktueller Reportname
x_variant-report = sy-repid.
... Variantenname
x_variant-variant = p_vari.
Anzeigevarianten für (Nicht)Summenbericht unterschiedlich!
IF summb = 'X'.
x_variant-handle = 'SUMX'.
ELSE.
x_variant-handle = ''.
ENDIF.
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
is_variant = x_variant
i_save = 'A'
IMPORTING
e_exit = x_exit
es_variant = x_variant2
EXCEPTIONS
not_found = 2.
IF sy-subrc = 2.
Keine Varianten für den Report vorhanden
MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
IF x_exit = space.
Augewählten Variantennamen übernehmen
p_vari = x_variant2-variant.
ENDIF.
ENDIF.
ENDFORM. "varianten_auswahl
Edited by: Ajay kumar on May 11, 2009 8:03 AM
Edited by: Ajay kumar on May 11, 2009 8:04 AM -
I'm having a problem, I made a web dynpro application with select-options (using component reuse). But now I need to change the whole lay-out to a flex application. Is there a way to get the select-options in flex?
Regards,
Geert-JanHi Geert-Jan,
There is no such equally matched control component in Flex to replace as is SELECT-OPTION.
But you can give user ComboBox/TextInput controls to specify Operator (e.g. BT,EQ,GT etc as combobox entries), Low and High Values (simple text input fields or Combobox as per requirement).
Then passing parameters to your query according to Operator selected.
switch(Operator)
case 'BT':
// use where clause as between Low and high
break;
case 'EQ':
// use where clause as equals Low only
break;
default:
Alert.show("Error in input");
break;
It's easy to implement such logic.
Hope this will help..
Regards,
Vivek
Maybe you are looking for
-
Macbook vs Macbook Pro for Mainstage
I'm currently deciding between these:- -Macbook 2ghz, 2GB RAM, 200GB (5400rpm) HD -Macbook Pro 2.2ghz (15"), 2GB RAM, 200GB (7200rpm) HD There's a substantial price difference (£500, ~$1000) between the two. The main use for the laptop will be live u
-
CR4E "file not found" while trying to run CR project
The only way I can run the .jsp file which calls my crystal report is by stopping Tomcat6 then right clicking on the .jsp file and clicking "run on server". Of course when I do this none of my other java servlets or .jsp files work. If I start up To
-
Can I dump out the data point of a curve in the equalizer?
Hi all, After using the equalizer, I would like to dump out the data point of the following curve. Is there any method to dump out the data points? Thanks a lot for your kindly help. Leo
-
Cannot Generate a PDF from Word 2007
I have inherited a 100-page file in Word 2007, and have just encountered a problem when generating a PDF. (BTW, I have Adobe Reader installed, and I have not yet receieved Acrobat for generating a PDF.) To reduce file size and to send the file to o
-
How do i get ios on my ipod touch 4th generation
I am trying to download apps on my ipod but it says that i need ios and i dont know how to put that on my ipod.