Application Development 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: 

Which SQL statement bypassess the table buffer?

Former Member
1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi

reward if usefull

Following are the SQL statements which bypass table buffer; avoid these statements when working with buffered tables.

SELECT ... BYPASSING BUFFER.

SELECT from the database views

SELECT ... DISTINCT ... .

SELECT COUNT, SUM, AVG, MIN, MAX.

SELECT ... ORDER BY (other than the primary key)

SELECT ... FOR UPDATE. (EXEC ... ENDEXEC)

Native SQL statements.

5 REPLIES 5

Former Member
0 Kudos

Hi ,

SELECT (column_syntax)

FROM (dbtab_syntax) bypassing buffer

INTO CORRESPONDING FIELDS OF TABLE itab.

Regards

Former Member
0 Kudos

Hi,

When you are writing the select you need to mention as BYPASSING BUFFER to get the online data from database.

Ex: SELECT MATNR FROM MARA BYPASSING BUFFER INTO TABLE ITAB_MARA.

Regards

Chowdary

Former Member
0 Kudos

Hi ,

Sample code

data : begin of itab occurs 3 ,

ebeln type ebeln ,

ebelp type ebelp ,

end of itab .

select ebeln

ebelp from

ekpo bypassing buffer

into table itab .

Regards

Former Member
0 Kudos

hi

reward if usefull

Following are the SQL statements which bypass table buffer; avoid these statements when working with buffered tables.

SELECT ... BYPASSING BUFFER.

SELECT from the database views

SELECT ... DISTINCT ... .

SELECT COUNT, SUM, AVG, MIN, MAX.

SELECT ... ORDER BY (other than the primary key)

SELECT ... FOR UPDATE. (EXEC ... ENDEXEC)

Native SQL statements.

0 Kudos

Naresh r u really satisfying with these type points u r getting

deepthi and rahul also y r u giving points to only naresh

guys please give some value to this great forum..................