Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Assignment of a Value

Former Member
0 Kudos

Hi

I have a Select-Option variable - its value can be SPACE or EMPTY!*

How can I assign these values in INITIALIZATION?

Regards

Santo

6 REPLIES 6

Former Member
0 Kudos

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

JozsefSzikszai
Active Contributor
0 Kudos

hi,

space and empty are equivalent values, but you can easily assign it:

INITIALIZATION.

CLEAR : select_option.

hope this helps

ec

Former Member
0 Kudos

Try like this.

SELECT-OPTIONS SO_WORD FOR WORD DEFAULT 'SPRING' TO 'SUMMER'

OPTION NB SIGN I.

Regards,

Madan.

Former Member
0 Kudos

PLEASE BE SPECIFIC TO THE VALUES OF THE VARIABLE!!

I WANT THE VALUES BE

SPACE and EMPTY

Please suggest the Code!

Thx

0 Kudos

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

0 Kudos

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