on 09-02-2008 2:49 PM
Hi All,
I am trying to include a varibale which has Selection option. Can you please have the variable default selection automatically DEFAULT to u201CEXCLUDEu201D ???
Currently, its taking "INCLUDE".
Please suggest.
Regards,
Hi,
I believe you can do that with an exit variable ready for input.
Then in the code in the step 1 (step just before the variable entry) you can insert the value(s) you want with the selection option = 'E' (exclude).
There you go,
Diogo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The way around is take the input and restrict it as exclude at the query level and put the description infront of the variable that the selections are exculded.
I know this is the not what u want but this is the easiest way and mostly used.
but as said try for exit variables and here all you have have to do is in place of EQ you have to put NEQ thats all !
Thanks
Ajeet
Ok,
This is a very simple example:
l_s_range should be defined as a global variable like this:
DATA: l_s_range TYPE rsr_s_rangesid.
WHEN 'VAR_NAME'.
IF i_step = 1.
CLEAR l_s_range.
l_s_range-sign = 'E'.
l_s_range-low = '1234'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDIF.
Create a user exit variable ready for input and with the example above when the selection screen appears of the variable entry of the query the variable with the name VAR_NAME is gonna be filled by default with the value different (excluded EQ) than 1234.
Hope this helps,
Diogo.
try and exclude values in the free selections and change them later in the report.
There isn't a way to change the default to EXCLUDE.
I believe it can be done as Diogo mentioned. never did it myself.
Edited by: Raj Coppar on Sep 2, 2008 9:59 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Yes, You can have the default value.
Goto Bex analyser and open your query and goto your infoobject restriction and right click on your variable then you can see the default value. Just provide the defualt value and save.
Regards,
Chama.
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.