Skip to content

ERPConnect.RFCFunction

Namespace: ERPConnect
Assembly: ERPConnectStandard20.dll

RFCFunction objects represent SAP function modules that can be executed in the SAP system.

public class RFCFunction

Inheritance

objectRFCFunction

Derived

BusinessObjectMethod

Inherited Members

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

Constructors

RFCFunction(string)

Initializes a new RFCFunction object

public RFCFunction(string functionName)

Parameters

functionName string

The name of the function module

RFCFunction(IR3Connection, string)

Initializes a new RFCFunction object

public RFCFunction(IR3Connection connection, string functionName)

Parameters

connection IR3Connection

A R3Connection object

functionName string

The name of the function module

Properties

CallbackFunctions

Gets a list of associated callback functions that are used for handling incoming callbacks

public IList<RFCCallbackFunction> CallbackFunctions { get; }

Property Value

IList<RFCCallbackFunction>

Changings

Returns a RFCParameter collection which represents the export parameters to be exchanged with the SAP system

public RFCParameterCollection Changings { get; }

Property Value

RFCParameterCollection

Connection

Gets / sets the R3Connection object which is assigned to the function

public IR3Connection Connection { get; set; }

Property Value

IR3Connection

Exports

Returns a RFCParameter collection which represents the export parameters to be exchanged with the SAP system

public RFCParameterCollection Exports { get; }

Property Value

RFCParameterCollection

Imports

Returns a RFCParameter collection which represents the import parameters to be exchanged with the SAP system

public RFCParameterCollection Imports { get; }

Property Value

RFCParameterCollection

Name

Gets / sets the name of the function module

public string Name { get; set; }

Property Value

string

Tables

Returns a RFCTable collection which represents the tables to be exchanged with the SAP system

public RFCTableCollection Tables { get; }

Property Value

RFCTableCollection

Methods

Execute(string, string)

Executes a function in qRFC context. No import parameters are passed back to the calling program

public void Execute(string tid, string queue)

Parameters

tid string

Transaction ID

queue string

Name of the inbound queue

Execute(string)

Executes a function in tRFC context. No import parameters are passed back to the calling program

public void Execute(string tid)

Parameters

tid string

Transaction ID

Execute()

Executes the function module. Consider using ERPConnect.R3Connection.Execute(ERPConnect.RFCFunction) instead.

public virtual void Execute()

LoadFromXML(XmlReader)

Loads the RFCFunction object from XML

public void LoadFromXML(XmlReader reader)

Parameters

reader XmlReader

XmlReader object for reading the XML

LoadFromXML(string)

Loads the RFCFunction object from XML

public void LoadFromXML(string path)

Parameters

path string

Path to the source file

LoadFromXML(TextReader)

Loads the RFCFunction object from XML

public void LoadFromXML(TextReader reader)

Parameters

reader TextReader

TextReader object for reading the XML

LoadFromXMLString(string)

Loads the RFCFunction object from a string which contains XML

public void LoadFromXMLString(string xml)

Parameters

xml string

String which contains the XML

RetrieveMetadata()

protected void RetrieveMetadata()

SaveToXML(XmlWriter)

Saves the RFCFunction object to XML

public void SaveToXML(XmlWriter writer)

Parameters

writer XmlWriter

XmlWriter object for writing the XML

SaveToXML(string)

Saves the RFCFunction object to XML

public void SaveToXML(string path)

Parameters

path string

Path to the output file

SaveToXML()

Saves the RFCFunction object to XML

public string SaveToXML()

Returns

string

String which contains the XML