源代码:
*&---------------------------------------------------------------------*
*& Report ZYTEST
*&
*&---------------------------------------------------------------------*
*& ABAP中寻址的应用
*&
*&---------------------------------------------------------------------*
REPORTZYTEST.
PARAMETERS:P_NUMTYPEPDECIMALS2.
WRITE:/1'数字:',P_NUM.
DATA(STR) ='1234567890abc'.
WRITE('P_NUM')TOSTR.
WRITE:/1'常量寻址:',STR.
CLEARSTR.
DATA(FLG) ='P_NUM'.
WRITE(FLG)TOSTR.
WRITE:/1'变量寻址:',STR.
执行结果:
领取专属 10元无门槛券
私享最新 技术干货