Code: Alles auswählen.
SELECT BUKRS BELNR GJAHR BLART BLDAT BUDAT FROM BKPF WHERE MANDT EQ 903 AND BUKRS EQ 1000 AND BELNR BETWEEN 1000 AND 2000 AND GJAHR EQ 2007 AND BLART BETWEEN A AND F.
Code: Alles auswählen.
DATA: felder type string,
tabelle type string,
bedingungen type string.
SELECT (felder) FROM (tabelle) INTO workarea WHERE (bedingungen).
Code: Alles auswählen.
Exec SQL.
sql statement
ENDEXEC.
Code: Alles auswählen.
DATA: felder type string,
tabelle type string,
bedingungen type string.
SELECT (felder) FROM (tabelle) INTO workarea WHERE (bedingungen).
Code: Alles auswählen.
TABLES: (p_tabname).
DATA:
itab LIKE TABLE OF (p_tabname).
SELECT (p_fields)
FROM (p_tabname)
INTO itab
WHERE (p_where).