2023 Jun 28 6:33 PM
Hello,
I have a DB table in which there are BUKRS, LIFNR and DMBTR fields. I want to write a select statement that will pick any 10 records but out of those records all of them should have same BUKRS value.. lets say if CC01 is being picked then all 10 records should have same CC01 bukrs. How to achieve this?
2023 Jun 28 6:46 PM
2023 Jun 29 8:42 AM
Same ABAP doc of "SELECT - WHERE", but with table of contents on the left and link to latest ABAP version:
https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abapwhere.htm
2023 Jun 29 6:36 AM
Hi kum28,
You can use
Select * from <DB_table_name> into table @data(lt_tab) where bukrs = 'CC01' up to 10 rows.
Check below links for more details
https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-US/abapselect.htm