2008 Mar 09 5:43 AM
hi,
What are RANGES Tables?
thnks.
2008 Mar 09 5:46 AM
hi,
ranges table is similar to select-options.
But in select-options system will create the internal table automatically, with ranges we will create the internal table explicilty.
remember-if any one give correct try habituate giving points.
Edited by: subas Bose on Mar 9, 2008 6:53 AM
2008 Mar 09 6:16 AM
hi,
Ranges table is similar to select-options.
Eg:
If u want to create a range table to pass to any BAPI call then
DATA : int_res_sel LIKE bapiresrange OCCURS 0 WITH HEADER LINE. " RANGES Table for Resources
then populate it with value
when INT_RES_NO has resource nos.Then
LOOP AT INT_RES_NO.
INT_RES_SEL-SIGN = 'I'.
INT_RES_SEL-OPTION = 'EQ'.
INT_RES_SEL-LOW = INT_RES_NO-NAME.
APPEND INT_RES_SEL.
CLEAR : INT_RES_SEL.
ENDLOOP.
But in case of select options
the SIGN and OPTION are already filled when u enter the value in the select option.......
reward points if its useful..... ... and mark the post answered.....
2008 Mar 09 8:35 AM
HI,
You can use the RANGES statement to create internal tables of the same type as selection tables.
RANGES <rangetab> FOR <f>.
This statement is simply a shortened form of the following statements:
DATA: BEGIN OF <rangetab> OCCURS 0,
SIGN(1),
OPTION(2)
LOW LIKE <f>,
HIGH LIKE <f>,
END OF <rangetab>.
Internal tables created with RANGES have the same structure as selection tables, but they do not have the same functionality.
Selection tables created with RANGES are not components of the selection screen. As a result, no relevant input fields are generated. Also, you cannot use a RANGES table as a data interface in program <prog> called by the following statement:
SUBMIT <prog> WITH <rangetab> IN <table>.
Cheers,
Chandra Sekhar.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |