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

number ranges

Former Member
0 Likes
478

In real-time ,we will use number ranges enhancement know,what will be the usual requirement for doing it .

In real-time ,we will use number ranges enhancement know,what will be the usual requirement for doing it .

2 REPLIES 2
Read only

Former Member
0 Likes
459

Hi,

In real time SELECT-OPTIONS & RANGES works for the same purpose. They both are used for the range selection from selection screen. The main diff. between them is, while we use SELECT-OPTIONS system implicitly creates the select options internal table which contains the fields of SIGN,OPTION,LOW & HIGH. But in case of RANGES, this internal table should be defined explicitly.

Refer the below example:

Eg. to SELECT-OPTIONS :

-


REPORT YARSELECT.
TABLES YTXLFA1.
SELECT-OPTIONS : VENDOR FOR YTXLFA1-LIFNR.
INITIALIZATION.
VENDOR-LOW    =   1000.               " It specifies the range starting value.
VENDOR-HIGH    =   2000.               " It specifies the range ending value.
VENDOR-OPTION  =  'BT'.                " specifies ranges value is in between.
VENDOR-SIGN      = 'I'.                     "specifies both inclussive.

APPEND VENDOR.

- - - -
- - - -
SELECT LIFNR LAND1 NAME1 FROM LFA1 INTO TABLE ITAB 
WHERE LIFNR IN VENDOR.

Eg. to RANGES:

-


REPORT YARRANGE.
TABLES YTXLFA1.
RANGES: VENDOR FOR YTXFLA1-LIFNR.

- - - - 
- - - --
- - - - 

SELECT LIFNR LAND1 NAME1 FROM LFA1 INTO TABLE ITAB 
WHERE LIFNR IN VENDOR.

Here with RANGES user has to design an internal table with fields -

SIGN,OPTION,LOW and HIGH EXPLICITLY.

Regards,

Sunil

Read only

Former Member
0 Likes
459

Can you please explain your query in detail?