05-28-2008 8:23 AM
Hi
I have a Select-Option variable - its value can be SPACE or EMPTY!*
How can I assign these values in INITIALIZATION?
Regards
Santo
05-28-2008 8:28 AM
Hi
See this example below.
In the following example Pass SPACE and EMPTY in the LOW and HIGH.
By default it is a character variable low and high are spaces.
Eg. to SELECT-OPTIONS :
-
SELECT-OPTIONS : VENDOR FOR YTXLFA1-LIFNR.
INITIALIZATION.
VENDOR-LOW = ' '. " It specifies the range starting value.
VENDOR-HIGH = ' '. " It specifies the range ending value.
VENDOR-OPTION = 'BT'. " specifies ranges value is in between.
VENDOR-SIGN = 'I'. "specifies both inclussive.
Regards,
Jagadish
05-28-2008 8:29 AM
hi,
space and empty are equivalent values, but you can easily assign it:
INITIALIZATION.
CLEAR : select_option.
hope this helps
ec
05-28-2008 8:31 AM
Try like this.
SELECT-OPTIONS SO_WORD FOR WORD DEFAULT 'SPRING' TO 'SUMMER'
OPTION NB SIGN I.
Regards,
Madan.
05-28-2008 8:34 AM
PLEASE BE SPECIFIC TO THE VALUES OF THE VARIABLE!!
I WANT THE VALUES BE
SPACE and EMPTY
Please suggest the Code!
Thx
05-28-2008 8:36 AM
try like this:
SELECT-OPTIONS : so FOR ...
INITIALIZATION.
so-sign = 'I'.
so-option = 'EQ'.
APPEND so.
If it does not help, than I am not sure if there is any solution.
ec
05-28-2008 8:39 AM
Hi
If you have a select-options like this:
TABLES T001.
SELECT-OPTIONS: S_BUKRS FOR T001-BUKRS.
For space:
INITIALIZATION.
S_BUKRS(3) = 'IEQ'.
APPEND S_BUKRS.
for empty: what do u really mean?
Max