03-10-2013 6:51 AM
I want to create Range table for Set of values for a particular Field.
I have workarea of 1 field with constant 12 values. See below EX.
Now i wanted to know How to create Range table for the below values.
Can range table can be created in below ex in the program itself or it has to created globally.
Explain in detail with steps. where to create it.
For ex:
IF ( wa-field = 'VALUE1' OR wa-field = 'VALUE2' OR wa-field = 'VALUE3' OR
wa-field = 'VALUE4' OR wa-field = 'VALUE5' OR wa-field = 'VALUE6')
ELSEIF
( wa-field = 'VALUE6' OR wa-field = 'VALUE7' OR wa-field = 'VALUE8' OR
wa-field = 'VALUE9' OR wa-field = 'VALUE10' OR wa-field = 'VALUE11')
With regards,
Kishan Raj.K
03-10-2013 12:08 PM
You can easily create a RANGE type internal table to use in IN range statements option. Just read the documentation on RANGE structure definition (TYPES - RANGE OF), and build your range/internal table in few lines of codes.
Regards,
Raymond
03-10-2013 12:08 PM
You can easily create a RANGE type internal table to use in IN range statements option. Just read the documentation on RANGE structure definition (TYPES - RANGE OF), and build your range/internal table in few lines of codes.
Regards,
Raymond
03-11-2013 4:52 AM
But how to use this (TYPES - RANGE OF), in If Condition can it be used in IF.
IF so How to do it.
03-11-2013 5:38 AM
03-11-2013 4:15 AM
Hi Kishan,
If u want to use the same range values in another program means then go for global declaration.
Or else declare them inside the program temporarily.
Thanks.
Pavan.
03-11-2013 5:53 AM
Hi Kishan,
You can find how to create range table in below link
http://help.sap.com/saphelp_470/helpdata/en/9f/dba71f35c111d1829f0000e829fbfe/content.htm
Regards,
Vineesh