CREATE_DYNAMIC_TABLE SAP Method Create Dynamic Data Table
Below is documentation, parameters and attributes of ABAP Method CREATE_DYNAMIC_TABLE within SAP class CL_ALV_TABLE_CREATE. 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_ALV_TABLE_CREATE into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Static
This is a Static Method so you can call it directlyThe following technical details of method CREATE_DYNAMIC_TABLE can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CREATE_DYNAMIC_TABLE
.| Name | Type | Data Type | Description | Default Value |
| IT_FIELDCATALOG | Importing | TYPE LVC_T_FCAT | Field Catalog | |
| I_LENGTH_IN_BYTE | Importing | TYPE BOOLEAN | Boolean Variable (X=True, Space=False) | |
| I_STYLE_TABLE | Importing | TYPE CHAR01 | Add Style Table | |
| EP_TABLE | Exporting | TYPE REF TO DATA | Pointer to Dynamic Data Table | |
| E_STYLE_FNAME | Exporting | TYPE LVC_FNAME | ALV Control: Field Name of Internal Table Field |
Exceptions of Method CREATE_DYNAMIC_TABLE
DATA
LVC_FNAME
Example ABAP coding
DATA: lv_EP_TABLE TYPE DATA,
lv_E_STYLE_FNAME TYPE LVC_FNAME,
lv_IT_FIELDCATALOG TYPE LVC_T_FCAT,
lv_I_LENGTH_IN_BYTE TYPE BOOLEAN,
lv_I_STYLE_TABLE TYPE CHAR01,
lv_other TYPE c.
CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE(
EXPORTING
IT_FIELDCATALOG = lv_IT_FIELDCATALOG
I_LENGTH_IN_BYTE = lv_I_LENGTH_IN_BYTE
I_STYLE_TABLE = lv_I_STYLE_TABLE
IMPORTING
EP_TABLE = lv_EP_TABLE
E_STYLE_FNAME = lv_E_STYLE_FNAME ).
Links to Related Class(s)
CL_ALV_T...Full list of available SAP object classes
Search for further information about these or an SAP related objects