zhangherong
2025-06-17 0ecd8b8c158436b23298b66b64eaef0438b6425b
src/main/java/org/jeecg/modules/sap/service/impl/SAPServiceImpl.java
@@ -11,6 +11,9 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Arrays;
import java.util.Collections;
@Service
@Slf4j
public class SAPServiceImpl implements SAPService {
@@ -28,9 +31,8 @@
        }
        // 设置输入参数
//        JCoParameterList input = function.getImportParameterList();
//        input.setValue("MATERIAL_ID", materialId); // 参数名需与 SAP 函数定义一致
//        function.getImportParameterList().setValue("MATERIAL_ID", 0);
        JCoParameterList input = function.getImportParameterList();
        input.setValue("ZTAB_WERKS", Collections.singletonList("2301")); //参数名需与 SAP 函数定义一致
        // 执行调用
        function.execute(destination);