SAP CREATE DATA VIA RTTC ABEXA



Get Example source ABAP code based on a different SAP table
  



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

ABAP_SOURCE_CODE
DEMO CL_DEMO_CREATE_DATA_VIA_HANDLE

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.