Skip to content

ERPConnect.RFCTable

Namespace: ERPConnect
Assembly: ERPConnectStandard20.dll

RFCTable represents a single table to be assigned to a RFCServerFunction object or to a RFCFunction object

public sealed class RFCTable

Inheritance

objectRFCTable

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

public RFCTable()

RFCTable(string)

Initializes a new RFCTable object and sets the name of the table

public RFCTable(string name)

Parameters

name string

Name of the table

RFCTable(string, RFCTableColumnCollection)

Initializes a new RFCTable object and sets the name and columns of the table

public RFCTable(string name, RFCTableColumnCollection columns)

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.

public RFCTableColumnCollection Columns { get; }

Property Value

RFCTableColumnCollection

IsSupplied

Gets or sets a value indicating whether this table is included in the remote function call. By default this is true.

public bool IsSupplied { get; set; }

Property Value

bool

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

public string Name { get; set; }

Property Value

string

RowCount

Returns the number of rows contained in this table

public int RowCount { get; }

Property Value

int

Rows

Returns a collection of RFCStructure object which represent the rows of the table

public RFCStructureCollection Rows { get; }

Property Value

RFCStructureCollection

this[int]

Returns a row represented by a RFCStructure object at a given index

public object this[int rowIndex] { get; }

Property Value

object

this[int, int]

Returns the value of table line at row RowIndex and column index ColIndex

public object this[int rowIndex, int columnIndex] { get; set; }

Property Value

object

this[int, string]

Returns the value of table line at row RowIndex and column ColName

public object this[int rowIndex, string columnName] { get; set; }

Property Value

object

Methods

AddRow()

Adds a new row and returns the new RFCStructure object

public RFCStructure AddRow()

Returns

RFCStructure

The new RFCStrucure object which represents the new row

Clear()

Empties the table

public void Clear()

CopyValues(RFCTable)

Sets values for all cells that have a matching column name

public void CopyValues(RFCTable copyFrom)

Parameters

copyFrom RFCTable

NewRows()

Replaces the current ERPConnect.RFCTable.Rows instance with a new one

public void NewRows()

RetrieveColumnsByStructure(string, IR3Connection)

Retrieves the columns directly from the SAP Data Dictionary. The RFCColumn collection will be overwritten

public void RetrieveColumnsByStructure(string structureName, IR3Connection connection)

Parameters

structureName string

DDIC name of the structure

connection IR3Connection

R3Connection object

RowLength()

Returns the width of one table row

public int RowLength()

Returns

int

The width of a table row

ToADOTable()

Converts the RFCTable object into an ADO.NET DataTable object

public DataTable ToADOTable()

Returns

DataTable

A newly created ADO.NET DataTable

ToADOTable(string[])

Converts the RFCTable object into an ADO.NET DataTable object

public DataTable ToADOTable(string[] columnNames)

Parameters

columnNames string[]

Column array

Returns

DataTable

A newly created DataTable object

ToADOTable(string)

Converts the RFCTable object into an ADO.NET DataTable object

public DataTable ToADOTable(string filter)

Parameters

filter string

Filter expression

Returns

DataTable

A newly created DataTable object

ToADOTable(string[], string)

Converts the RFCTable object into an ADO.NET DataTable object

public DataTable ToADOTable(string[] columnNames, string filter)

Parameters

columnNames string[]

Column array

filter string

Filter expression

Returns

DataTable

A newly created DataTable object