SAP CREATE DATA VIA RTTC ABEXA

Get Example source ABAP code based on a different SAP table
  


ARTIClE

Creating a Structure Using RTTC
The example demonstrates how a structure is created using RTTC.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
Dynamic definition of a structure with two components using the GET method of the CL_ABAP_STRUCTDESCR class. The description of the components of the structure is provided in the internal table comp_tab. If no type description object exists for this structure yet, it is created by the GET method.
The method CHECK_TABLE_NAME_STR of the class CL_ABAP_DYN_PRG checks whether the database table specified exists and can be used.