sy-repid是这个FM所在FunctionPool的名字, sy-cprog是调用这个FM的Report的程序名。 另外,SY-REPID你不能改变,SY-CPROG像其他数据结构可以为改变。
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...
技术标签: ABAP SY-REPID SY-CPROG1.sy-repid 是当前程序名字,sy-cprog 是调用程序的名字 比如说一个report程序中调用了一个function,这个function输出的两个参数是 sy-repid 和 sy-cprog。这时,sy-repid显示就是这个function所在的FunctionPool的名字(并不是function的名字),sy-cprog是report的名字。 2.sy-...
SAP Managed Tags: ABAP Development Hi Experts, 1.What is the Difference between sy-repid and sy-cprog? 2.I have used "Reuse_alv_fieldcatalog_merge'.In that program i passed types : begin of ty_ekpo, ebeln type ekpo-ebeln, ebelp type ekpo-ebelp, menge type ekpo-menge, meins type...
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的时候...
ABAP SY-REPID和SY-CPROG的区别 1.sy-repid是当前程序名字,sy-cprog是调用程序的名字 比如说一个report程序中调用了一个function,这个function输出的两个参数是sy-repid和sy-cprog。这时,sy-repid显示就是这个function所在的FunctionPool的名字(并不是function的名字),sy-cprog是report的名字。 2.sy-repid是不可...