SAP Managed Tags: ABAP Development With Release 7.40 ABAP supports so called constructor operators. Constructor operators are used in constructor expressions to create a result that can be used at operand positions. The syntax for constructor expressions is ... operator type( ... ) ... operator...
SAP ABAP 14(中日版)CONSTRUCTOR初期化函数、CLASS级别方法 1 收藏 简述:可以放在任意位置,它的特别之处就在于,CREATE OBJECT出来后,CONSTRUCTOR就会被自动调用,并且会被优先调用,不需要使用->或=>来调用。例子: REPORT ZCLASS5. *---CLASS的定义部分。 CLASS C1 DEFINITION. PUBLIC SECTION. *---普通级别 DATA...
Notes Theobsolete relational operatorscannot be used in theWHEREcondition. Executable Examples
CLASSC1DEFINITION.PUBLIC SECTION.*---普通级别DATA:ATYPEI.METHODS:CONSTRUCTORIMPORTINGT1TYPEI.*---CLASS级别CLASS-DATA:BTYPEIVALUE10.CLASS-METHODS:JIAFAIMPORTINGXTYPEIYTYPEIRETURNINGVALUE(Z)TYPEI.ENDCLASS.*---CLASS的实装部分。CLASSC1IMPLEMENTATION.METHODCONSTRUCTOR."初期化方法,自动的被执行。(不需要在...
WHERE arbgb = 'SABAPDEMOS' INTO TABLE @messages. cl_demo_output=>write( FILTER #( messages WHERE sprsl = 'D' ) ). cl_demo_output=>write( FILTER #( messages WHERE sprsl = 'E' ) ). cl_demo_output=>display( ). Addition 1 ...