ERPConnect.Utils.Transaction
Namespace: ERPConnect.Utils
Assembly: ERPConnectStandard20.dll
Transaction represents a single SAP transction
Inheritance
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Transaction(R3Connection)
Initializes a Transction object
Parameters
Connection
R3Connection
A valid R3Connection object
Transaction()
Initializes a Tranction object
Properties
BatchSteps
The steps to be executed when running the transaction
Property Value
Connection
A R3Connection object
Property Value
ExecutionMode
Defines the execution mode
Property Value
Returns
Batch Input return messages
Property Value
TCode
The transaction code to be performed
Property Value
Type
Defines the execution type
Property Value
UpdateMode
Defines the Update mode
Property Value
Methods
AddStepSetCursor(string)
Adds a new Batch step
Parameters
FieldName
string
Name of the field where the cursor should be set
AddStepSetField(string, string)
Adds a new batch step
Parameters
FieldName
string
Name of the field to be set
FieldValue
string
Value of the field to be set
AddStepSetNewDynpro(string, string)
Adds a new batch step
Parameters
Program
string
Program name
DynproNumber
string
The Dynpronumber of the new screen
AddStepSetOKCode(string)
Adds a new batch step that executes an OK code in the transaction
Parameters
OKCode
string
OB code
AddStepSwitchToShowAll()
Adds a new batch step that switch the mode to 'Show All'
AddStepSwitchToShowOnlyErrors()
Adds a new batch step that switch the mode to 'Show Only Errors'
Execute()
Executes the transaction
SetCustomFunctionName(string)
Use this function to set a custom RFC instead of RFC_CALL_TRANSACTION_USING or RFC_CALL_TRANSACTION
Parameters
CustomFunctionName
string
The name of the custom RFC