Skip to Content
author's profile photo Former Member
Former Member

Assignment of a Value

Hi

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

How can I assign these values in INITIALIZATION?

Regards

Santo

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 28, 2008 at 07: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 28, 2008 at 07:29 AM

    hi,

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

    INITIALIZATION.
    
    CLEAR : select_option.

    hope this helps

    ec

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 28, 2008 at 07:31 AM

    Try like this.

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

    OPTION NB SIGN I.

    Regards,

    Madan.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 28, 2008 at 07:34 AM

    PLEASE BE SPECIFIC TO THE VALUES OF THE VARIABLE!!

    I WANT THE VALUES BE

    SPACE and EMPTY

    Please suggest the Code!

    Thx

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.