SAP求指导
我们部门的脚本和公司有一些数据通讯,使用SAP传输一些数据,但是有时候传输数据时会丢失,现在要去修改,不管是不是成功都要将数据发给财务,由于第一次接触SAP,所以对SAP一点都不了解,求高人指点,谢谢
传输的应该是这块代码吧,以前做写这个的同事都不在了,麻烦指点
public void RFCJAVAR3(String proj, String perso, String detail)
{
JCO.Client client = null;
try {
// Get a function template from the repository
IFunctionTemplate ftemplate = repository.getFunctionTemplate("ZRFC_GET_PERSO");
// if the function definition was found in backend system
if(ftemplate != null) {
// Create a function from the template
JCO.Function function = ftemplate.getFunction();
// Get a client from the pool
client = JCO.getClient(SID);
// Fill in input parameters
JCO.ParameterList input = function.getImportParameterList();
// input.setValue("0000000004", "ZINFO" );
//?????????? input.setValue("0000000003", "INPUT_SO" );
Structure dd =input.getStructure("INFO");
dd.setValue(proj, "PROJ");
dd.setValue(perso, "PERSO");
dd.setValue(detail, "DETAIL");
input.setValue(dd, "INFO" );
// Call the remote system
client.execute(function);
// Print return message
//JCO.Structure ret = function.getExportParameterList().getStructure("WA_VBAK");
JCO.ParameterList ret = function.getExportParameterList();
System.out.println("-----------------------------------------");
System.out.println("ZRFC_JAVA_LINK_R3 Done" );
}
else {
System.out.println("ZRFC_JAVA_LINK_R3 not found in backend system.");
}//if
}
catch (Exception ex) {
System.out.println("Caught an exception: \n" + ex);
}
finally {
// Release the client to the pool
JCO.releaseClient(client);
}
}传输的应该是这块代码吧,以前做写这个的同事都不在了,麻烦指点
...全文
相关推荐
SAP 计划策略详细讲解
详细讲解sap MRP 计划策略在 消 耗 过 程 中, 系 统 把 计 划 独 立 需 求 数 量 与 日 期 和 实 际 客 户 需 求 进 行 比 较。 通 过 把 需 求 管 理 的 需 求
SAP Business one 打印格式设计
- **公式**:应用数学函数,如求和、求平均值等,用于计算字段。- **系统变量**:获取SAP Business One内部的固定值,如公司地址、当前日期等。
SAP 日文FI
- **FI06_得意先請求書.ppt**:客户发票的创建、审批和管理,以及如何关联到相应的应收账款。
采购SAP系统退货操作流程培训教材.pptx
SAP系统退货操作流程培训教材本教材主要讲解了采购SAP系统退货操作流程的详细步骤,旨在帮助用户掌握退货操作的技能。整个退货操作流程可以分为库区及料废退货和待检区退货两个部分。
SAP等公司的面试题
**求高于平均分的学生**: 这个问题涉及到递归和动态计算平均值。`find`函数通过不断接收学生编号和成绩,计算累计总分和学生数,直到所有学生输入完毕,最后返回平均分并输出高于平均分的学生信息。


