if (window.name != "content")
document.write("
");
<!-- !chm2web! -->
Tips and tricks for the Java connector
Give the import parameter SALESDOCUMENT the value "00006973":
JCO.Field SalesDocumentField = jcoFunction.getImportParameterList().getField("SALESDOCUMENT");
SalesDocumentField.setValue("00006973");
JCO.Table ORDER_PARTNERS = jcoFunction.getTableParameterList().getTable("ORDER_PARTNERS");
ORDER_PARTNERS.appendRow();
ORDER_PARTNERS.setValue("AG","PARTN_ROLE");
ORDER_PARTNERS.setValue("0000001032","PARTN_NUMB");
JCO.Structure order_header_inx = jcoFunction.getImportParameterList().getStructure("ORDER_HEADER_INX");
order_header_inx.setValue("I","UPDATEFLAG");
order_header_inx.setValue("X","DOC_TYPE");
JCO.Table myTable = jcoFunction.getTableParameterList().getTable("STATUSINFO");
for (int i=0; i < myTable.getNumRows(); i++)
myTable.setRow(i);
// Retrieve the value of the field DOC_DATE
oDocDate = myTable.getField("DOC_DATE").getValue();
Meesage type and message is stored in vector bapiReturn.
Vector bapiReturn;
JCO.Table jcoReturn = jcoFunction.getTableParameterList().getTable("RETURN");
for (int i = 0; i < jcoReturn.getNumRows(); i++)
{ jcoReturn.setRow(i);
String Message = jcoReturn.getField("TYPE").getValue() + " " +
jcoReturn.getField("MESSAGE").getValue();
bapiReturn.setSize(i + 1);
bapiReturn.setElementAt(new String(Message),i );
}
try
{ // Get a function template from the repository
IFunctionTemplate ftemplate = mRepository.getFunctionTemplate("BAPI_TRANSACTION_COMMIT");
// Create a function from the template
jcoCommit = new JCO.Function(ftemplate);
if ( jcoCommit == null )
// Do something..;
}
catch (Exception mException)
{ mException.printStackTrace(); }
// Execute COMMIT
try
{ sapConnection1.mConnection.execute(jcoCommit);
}
catch (Exception mException)
{ mException.printStackTrace(); }
var fe = FindFrame("toc", top);
if ((fe != null) && (chmtop.c2wtopf.jstree != null)) {
if (chmtop.c2wtopf.FITEMS[chmtop.c2wtopf.pagenum] != chmtop.c2wtopf.pageid)
chmtop.c2wtopf.jstree.OpenTreeNode("" + chmtop.c2wtopf.pageid);
}
<!-- CHM2WEB --><!-- DO NOT DELETE OR MODIFY THIS CODE WITHOUT
WRITTEN PERMISSION OF A!K RESEARCH LABS -->
<!-- /CHM2WEB -->
分享到:
相关推荐
### PDF Can be Pretty Darn Fancy: Tips and Tricks for the ODS PDF Destination #### 概述 在SAS软件中,ODS(Output Delivery System)是一个非常强大的工具,它允许用户控制输出格式、样式以及目的地。ODS PDF...
50 Tips and Tricks for MongoDB Developers
这篇名为“Tips and tricks for the use of CAPL”的学习资料,显然是针对如何有效利用CAPL语言进行AUTOSAR相关开发和调试的指南。CAPL在AUTOSAR环境中扮演着重要角色,用于编写测试脚本、数据记录、信号分析以及...
50 Tips and Tricks for MongoDB Developers中文版
features tips and tricks that an experienced shader programmer will benefit from. As with Direct3D ShaderX, Javier Izquierdo Villagrán (nurbs1@jazzfree.com) prepared the drafts for the ...
Shuffle: Tips and Tricks Julien Demouth, NVIDIAhttp://www.gputechconf.com/page/home.htmlGlossary Warp— Implicitly synchronized group of threads (32 on current HW) Warp ID (warpid)— Identifier ...
《ShaderX Vertex and Pixel Shader Tips and Tricks》是一本专注于计算机图形学中着色器技术的专业书籍。本书由Wolfgang F. Engel编辑,由Wordware Publishing, Inc.出版,并获得了美国国会图书馆的编目数据记录。...
《D3 tips and tricks version 4》是一本专注于Web前端开发的书籍,主要介绍了使用D3.js库进行交互式数据可视化的技术。D3.js是一种非常流行的前端JavaScript库,用于基于Web标准生成动态和交互式的数据可视化图表。...
wxPython Grid Tips and Tricks
Kristina Chodorow的《50 Tips and Tricks for MongoDB》是一本专注于MongoDB设计、实现、优化和安全技巧的书籍。它通过提供50条经验和技巧,帮助开发者更好地理解和掌握MongoDB,从而提高开发效率和系统性能,确保...
以下是一些关键知识点,这些内容基于“Tips and Tricks for Programming in Matlab”这篇文档: 1. **MATLAB简介**: MATLAB是由MathWorks公司开发的一款强大的数学计算软件。自1984年首次发布以来,它已经从一个...
Some tips and tricks about Windows Ultimate.
Microsoft Visual C# IDE Tips and Tricks