Ansicht
Dokumentation

ABENASSIGN_COMPONENT_ABEXA - ASSIGN COMPONENT ABEXA

ABENASSIGN_COMPONENT_ABEXA - ASSIGN COMPONENT ABEXA

PERFORM Short Reference   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Field Symbols, Dynamic Structure Components

This example demonstrates dynamic assignments of structure components using ASSIGN.

Source Code

Execute

Description

A structure is assigned to a generically typed field symbol. The field symbol can only be used to access individual components dynamically. This example shows three different methods and measures their runtime. Fully dynamic access is the most performance-intensive. An access using ASSIGN COMPONENT is better for performance, and using the position is better than using the name.






PERFORM Short Reference   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 717 Date: 20240426 Time: 053355     sap01-206 ( 21 ms )