Hello,

Sign up to join our community!

Welcome Back,

Please sign in to your account!

Forgot Password,

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask a question.

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

SAP EWM Help Latest Questions

  • 0
  • 0
DPM125

What is the SELECT Statement in SAP ABAP?

The SELECT statement in SAP ABAP is used to retrieve data from database tables into internal tables or variables. It’s one of the most powerful and frequently used Open SQL statements in ABAP and helps interact with the underlying SAP database layer.

How SELECT Works in ABAP (Step-by-Step)

  1. Specify the columns to be fetched or use * for all columns.
  2. Mention the source table from which data will be retrieved.
  3. Optionally add a WHERE clause to filter data.
  4. Decide the target structure (single variable, work area, internal table).
  5. Process or display the results.

Form Description Use Case
SELECT SINGLE Fetches only 1 row Fetching config or master data
SELECT … INTO TABLE Fetches multiple rows into internal table Bulk data operations
SELECT … ENDSELECT Fetches row-by-row When memory optimization is required
SELECT COUNT(*) Returns the number of rows Aggregation or existence checks
SELECT with JOIN Combines rows from multiple tables Getting related information in one call

Related Questions

Leave an answer

Leave an answer