Skip to content

ERPConnect.RFCStructure

Namespace: ERPConnect
Assembly: ERPConnectStandard20.dll

RFCStructure object represent a real structure or a row in a RFC table

public sealed class RFCStructure

Inheritance

objectRFCStructure

Inherited Members

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

RFCStructure()

Initializes a new RFCStructure object

public RFCStructure()

RFCStructure(RFCTableColumnCollection)

Constructs a new RFCStructure. The structure is defined by the RFCTableColumnCollection

public RFCStructure(RFCTableColumnCollection columns)

Parameters

columns RFCTableColumnCollection

A RFCTableColumnCollections

Properties

Columns

Returns a RFCTableColumn collection

public RFCTableColumnCollection Columns { get; }

Property Value

RFCTableColumnCollection

Length

returns the overall width of a structured Type

public int Length { get; }

Property Value

int

this[int]

Returns the value of a structure element by providing the index of element

public object this[int index] { get; set; }

Property Value

object

this[string]

Returns the value of a structure element by providing the name of element

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

Property Value

object

Methods

CopyValues(RFCStructure)

Sets all values that have a matching column name

public void CopyValues(RFCStructure copyFrom)

Parameters

copyFrom RFCStructure

IsStructure(string)

Returns whether a component of a structure is a structure

public bool IsStructure(string componentName)

Parameters

componentName string

Name of the component

Returns

bool

IsStructure(int)

Returns wether a component of a structure is a structure

public bool IsStructure(int componentIndex)

Parameters

componentIndex int

Index of the component

Returns

bool

IsTable(string)

Returns whether a component of a structure is a table

public bool IsTable(string componentName)

Parameters

componentName string

Name of the component

Returns

bool

IsTable(int)

Returns whether a component of a structure is a table

public bool IsTable(int componentIndex)

Parameters

componentIndex int

Index of the component

Returns

bool

SetValueInternal(int, object)

Sets the parameter value for a structure element directly without any checks or conversions

public void SetValueInternal(int index, object value)

Parameters

index int

value object

ToStructure(string)

Converts a component of the structure to RFCStructure

public RFCStructure ToStructure(string componentName)

Parameters

componentName string

Name of the component

Returns

RFCStructure

Component converted to RFCStructure

ToStructure(int)

Converts a component of the structure to RFCStructure

public RFCStructure ToStructure(int componentIndex)

Parameters

componentIndex int

Index of the component

Returns

RFCStructure

Component converted to RFCStructure

ToTable(string)

Converts a component of the structure to RFCTable

public RFCTable ToTable(string componentName)

Parameters

componentName string

Name of the component

Returns

RFCTable

Component converted to RFCTable

ToTable(int)

Converts a component of the structure to RFCTable

public RFCTable ToTable(int componentIndex)

Parameters

componentIndex int

Index of the component

Returns

RFCTable

Component converted to RFCTable