1. sy-repid is the name of the current program.
sy-cprog is the name of the calling program.
比如在一个Function里面设置断点,sy-repid的这个FM所在FunctionPool的名字,sy-cprog是调用这个FM的Report的程序名。
2. sy-repid 不可以人为更改,sy-cprog可以[@more@]
sy-cprog is the name of the calling program.
比如在一个Function里面设置断点,sy-repid的这个FM所在FunctionPool的名字,sy-cprog是调用这个FM的Report的程序名。
2. sy-repid 不可以人为更改,sy-cprog可以[@more@]
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/15434882/viewspace-1027754/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/15434882/viewspace-1027754/
本文介绍了ABAP程序中SY-Repid与SY-Cprog变量的作用及应用场景。SY-Repid用于标识当前执行的程序名称,而SY-Cprog则记录了调用当前程序的上级程序名。这两个系统变量对于理解程序间的调用关系十分重要。
2099

被折叠的 条评论
为什么被折叠?



