SAP ABAP规划 SY-REPID与SY-CPROG差额

 首先。它的两个解释   sy-repid is the name of the current program.  “当前程序的程序名
                                           sy-cprog is the name of the calling program.
   ”调用程序的程序名

    写个简单的程序,调个FM ,你就知道差别了,当程序进入FM的时候

     sy-repid是这个FM所在FunctionPool的名字,
     sy-cprog是调用这个FM的Report的程序名。

   另外,SY-REPID你不能改变,SY-CPROG像其他数据结构可以为改变。

版权声明:本文博主原创文章,博客,未经同意,不得转载。

原文地址:https://www.cnblogs.com/lcchuguo/p/4758228.html