From c10a845e0cf71bc1861feba99052d7822dffbd7d Mon Sep 17 00:00:00 2001
From: zhangherong <571457620@qq.com>
Date: 星期一, 16 六月 2025 14:13:43 +0800
Subject: [PATCH] art: SAP集成测试代码修改

---
 src/main/java/org/jeecg/modules/sap/service/impl/SAPServiceImpl.java |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/jeecg/modules/sap/service/impl/SAPServiceImpl.java b/src/main/java/org/jeecg/modules/sap/service/impl/SAPServiceImpl.java
index d87e15f..4bcd205 100644
--- a/src/main/java/org/jeecg/modules/sap/service/impl/SAPServiceImpl.java
+++ b/src/main/java/org/jeecg/modules/sap/service/impl/SAPServiceImpl.java
@@ -3,6 +3,7 @@
 import com.sap.conn.jco.JCoDestination;
 import com.sap.conn.jco.JCoFunction;
 import com.sap.conn.jco.JCoParameterList;
+import com.sap.conn.jco.JCoRepository;
 import lombok.SneakyThrows;
 import lombok.extern.slf4j.Slf4j;
 import org.jeecg.config.sap.SapRfcConnectionManager;
@@ -19,10 +20,11 @@
     @Override
     public String test() {
         JCoDestination destination = connectionManager.getDestination();
-        JCoFunction function = destination.getRepository().getFunction("ZPPF_022");
+        JCoRepository repository = destination.getRepository();
+        JCoFunction function = repository.getFunction("ZPPF_022");
 
         if (function == null) {
-            throw new RuntimeException("RFC 鍑芥暟妯″潡 Z_GET_MATERIAL_INFO 鏈壘鍒帮紒");
+            throw new RuntimeException("RFC 鍑芥暟妯″潡 ZPPF_022 鏈壘鍒帮紒");
         }
 
         // 璁剧疆杈撳叆鍙傛暟

--
Gitblit v1.9.3