Select With Joins in SAP ABAP - Select Statements Types - Sapnuts

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

SELECT with BYPASSING BUFFER in SAP ABAP - Select Statements... about:reader?url=https://www.sapnuts.com/courses/core-abap/select-sta...

sapnuts.com

SELECT with BYPASSING BUFFER in


SAP ABAP - Select Statements types |
Sapnuts.com
Ashok Kumar Reddy

Whenever we use open SQL statements to get fetch data in SAP, it


will get data from buffer area(depends on table buffer settings) for
better performance, but in real world scenarios some tables may
updated very frequently(milliseconds), we may need to bypass
buffer to get real-time data, in that case we will bypass buffer using
'BYPASSING BUFFER' keyword.

Syntax for SELECT WITH BYPASSING BUFFER in SAP ABAP

select * FROM <TABLE> INTO TABLE <ITAB> BYPASSING


BUFFER.

Example for SELECT WITH BYPASSING BUFFER in SAP ABAP

The below example is used to fetch data from MARA(Material


Master) table bypassing buffer.

TYPES: BEGIN OF ty_mara,


matnr TYPE mara-matnr,
mtart TYPE mara-mtart,

1 of 2 8/24/2016 3:00 AM
SELECT with BYPASSING BUFFER in SAP ABAP - Select Statements... about:reader?url=https://www.sapnuts.com/courses/core-abap/select-sta...

END OF ty_mara.
DATA: it_mara TYPE TABLE OF ty_mara,
wa_mara TYPE ty_mara.

START-OF-SELECTION.
SELECT matnr mtart FROM mara INTO TABLE it_mara
BYPASSING BUFFER.

LOOP AT it_mara INTO wa_mara.


WRITE:/ wa_mara-matnr, wa_mara-mtart.
ENDLOOP.

Related Lessons

Was this lesson helpful to you? Yes No 7 People out of 7 think this
lesson helpful

2 of 2 8/24/2016 3:00 AM

You might also like