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-...
首先,它的两个解释 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的程序名。
1. sy-repid 是当前程序名字, sy-cprog 是调用程序的名字 比如一个report程序中被调用Function,sy-repid的这个FM所在FunctionPool的名字(不是function名字),sy-cprog是调用这个FM的Report的程序名。 2. sy-repid 不可以更改,sy-cprog可以人为更改 如下: 以上。
SY-CPROG:ABAP 程序,外部过程中的调用者 SY-CALLD:ABAP 程序, ABAP 程序调用模式 SY-BATCH:后台的程序运行 (X) SY-BINPT:批输入,批次输入下的程序运行 SY-SLSET:选择屏幕,变式名称 3, 逻辑关联 SY-SUBRC:返回值, ABAP 报表之后返回值 执行成功,返回值为0. SY-INDEX:循环,当前通过的编号 SY-TABIX:表索...
WRITE:'Current date is', lv_date,'Current time is', lv_time.(4)SY-CPROG 和 SY-CPROC :...
*部分生产系统这两个SQL语句执行很久. 导致DB02界面卡顿 *可以通过上下文. 这两个卡顿的SQL语句在的位置. 增强 METHOD COPY_SYSTEM_INFO 返回 *ENHANCEMENT 1 Z_BC_ADJUST_ZDB02. "active version ** * IF SY-CPROG = 'ZBC_DB02'. * if_dba_database~sql_possible = 'M' . "跳过后面两个性能可能很...
程式名,目前的主程式SY-CPROG: ABAP 程式名SY-SYSID: R/3 系統,R/3 系統名稱SY-UCOMM: 畫面,PAI 驅動的功能代碼,一般用來參照定義變量SY-INDEX : 当前LOOP循环过的次数 READ TABLE it_po INDEX 1 此時變量值1SY-TABIX: 当前处理的是internal table 的第几笔下面說下sy-index 和 sy-...
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 ekpo-meins, netpr type ekpo-netpr, end of ...
增强METHODCOPY_SYSTEM_INFO返回*ENHANCEMENT1Z_BC_ADJUST_ZDB02."active version***IFSY-CPROG='ZBC_DB02'.*if_dba_database~sql_possible='M'."跳过后面两个性能可能很差的SQL语句"*ENDIF.*ENDENHANCEMENT.**if_dba_database~sql_possible='M'以便跳过后续两个SQL.**CALLMETHODme->copy_system_info().*...
You need to pass an input parameter with sy-repid value to have the right calling program in the FM. Regards sebastien Reply Former Member 2006 Oct 19 3:35 PM 0 Kudos 1,298 SAP Managed Tags: ABAP Development SY-REPID : It is name of the current program SY-CPROG : Name ...