用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
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/11671405/viewspace-442408/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/11671405/viewspace-442408/