Application Development and Automation 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: 
Read only

RANGES Tables

Former Member
0 Likes
605

hi,

What are RANGES Tables?

thnks.

hi,

What are RANGES Tables?

thnks.

3 REPLIES 3
Read only

Former Member
0 Likes
579

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

Read only

Former Member
0 Likes
579

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.....

Read only

Former Member
0 Likes
579

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.