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: 

about select-option

Former Member
0 Kudos

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.

3 REPLIES 3

former_member221770
Contributor
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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