10-13-2005 3:02 AM
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.
10-13-2005 3: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.
10-13-2005 3: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
10-13-2005 4: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