1. 用什麼插件在java做報表
個人推薦用echarts,這個插件是網路的開源插件,效果相當不錯文檔完善使用方便,本人目前也在使用,有對應的ECharts - Java類庫,ECharts-Java是一個供Java開發使用的ECharts的開發包,主要目的是方便在Java中構造ECharts中可能用到的全部數據結構,如完整的結構 Option。(http://echarts..com/是對應的官網)希望能夠幫到您。
2. abap調用java
到底誰調用誰啊?
1.ABAP call Java
REPORT zexecute.
*實例 abap調用java文件
DATA para TYPE string.
PARAMETER mytext TYPE objectname.
PARAMETER mytext1 TYPE objectname.
para = 'Test'. "class name
CONCATENATE para mytext mytext1 INTO para SEPARATED BY space.
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
application = 'JAVA' "需要執行的語言
parameter = para "參數
default_directory = 'D:\' "路徑
minimized = 'X'
synchronous = 'WAIT'
operation = 'OPEN'
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
bad_parameter = 3
file_not_found = 4
path_not_found = 5
file_extension_unknown = 6
error_execute_failed = 7
synchronous_failed = 8
not_supported_by_gui = 9
OTHERS = 10.
*
*
WRITE 'Success'.
2.Java call ABAP
用java來訪問SAP的方式不多,一般是JCO,要不就是webservice
要下個JCO.jar包
import com.sap.mw.jco.*;
JCO.Client mConnection = null;
mConnection = JCO.createClient(
"400", // SAP client
"arasoft", // userid
"********", // password
"EN", // language
"host", // application server host name
"00"); // SAP system number
void connect() //Connecting to SAP
void disconnect() //Disconnecting from SAP
void execute(JCO.Function function) //Executing an RFM