SAP DATA CONV STR ABEXA



Get Example source ABAP code based on a different SAP table
  



Conversion Rules for Structures
This example demonstrates how structures can be converted from one type to another.

ABAP_SOURCE_CODE
DEMO CL_DEMO_DATA_CONVERSION_STRUCT

ABAP_DESCRIPTION
In this example, two different structures are defined, fs1 and fs2. The prerequisites of the third conversion rule for flat structures apply to both structures and the corresponding rule is also applied. After the assignment of fs1 to fs2, only the result for the first two components is the same as if they were passed component by component. fs2-text is filled with the first five places from fs1-text. None of the remaining components of fs1 are passed.