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的程序名。 ...
首先,它的两个解释 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的程序名。
*部分生产系统这两个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' . "跳过后面两个性能可能很...
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 ...
lv_programTYPEsy-cprog,lv_transactionTYPEsy-cproc.lv_program=SY-CPROG.lv_transaction=SY-CPROC.WR...
程式名,目前的主程式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-...
增强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().*...
SY-CPROG 和 SY-CPROC 用于获取当前正在执行的程序的名称和事务代码。 TypeScript 复制代码 9 1 2 3 4 5 6 DATA:lv_programTYPEsy-cprog,lv_transactionTYPEsy-cproc.lv_program=SY-CPROG.lv_transaction=SY-CPROC.WRITE:'Current program is',lv_program,'Current transaction code is',lv_transaction...
i_callback_program = sy-cprog i_callback_user_command = 'USER_COMMAND' i_structure_name = 'CDHDR' is_layout = gs_layout TABLES t_outtab = t_cdhdr. *---* * FORM USER_COMMAND * *---* FORM user_command USING u_ucomm TYPE syucomm us_selfield TYPE ...