SELECT_FROM_DB SAP Method of class /BOBF/CL_DAC_LEGACY_TABLE
Below is documentation, parameters and attributes of ABAP Method SELECT_FROM_DB within SAP class /BOBF/CL_DAC_LEGACY_TABLE. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name /BOBF/CL_DAC_LEGACY_TABLE into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Instance
This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.The following technical details of method SELECT_FROM_DB can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method SELECT_FROM_DB
.| Name | Type | Data Type | Description | Default Value |
| IT_DATA | Importing | TYPE ANY TABLE | ||
| IT_WHERE | Importing | TYPE LTT_STRING_TAB | ||
| IV_DB_TABLE_NAME | Importing | TYPE CSEQUENCE | ||
| IR_RANGE | Importing | TYPE REF TO DATA | ||
| IT_FOR_ALL_ENTRIES | Importing | TYPE ANY TABLE | ||
| IV_FROM_CLAUSE | Importing | TYPE STRING | ||
| IV_SELECT_FIELDS | Importing | TYPE CSEQUENCE | ||
| ET_RESULT | Exporting | TYPE ANY TABLE | ||
| EV_NUM_READ_RECORDS | Exporting | TYPE I |
Exceptions of Method SELECT_FROM_DB
ANY TABLE
Example ABAP coding
DATA: lo_class TYPE REF TO /BOBF/CL_DAC_LEGACY_TABLE.
DATA: lv_ET_RESULT TYPE ANY TABLE,
lv_IT_DATA TYPE ANY TABLE,
lv_IT_WHERE TYPE LTT_STRING_TAB,
lv_IV_DB_TABLE_NAME TYPE CSEQUENCE,
lv_EV_NUM_READ_RECORDS TYPE I,
lv_IR_RANGE TYPE DATA,
lv_IT_FOR_ALL_ENTRIES TYPE ANY TABLE,
lv_IV_FROM_CLAUSE TYPE STRING,
lv_IV_SELECT_FIELDS TYPE CSEQUENCE,
lv_other TYPE c.
CALL METHOD lo_class=>SELECT_FROM_DB(
EXPORTING
IT_DATA = lv_IT_DATA
IT_WHERE = lv_IT_WHERE
IV_DB_TABLE_NAME = lv_IV_DB_TABLE_NAME
IR_RANGE = lv_IR_RANGE
IT_FOR_ALL_ENTRIES = lv_IT_FOR_ALL_ENTRIES
IV_FROM_CLAUSE = lv_IV_FROM_CLAUSE
IV_SELECT_FIELDS = lv_IV_SELECT_FIELDS
IMPORTING
ET_RESULT = lv_ET_RESULT
EV_NUM_READ_RECORDS = lv_EV_NUM_READ_RECORDS ).
Links to Related Class(s)
/BOBF/CL...Full list of available SAP object classes
Search for further information about these or an SAP related objects