SapRfcClient
Path
com.roma.apic.livedata.client.v1.SapRfcClient
Description
This class is used to access SAP functions in RFC mode.
Example
importClass(com.roma.apic.livedata.client.v1.SapRfcClient);
importClass(com.roma.apic.livedata.config.v1.SapRfcConfig);
function execute(data) {
var config = new SapRfcConfig();
config.put("jco.client.ashost", "10.95.152.107");//Server
config.put("jco.client.sysnr", "00"); //Instance ID
config.put("jco.client.client", "400"); //SAP group
config.put("jco.client.user", "SAPIDES");//SAP username
config.put("jco.client.passwd", "****");//Password
config.put("jco.client.lang", "zh");//Login language
config.put("jco.destination.pool_capacity", "3");//Maximum number of connections
config.put("jco.destination.peak_limit", "10");//Maximum number of connection threads
var client = new SapRfcClient(config);
var res = client.executeFunction("FUNCTION1", {
"A":"200",
"B":"2",
})
return res
}
Constructor Details
public SapRfcClient(SapRfcConfig config)
Constructs a SapRfcClient that contains the SapRfcConfig configuration information.
Parameter: config indicates the SapRfcClient configuration information.
Method List
|
Returned Type |
Method and Description |
|---|---|
|
Map<String, Object> |
executeFunction(String functionName, Map<String, Object> params) Access SAP functions in RFC mode. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot