ASSIGN_TABLE_BY_METHOD SAP Method Assign Table By Method Call
Below is documentation, parameters and attributes of ABAP Method ASSIGN_TABLE_BY_METHOD within SAP class CL_ITEM_TREE_CONTROL. 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 CL_ITEM_TREE_CONTROL 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 ASSIGN_TABLE_BY_METHOD can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method ASSIGN_TABLE_BY_METHOD
.| Name | Type | Data Type | Description | Default Value |
| METHOD_NAME | Importing | TYPE C | Method name | |
| TABLE | Importing | TYPE STANDARD TABLE | Table | |
| TABLE_STRUCTURE_NAME | Importing | TYPE X030L-TABNAME | Structure Name of TABLE in the ABAP Dictionary | |
| TEXT_COLUMN_NAMES | Importing | TYPE STRING_TABLE |
Exceptions of Method ASSIGN_TABLE_BY_METHOD
TABLE_STRUCTURE_NAME_NOT_FOUND - 'Example ABAP coding
DATA: lo_class TYPE REF TO CL_ITEM_TREE_CONTROL.
DATA: lv_METHOD_NAME TYPE C,
lv_TABLE TYPE STANDARD TABLE,
lv_TABLE_STRUCTURE_NAME TYPE X030L-TABNAME,
lv_TEXT_COLUMN_NAMES TYPE STRING_TABLE,
lv_other TYPE c.
CALL METHOD lo_class=>ASSIGN_TABLE_BY_METHOD(
EXPORTING
METHOD_NAME = lv_METHOD_NAME
TABLE = lv_TABLE
TABLE_STRUCTURE_NAME = lv_TABLE_STRUCTURE_NAME
TEXT_COLUMN_NAMES = lv_TEXT_COLUMN_NAMES ).
Links to Related Class(s)
CL_ITEM_...Full list of available SAP object classes
Search for further information about these or an SAP related objects