Ansicht
Dokumentation

ABENCASE_TYPE_OF_RTTI_ABEXA - CASE TYPE OF RTTI ABEXA

ABENCASE_TYPE_OF_RTTI_ABEXA - CASE TYPE OF RTTI ABEXA

BAL_S_LOG - Application Log: Log header data   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

Case Distinction CASE TYPE OF for RTTI

This example demonstrates the case distinction CASE TYPE OF for type description classes.

Source Code

Execute

Description

Actual parameters of different types are passed to the generically typed parameter param of the method main, and an RTTI type description object is created, to which the general object reference variable typedescr points. The case distinction CASE TYPE OF is used to determine a more specific suitable RTTI type description class. An inline declaration after the addition INTO of the statement WHEN TYPE is used to create an object reference variable of this static type and assign the reference to the type description object. Special attributes of the type description objects are accessed in the associated statement blocks.






BAL_S_LOG - Application Log: Log header data   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 1307 Date: 20240425 Time: 132710     sap01-206 ( 33 ms )