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

about select-option

Hi,

I wanna use a select-options whose options are three conditions A,B,C. Like this: From A,B,C to .

How to implement?

Thank you.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2005 at 02:22 AM

    Julian,

    A Select-Option is in reality a RANGE in ABAP.

    Therefore, it is essantially an internal table.

    Ok so let's say you have a select-option for vbeln and you want to default '123', '456', '789' as three separate sales orders:

    select-options s_vbeln for vbak-vbeln.
    
    at-load-of-program.
    
    perform update_svbeln using: '123',
                                 '456',
                                 '789'.
            
    form update_svbeln using ip_vbeln.
    
      clear s_vbeln.
      s_vbeln-option = 'I'.  "I = include, E = exclude
      s_vbeln-sign   = 'EQ'. "EQ = equals, BT = between, etc
      s_vbeln-low    = ip_vbeln. "Low value
      append s_vbeln.
    
    endform.
    

    This means that your range will be populated with the 3 sales orders from when you run the program.

    Also you can look at the SAP Help (hit F1 inthe ABAP Editor and enter in 'SELECT-OPTIONS') as your key word for more info.

    Hope this helps.

    Cheers,

    Pat.

    PS. Kindly assign Reward Points to the posts you find helpful.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2005 at 02:33 AM

    after you run your report , you will see 'multiple selection' option , just click it.

    a new popup window opens up, here you can give as many single values as you want A, B, C.

    did you got my point.

    regards

    this 'multiple selection' is a button with arrow at the end of you select option

    Message was edited by: Surpreet Singh Bal

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2005 at 03:38 AM

    hi,

    as like the normal select-option using

    select-options s_matnr for mara-matnar

    and in the query

    select ............. where matnr in s_matnr

    and when you run the report in the To column specify A,B,C

    cheers,

    sasi

    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.