CREATE_DYNAMIC_ITAB SAP Method Create a dynamic internal table









Below is documentation, parameters and attributes of ABAP Method CREATE_DYNAMIC_ITAB within SAP class DTINF_CL_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_CL_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 CREATE_DYNAMIC_ITAB can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method CREATE_DYNAMIC_ITAB

.

NameTypeData TypeDescriptionDefault Value
IV_TABLEImportingTYPE
STRING
Table to process
ET_COMPONENTExportingTYPE
CL_ABAP_STRUCTDESCR=>COMPONENT_TABLE
ABAP Components of the table
CT_FIELD_LISTChangingTYPE
DTINF_TT_TABLE_FIELD_INFOS
Table of key fields



Exceptions of Method CREATE_DYNAMIC_ITAB

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO DTINF_CL_INFORMATION.
DATA: lv_CT_FIELD_LIST TYPE DTINF_TT_TABLE_FIELD_INFOS,
lv_ET_COMPONENT TYPE CL_ABAP_STRUCTDESCR=>COMPONENT_TABLE,
lv_IV_TABLE TYPE STRING,
lv_other TYPE c.

CALL METHOD lo_class=>CREATE_DYNAMIC_ITAB(
EXPORTING
IV_TABLE = lv_IV_TABLE
IMPORTING
ET_COMPONENT = lv_ET_COMPONENT
CHANGING
CT_FIELD_LIST = lv_CT_FIELD_LIST ).

Links to Related Class(s)

DTINF_CL...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!