1.SM59建立不同CLIENT链接
以下是建立300与500环境链接类推正式区即可
注意不设置密码会报错 ‘“00024No authorization to log on as a Trusted System (L-RC=1002
T-RC=2).##############”’
不设置密码报错
“00024No authorization to log on as a Trusted System (L-RC=1002
T-RC=2).##############”
2.取不同CLIENT数据函数,要使用远程调用模式
主要点一定要发版到你需要取数的环境才可正常使用
不然会报错 “Function module “ZFM_GET_TR” not found.”
报错"Function module “ZFM_GET_TR” not found."
源码
FUNCTION zfm_get_tr.
*“----------------------------------------------------------------------
"“本地接口:
*” EXPORTING
*” VALUE(EV_STATUS) TYPE CHAR1
*" VALUE(EV_MESSAGE) TYPE CHAR100
*" TABLES
*" IT_E070 STRUCTURE E070 OPTIONAL
*" ET_E070 STRUCTURE E070 OPTIONAL
*"----------------------------------------------------------------------
IF it_e070[] IS NOT INITIAL.
SELECT
*
FROM e070
INTO TABLE et_e070
FOR ALL ENTRIES IN it_e070
WHERE trstatus = 'R'
AND trkorr = it_e070-trkorr.
IF sy-subrc = 0.
ev_status = 'S'.
ev_message = '查询成功'.
ELSE.
ev_status = 'E'.
ev_message = '查询失败'.
ENDIF.
ENDIF.
ENDFUNCTION.
3.请求号检查程序
源码
注意点:本次保存即可,不用保存到请求号发版
REPORT ztr.
- 事务代码: ZTR
- 程序名称: ZTR
- 程序目的:ZTR-请求号状态
- 开发人员:
*(修改日志)-------------------------------------------------------- - 日志号 修改人 修改时间 修改说明 传输号码
-
- 001
======================================================================
- INCLUDE
======================================================================
INCLUDE ztr_top.
INCLUDE ztr_f01.
======================================================================
- AT SELECTION-SCREEN.
======================================================================
AT SELECTION-SCREEN OUTPUT.
======================================================================
- INITIALIZATION
=================