GET_TC_FOR_TABLES SAP Method Get the TC which contain given table
Below is documentation, parameters and attributes of ABAP Method GET_TC_FOR_TABLES within SAP class DTINF_IF_INFORMATION. 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 DTINF_IF_INFORMATION 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 GET_TC_FOR_TABLES can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method GET_TC_FOR_TABLES
.| Name | Type | Data Type | Description | Default Value |
| IV_NO_FIELDS | Importing | TYPE BOOLEAN | Ignore fields | |
| IV_ONLY_PRIM_TAB | Importing | TYPE BOOLEAN | Boolean Variable (X=True, -=False, Space=Unknown) | |
| IV_TABNAME1 | Importing | TYPE TABNAME | Table Name | |
| IV_TABNAME2 | Importing | TYPE TABNAME | Table Name | |
| ET_RESP_TAB | Exporting | TYPE DTINF_TT_RESP_TAB | Grouping of TC, contained tables and responsibility | |
| ET_TC_FIELDS | Exporting | TYPE DTINF_TT_TC_FIELDS | Table of TC field links | |
| ET_TC_INFO | Exporting | TYPE DTINF_TT_TC_INFO | Table type of DTINF_TC_INFO / DTINF_TC_INFO_C | |
| ET_TC_ORDER | Exporting | TYPE DTINF_TT_TC_ORDER | Table type of TC order for data collection | |
| ET_TC_TABLES | Exporting | TYPE DTINF_TT_TC_TABLES | Table of TC table links |
Exceptions of Method GET_TC_FOR_TABLES
DTINF_TT_RESP_TAB
DTINF_TT_TC_FIELDS
DTINF_TT_TC_INFO
DTINF_TT_TC_ORDER
DTINF_TT_TC_TABLES
Example ABAP coding
DATA: lo_class TYPE REF TO DTINF_IF_INFORMATION.
DATA: lv_ET_RESP_TAB TYPE DTINF_TT_RESP_TAB,
lv_ET_TC_FIELDS TYPE DTINF_TT_TC_FIELDS,
lv_ET_TC_INFO TYPE DTINF_TT_TC_INFO,
lv_ET_TC_ORDER TYPE DTINF_TT_TC_ORDER,
lv_ET_TC_TABLES TYPE DTINF_TT_TC_TABLES,
lv_IV_NO_FIELDS TYPE BOOLEAN,
lv_IV_ONLY_PRIM_TAB TYPE BOOLEAN,
lv_IV_TABNAME1 TYPE TABNAME,
lv_IV_TABNAME2 TYPE TABNAME,
lv_other TYPE c.
CALL METHOD lo_class=>GET_TC_FOR_TABLES(
EXPORTING
IV_NO_FIELDS = lv_IV_NO_FIELDS
IV_ONLY_PRIM_TAB = lv_IV_ONLY_PRIM_TAB
IV_TABNAME1 = lv_IV_TABNAME1
IV_TABNAME2 = lv_IV_TABNAME2
IMPORTING
ET_RESP_TAB = lv_ET_RESP_TAB
ET_TC_FIELDS = lv_ET_TC_FIELDS
ET_TC_INFO = lv_ET_TC_INFO
ET_TC_ORDER = lv_ET_TC_ORDER
ET_TC_TABLES = lv_ET_TC_TABLES ).
Links to Related Class(s)
DTINF_IF...Full list of available SAP object classes
Search for further information about these or an SAP related objects