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

Which SQL statement bypassess the table buffer?

Former Member
1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,219

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
Read only

Former Member
0 Likes
1,219

Hi ,

SELECT (column_syntax)

FROM (dbtab_syntax) bypassing buffer

INTO CORRESPONDING FIELDS OF TABLE itab.

Regards

Read only

Former Member
0 Likes
1,219

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

Read only

Former Member
0 Likes
1,219

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

Read only

Former Member
0 Likes
1,220

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.

Read only

0 Likes
1,219

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