SAP CREATE STRUCTURED DATA ABEXA



Get Example source ABAP code based on a different SAP table
  



Creating Structured Data Objects
This example demonstrates how structured data objects are created.

ABAP_SOURCE_CODE
DEMO CL_DEMO_CREATE_STRUCTURED_DATA

ABAP_DESCRIPTION
Creation of a work area that matches any database table and reads the first few rows (rows) of the database table into this work area using a SELECT loop.
The method CHECK_TABLE_NAME_STR of the class CL_ABAP_DYN_PRG checks whether the entered database table exists and can be used.
See also the executable example for SELECT INTO NEW, where the structure is created implicitly in the INTO clause.