Show TOC

Background documentationClass CL_BSP_GET_TEXT_BY_ALIAS Locate this document in the navigation structure

 

Class CL_BSP_GET_TEXT_BY_ALIAS provides a method to fetch OTR alias texts.

Inheritance Hierarchy/Interface Composition
Implemented Interface

-

Super Class

-

Attributes

-

Methods
Method GET_TEXT

Signature

Syntax Syntax

  1. method GET_TEXT
        importing
          LANGUAGE
          ALIAS
        returning
          ALIAS_TEXT.
    
End of the code.

Description

This method fetches an OTR alias text for a specified OTR alias name.

Parameters

LANGUAGE

Current language of SAP system

ALIAS

Name of alias in form ’<Package>/<Aliasname>’

ALIAS_TEXT

Text of alias

Cross References

See also:

Syntax Syntax

Example:

  1. report OTRTEST.
    
      class CL_BSP_RUNTIME definition load.
      data TEXT type STRING.
      TEXT  = CL_BSP_RUNTIME=>GET_OTR_TEXT(
          ALIAS = 'sbsp_test/it00_otr_1' ).
    
      write / TEXT.
    
    
End of the code.