Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

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

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8081311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:41:30+00:00 2026-06-05T16:41:30+00:00

Does ABAP support calculated fields in SELECT statement? Such as: SELECT price quantity price*quantity

  • 0

Does ABAP support calculated fields in SELECT statement? Such as:

SELECT price quantity price*quantity AS sum
FROM ...
INTO ...
WHERE ...

If not, let advanced coders tell me what solutions they use to cope with this task.
Do not offer such performance decreasing ways as calculation into temporary variable within SELECT cycle.

SELECT.
...
ENDSELECT.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T16:41:32+00:00Added an answer on June 5, 2026 at 4:41 pm

    Open SQL only supports a couple of aggregate functions. Calculations should be done in memory, after selecting the records and saving the result into an internal table.
    So in short:

    select ... into table itab from ...
    loop at itab assigning <itab_row>.
      " Perform calculations on row here
    endloop.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Per MSDN, The BizTalk Adapter does not support has several limitations, including a lack
Does anyone know of a free tool, similar to what is built into Visual
Sometimes ABAP drives me crazy with really simple tasks such as incrementing an integer
Does jQuery 1.5.1 support attribute selectors in the closest method? Given the structure below,
Does anyone know how to make this code stop the knob from rotating past
Since upgrading from 4.7 to ECC6 the ABAP compiler has become a lot stricter
Does anyone know how I can directly access a function from a PHP class
Why does my ABAP program short dump when I append a line to a
My guess would be in the ABAP memory from the main session, but I'm
does anyone know if iOS Simulator (that goes with XCode) support any kind of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.