RFC接口調用SAP若是有異常會經過com.sap.mw.jco.JCO$Exception: 拋出異常
在開發中遇到的異常有以下git
用戶名密碼多是錯誤或者用戶無權限,確認用戶,必要時聯繫SAP負責人,檢查用戶
(103) RFC_ERROR_LOGON_FAILURE: ##.#####,####
(103) RFC_ERROR_LOGON_FAILURE: Name or password is incorrect (repeat logon)函數
call信息沒有填寫完整,檢查配置文件各個SAP配置信息是否完整
(101) RFC_ERROR_PROGRAM: Missing R3NAME=... or ASHOST=... in connect_param in RfcOpenExserver
ip地址失敗:
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed接口
組權限訪問 server文件沒更新.
(102) RFC_ERROR_COMMUNICATION:Connect to message server failedip
C:\WINNT\system32\drivers\etc開發
端口號錯誤報錯信息:
(103) RFC_ERROR_LOGON_FAILURE: ## 502 ########it
超時:
(103) RFC_ERROR_LOGON_FAILURE: Timeoutio
執行函數,函數的問題
(104) RFC_ERROR_SYSTEM_FAILURE: Error in module RSQL of the database interface.執行函數table
(104) RFC_ERROR_SYSTEM_FAILURE: An error occurred when receiving a complex parameter.module
(106) JCO_ERROR_RESOURCE: Trying to access row values in a table which does not have any rows yet
返回的表沒有值.那個表連第一行都沒有,取不到
(106) JCO_ERROR_RESOURCE: Trying to access row values in a table which does not have any rows yet
語法錯誤
(104) RFC_ERROR_SYSTEM_FAILURE: Syntax error in program SAPMV50A
找不到行
(106) JCO_ERROR_RESOURCE: Trying to access row values in a table which does not ha:ve any rows yet
輸入參數不能插入SAP函數輸入字段中.(122) JCO_ERROR_CONVERSION: Integer '4234243' has to many digits at field PO_ITEM