2008 Aug 06 3:21 AM
Hi all,
I have created a select option for status. The status can have value 1 to 5
My requirement is I want to perform a subroutine only when selection screen has status 2
Thanks Vamshi
Hi all,
I have created a select option for status. The status can have value 1 to 5
My requirement is I want to perform a subroutine only when selection screen has status 2
Thanks Vamshi
2008 Aug 06 3:27 AM
You can use the "in" opperator:
data:
r_blah type range of n.
if '2' in r_blah.
Perform FOOBAR.
endif.
~Ian
2008 Aug 06 3:30 AM
HI Maxwell,
Thanks for your reply. What is n here
Cheers
Vamshi
2008 Aug 06 3:35 AM
>Thanks for your reply. What is n here
In this case I was just using a range of data type "N" (Numeric) it could be anything you want. The data statement that I have for a range is similiar to what you would have for a selection option. I was just using the range of type "N" as an example actually.
For your case:
Select-Options:
s_Status for XXXX-Status.
If '2' in s_Status.
Perform f_FunLittleRoutineNamedNed.
endif.~Ian
2008 Aug 06 5:24 AM
Hi,
We can even go for CASE statement.
CASE 's_status'.
WHEN '1' .
perform .....
WHEN '2'.
perform....
WHEN '3'.
perform....
WHEN '4'.
perform....
WHEN '5'.
perform....
ENDCASE.
Hope this helps.
thanx,
dhanashri.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |