SAP DESCRIBE DISTANCE ABEXA



Get Example source ABAP code based on a different SAP table
  



Determining Data Object Distances
The example demonstrates how the distance between two data objects can be determined at runtime.

ABAP_SOURCE_CODE
DEMO CL_DEMO_DESCRIBE_DISTANCE

ABAP_DESCRIPTION
Determines the offset and length of a character-like fragment within the struc structure in bytes, accesses the fragment using an offset/length access, and assigns it to a field symbol of type c . Since the structure is not character-like only, the offset/length access takes place using a field symbol, otherwise a syntax error occurs. The field symbol is of the type x, since offsets and lengths are determined in bytes. The field symbol < result> points to the fragment Hey you!.