ITPub博客

首页 > 数字化转型 > ERP > DBReader/SAPKernel/SAPProxy

DBReader/SAPKernel/SAPProxy

原创 ERP 作者:njms 时间:2007-09-11 23:14:44 0 删除 编辑


//------------------------------------------------------------------------------
//
// This code was generated by a SAP. NET Connector Proxy Generator Version 1.0
// Created at 06.10.2003
// Created from Windows 2000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
using System;
using System.Text;
using System.Collections;
using System.Runtime.InteropServices;
using System.Xml.Serialization;
using System.Web.Services;
using System.Web.Services.Description;
using System.Web.Services.Protocols;
using SAP.Connector;

namespace SAPReader.SAPKernel
{

// Client SAP proxy class
[WebServiceBinding(Name="", Namespace="urn:sap-com:document:sap:rfc:functions")]
public class SAPProxy : SAPClient
{
// Constructors
public SAPProxy(){}
public SAPProxy(string ConnectionString) : base(ConnectionString){}


// Exception constants
public const string Data_Buffer_Exceeded = "DATA_BUFFER_EXCEEDED";

public const string Field_Not_Valid = "FIELD_NOT_VALID";

public const string Not_Authorized = "NOT_AUTHORIZED";

public const string Option_Not_Valid = "OPTION_NOT_VALID";

public const string Table_Not_Available = "TABLE_NOT_AVAILABLE";

public const string Table_Without_Data = "TABLE_WITHOUT_DATA";

// Client call Methods

// Generated method used to call the remote function module RFC_READ_TABLE
// Throws: Data_Buffer_Exceeded Field_Not_Valid Not_Authorized Option_Not_Valid Table_Not_Available Table_Without_Data
[RfcMethod(AbapName = "RFC_READ_TABLE")]
[SoapDocumentMethodAttribute("http://tempuri.org/RFC_READ_TABLE",
RequestNamespace = "urn:sap-com:document:sap:rfc:functions",
RequestElementName = "RFC_READ_TABLE",
ResponseNamespace = "urn:sap-com:document:sap:rfc:functions",
ResponseElementName = "RFC_READ_TABLE.Response")]
public void Rfc_Read_Table (

[RfcParameter(AbapName = "DELIMITER",RfcType=RFCTYPE.RFCTYPE_CHAR, Optional = true, Direction = RFCINOUT.IN, Length = 1)]
[XmlElement("DELIMITER", IsNullable=false)]
string Delimiter,
[RfcParameter(AbapName = "NO_DATA",RfcType=RFCTYPE.RFCTYPE_CHAR, Optional = true, Direction = RFCINOUT.IN, Length = 1)]
[XmlElement("NO_DATA", IsNullable=false)]
string No_Data,
[RfcParameter(AbapName = "QUERY_TABLE",RfcType=RFCTYPE.RFCTYPE_CHAR, Optional = false, Direction = RFCINOUT.IN, Length = 30)]
[XmlElement("QUERY_TABLE", IsNullable=false)]
string Query_Table,
[RfcParameter(AbapName = "ROWCOUNT",RfcType=RFCTYPE.RFCTYPE_INT, Optional = true, Direction = RFCINOUT.IN, Length = 4)]
[XmlElement("ROWCOUNT", IsNullable=false)]
int Rowcount,
[RfcParameter(AbapName = "ROWSKIPS",RfcType=RFCTYPE.RFCTYPE_INT, Optional = true, Direction = RFCINOUT.IN, Length = 4)]
[XmlElement("ROWSKIPS", IsNullable=false)]
int Rowskips,
[RfcParameter(AbapName = "DATA",RfcType=RFCTYPE.RFCTYPE_ITAB, Optional = false, Direction = RFCINOUT.INOUT)]
[XmlArray("DATA", IsNullable=false)]
[XmlArrayItem("TAB512", IsNullable=false)]
ref TAB512Table Data,
[RfcParameter(AbapName = "FIELDS",RfcType=RFCTYPE.RFCTYPE_ITAB, Optional = false, Direction = RFCINOUT.INOUT)]
[XmlArray("FIELDS", IsNullable=false)]
[XmlArrayItem("RFC_DB_FLD", IsNullable=false)]
ref RFC_DB_FLDTable Fields,
[RfcParameter(AbapName = "OPTIONS",RfcType=RFCTYPE.RFCTYPE_ITAB, Optional = false, Direction = RFCINOUT.INOUT)]
[XmlArray("OPTIONS", IsNullable=false)]
[XmlArrayItem("RFC_DB_OPT", IsNullable=false)]
ref RFC_DB_OPTTable Options)
{
object[]results = null;
results = this.SAPInvoke("Rfc_Read_Table",new object[] {
Delimiter,No_Data,Query_Table,Rowcount,Rowskips,Data,Fields,Options });
Data = (TAB512Table) results[0];
Fields = (RFC_DB_FLDTable) results[1];
Options = (RFC_DB_OPTTable) results[2];

return;
}


public IAsyncResult BeginRfc_Read_Table (string Delimiter,string No_Data,string Query_Table,int Rowcount,int Rowskips,ref SAPKernel.TAB512Table Data,ref SAPKernel.RFC_DB_FLDTable Fields,ref RFC_DB_OPTTable Options, System.AsyncCallback callback, object asyncState)
{
return this.BeginSAPInvoke("Rfc_Read_Table",new object[] {
Delimiter,No_Data,Query_Table,Rowcount,Rowskips,Data,Fields,Options }, callback, asyncState);
}

public void EndRfc_Read_Table (System.IAsyncResult asyncResult, ref SAPKernel.TAB512Table Data,ref SAPKernel.RFC_DB_FLDTable Fields,ref RFC_DB_OPTTable Options)
{
object[]results = null;
results = this.EndSAPInvoke(asyncResult);
Data = (TAB512Table) results[0];
Fields = (RFC_DB_FLDTable) results[1];
Options = (RFC_DB_OPTTable) results[2];

return;
}


} // rfm client proxy


} // Namespace

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/232040/viewspace-969010/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
  • 博文量
    15
  • 访问量
    53863