SAP / SAP Beginner (0 2 yrs) Interview questions
How do you retrieve data from a database table using Open SQL?
The SELECT statement, combined with an INTO clause specifying where the result
should go (a single work area, or an internal table for multiple rows), is the standard way to read from a
database table in ABAP.
" single row SELECT SINGLE * FROM kna1 INTO @DATA(ls_customer) WHERE kunnr = '0000001234'. " multiple rows SELECT * FROM kna1 INTO TABLE @DATA(lt_customers) WHERE land1 = 'US'.
SELECT SINGLE is used when you expect (or only want) at most one matching row, while a plain
SELECT ... INTO TABLE fetches every matching row into an internal table for further processing.
Modern ABAP syntax (using the @ prefix for host variables and inline DATA(...)
declarations) is the current recommended style over older, more verbose declaration patterns.
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
