You are on page 1of 4

25/05/13

ABAP RANGE statement

Tweet

Share Share

SAP Development ABAP Date Processing Data Manipulation ABAP Debugging Dynamic ABAP Change History

RANGE statement - Example ABAP code to demonstrate the RANGE command


The 'type range of' statement is very useful when writing ABAP programs allowing you to restrict the retrieval of data when performing a database select statement. It basically replicates the restriction abilities of the report select-option. Below are a few examples of the various ways of populating and using a range table.

SAP Jobs - Post a Job Sr Project Manager - SAP


24/5/2013 09:40:55

Sr Project Manager - SAP(Job Number: INF00050T) JOIN US * C o d et od e m o n s t r a t ep o p u l a t i n ga n du s i n gr a n g et a b l e s AS A SENIOR PROJECT * & MANAGER Similar Industry * Titles and Key Words: ... * &R e p o r t Z R A N G E S T A T E M E N T * & SAP BI Project Manager
* & - 24/5/2013 02:50:04 * Adecco Engineering and R E P O R T Z R A N G E S T A T E M E N T . T Y P E S :B E G I NO Ft _ e k k o , e b e l nT Y P Ee k p o e b e l n , e b e l pT Y P Ee k p o e b e l p , s t a t uT Y P Ee k p o s t a t u , a e d a tT Y P Ee k p o a e d a t , m a t n rT Y P Ee k p o m a t n r , m e n g eT Y P Ee k p o m e n g e , m e i n sT Y P Ee k p o m e i n s , n e t p rT Y P Ee k p o n e t p r , p e i n hT Y P Ee k p o p e i n h , E N DO Ft _ e k k o .

Technical, a division of the world leader in the recruitment of engineering and information technology ... Sr Project Manager - SAP Release Management
13/5/2013 05:38:20

Sr Project Manager - SAP Release Management(Job Number: INF00052J) JOIN US AS A SENIOR PROJECT D A T A :i t _ e k k oT Y P ES T A N D A R DT A B L EO Ft _ e k k oI N I T I A LS I Z E0 , MANAGER Similar Industry ... w a _ e k k oT Y P Et _ e k k o . Technical Systems Analyst SAP-ITS d a t a :r _ e b e l nt y p er a n g eo fe k k o e b e l n , " r a n g et a b l e
w a _ e b e l nl i k el i n eo fr _ e b e l n . r a n g et a b l e " w o r ka r e af o r

30/4/2013 11:19:02

We're hiring a developer / BSA for permanent assignment to our Schedule I banking client (Bay & King, Toronto location). This ... Technical Systems Analyst SAP-ITS View more Jobs

Join the Mailing List


Enter your name and email address below : Name: Email: Subscribe Unsubscribe

GO
Get your Free Mailing List
by Brav enet.com

www.sapdev.co.uk/tips/tips_range.htm

1/4

25/05/13

ABAP RANGE statement

Search * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * S T A R T O F S E L E C T I O N S T A R T O F S E L E C T I O N . * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *p o p u l a t er a n g et a b l et or e c e i v ea l le n t r i e s r e f r e s hr _ e b e l n . s e l e c te b e l ne b e l ps t a t ua e d a tm a t n rm e n g em e i n sn e t p rp e i n h f r o me k p o i n t ot a b l ei t _ e k k o w h e r ee b e l ni nr _ e b e l n . * * * *

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *p o p u l a t er a n g et a b l et or e c e i v es p e c i f i cv a l u e w a _ e b e l n s i g n =' I ' . " I=i n c l u d e ,E=e x c l u d e w a _ e b e l n o p t i o n=' E Q ' . " E Q ,B T ,N E. . . . w a _ e b e l n l o w =' 1 2 3 4 5 6 7 8 ' . * w a _ e b e l n h i g h = " n o tn e e d e du n l e s su s i n gt h eB To p t i o n a p p e n dw a _ e b e l nt or _ e b e l n . s e l e c te b e l ne b e l ps t a t ua e d a tm a t n rm e n g em e i n sn e t p rp e i n h f r o me k p o i n t ot a b l ei t _ e k k o w h e r ee b e l ni nr _ e b e l n . * * * *

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * p o p u l a t er a n g et a b l et or e c e i v ee n t r i e sw i t h i nar a n g e w a _ e b e l n s i g n =' I ' . " I=i n c l u d e ,E=e x c l u d e w a _ e b e l n o p t i o n=' B T ' . " E Q ,B T ,N E. . . . w a _ e b e l n l o w =' 1 1 1 1 1 1 1 1 ' . w a _ e b e l n h i g h =' 9 9 9 9 9 9 9 9 ' . a p p e n dw a _ e b e l nt or _ e b e l n . s e l e c te b e l ne b e l ps t a t ua e d a tm a t n rm e n g em e i n sn e t p rp e i n h f r o me k p o i n t ot a b l ei t _ e k k o w h e r ee b e l ni nr _ e b e l n . * * * *

www.sapdev.co.uk/tips/tips_range.htm

2/4

25/05/13

ABAP RANGE statement

Comments (4)
Sort by: Date Rating Last Activity Manuraj 7 weeks ago Can you please tell me how to export range object into a memory id ? Reply 1 reply active 7 weeks ago Mart 7 weeks ago Just the same as any other object, export r_ebeln to memory id sy-uname. Reply sugeng 136 weeks ago i like this Reply DDK 172 weeks ago 0 +1 0 0

Login

Report

Report

Report

See http://ddkonline.blogspot.com/2010/02/how-to-perf... for another sample of usage Reply Report

Post a new comment


Enter text right here!

Comment as a Guest, or login: Name


Displayed next to your comments.

Email
Not displayed publicly.

Website (optional)
If you have a website, link to it here.

Subscribe to None SAP Development Help

Submit Comment

SAP Development ABAP Date Processing Data Manipulation ABAP Debugging Dynamic ABAP Change History

Search

M Share | S S S S S S S S S S

www.sapdev.co.uk/tips/tips_range.htm

3/4

25/05/13

ABAP RANGE statement

Contact Us

Message Board

Partners

Terms of Service

Privacy Policy

Advertise

SAPDev

www.sapdev.co.uk/tips/tips_range.htm

4/4

You might also like