ERPConnect.RFCTable
Namespace: ERPConnect
Assembly: ERPConnectStandard20.dll
RFCTable represents a single table to be assigned to a RFCServerFunction object or to a RFCFunction object
Inheritance
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
RFCTable()
Initializes a new RFCTable object
RFCTable(string)
Initializes a new RFCTable object and sets the name of the table
Parameters
name
string
Name of the table
RFCTable(string, RFCTableColumnCollection)
Initializes a new RFCTable object and sets the name and columns of the table
Parameters
name
string
Name of the table
columns
RFCTableColumnCollection
Columns of the table
Properties
Columns
Returns a collection of RFCTableColumn objects which represent the columns of the table.
Property Value
IsSupplied
Gets or sets a value indicating whether this table is included in the remote function call. By default this is true
.
Property Value
Remarks
When using NWRFC, some function modules might not even calculate the result. The FM can use IS SUPPLIED
to check whether the table was supplied or requested.
Name
Returns the name of the table as provided by the function module
Property Value
RowCount
Returns the number of rows contained in this table
Property Value
Rows
Returns a collection of RFCStructure object which represent the rows of the table
Property Value
this[int]
Returns a row represented by a RFCStructure object at a given index
Property Value
this[int, int]
Returns the value of table line at row RowIndex and column index ColIndex
Property Value
this[int, string]
Returns the value of table line at row RowIndex and column ColName
Property Value
Methods
AddRow()
Adds a new row and returns the new RFCStructure object
Returns
The new RFCStrucure object which represents the new row
Clear()
Empties the table
CopyValues(RFCTable)
Sets values for all cells that have a matching column name
Parameters
copyFrom
RFCTable
NewRows()
Replaces the current ERPConnect.RFCTable.Rows
instance with a new one
RetrieveColumnsByStructure(string, IR3Connection)
Retrieves the columns directly from the SAP Data Dictionary. The RFCColumn collection will be overwritten
Parameters
structureName
string
DDIC name of the structure
connection
IR3Connection
R3Connection object
RowLength()
Returns the width of one table row
Returns
The width of a table row
ToADOTable()
Converts the RFCTable object into an ADO.NET DataTable object
Returns
A newly created ADO.NET DataTable
ToADOTable(string[])
Converts the RFCTable object into an ADO.NET DataTable object
Parameters
columnNames
string[]
Column array
Returns
A newly created DataTable object
ToADOTable(string)
Converts the RFCTable object into an ADO.NET DataTable object
Parameters
filter
string
Filter expression
Returns
A newly created DataTable object
ToADOTable(string[], string)
Converts the RFCTable object into an ADO.NET DataTable object
Parameters
columnNames
string[]
Column array
filter
string
Filter expression
Returns
A newly created DataTable object