Update content
This commit is contained in:
@@ -572,26 +572,36 @@ For the rich variety of options (where dynamic specification is possible for ABA
|
|||||||
DATA(select_list) = `CARRID, CONNID, COUNTRYFR, COUNTRYTO`.
|
DATA(select_list) = `CARRID, CONNID, COUNTRYFR, COUNTRYTO`.
|
||||||
|
|
||||||
SELECT (select_list)
|
SELECT (select_list)
|
||||||
FROM zdemo_abap_fli
|
FROM zdemo_abap_fli
|
||||||
INTO TABLE @itab.
|
INTO TABLE ...
|
||||||
|
|
||||||
"Dynamic FROM clause
|
"Dynamic FROM clause
|
||||||
|
|
||||||
DATA(table) = `ZDEMO_ABAP_FLI`.
|
DATA(table) = `ZDEMO_ABAP_FLI`.
|
||||||
|
|
||||||
SELECT *
|
SELECT *
|
||||||
FROM (table)
|
FROM (table)
|
||||||
INTO TABLE @itab.
|
INTO TABLE ...
|
||||||
|
|
||||||
|
"Excursion: Dynamic FROM clause and compatible target data object
|
||||||
|
DATA(db_table) = 'ZDEMO_ABAP_CARR'.
|
||||||
|
|
||||||
|
DATA itab TYPE REF TO data.
|
||||||
|
CREATE DATA itab TYPE TABLE OF (db_table).
|
||||||
|
|
||||||
|
SELECT *
|
||||||
|
FROM (db_table)
|
||||||
|
INTO TABLE @itab->*.
|
||||||
|
|
||||||
"Dynamic WHERE clause
|
"Dynamic WHERE clause
|
||||||
"This is an example for using an internal table with a character-like row type
|
"This is an example for using an internal table with a character-like row type
|
||||||
DATA(where_clause) = VALUE string_table( ( `CARRID = 'LH'` )
|
DATA(where_clause) = VALUE string_table( ( `CARRID = 'LH'` )
|
||||||
( `OR CARRID = 'AA'` ) ).
|
( `OR CARRID = 'AA'` ) ).
|
||||||
|
|
||||||
SELECT *
|
SELECT *
|
||||||
FROM zdemo_abap_fli
|
FROM zdemo_abap_fli
|
||||||
WHERE (where_clause)
|
WHERE (where_clause)
|
||||||
INTO TABLE @itab.
|
INTO TABLE ...
|
||||||
```
|
```
|
||||||
|
|
||||||
- Dynamic invoke: Dynamically specifying [procedure](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abenprocedure_glosry.htm "Glossary Entry") calls
|
- Dynamic invoke: Dynamically specifying [procedure](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abenprocedure_glosry.htm "Glossary Entry") calls
|
||||||
|
|||||||
Reference in New Issue
Block a user