Skip to content

ERPConnect.Utils.Transaction

Namespace: ERPConnect.Utils
Assembly: ERPConnectStandard20.dll

Transaction represents a single SAP transction

public class Transaction

Inheritance

objectTransaction

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

public Transaction(R3Connection Connection)

Parameters

Connection R3Connection

A valid R3Connection object

Transaction()

Initializes a Tranction object

public Transaction()

Properties

BatchSteps

The steps to be executed when running the transaction

public BatchStepCollection BatchSteps { get; set; }

Property Value

BatchStepCollection

Connection

A R3Connection object

public R3Connection Connection { get; set; }

Property Value

R3Connection

ExecutionMode

Defines the execution mode

public TransactionDialogMode ExecutionMode { get; set; }

Property Value

TransactionDialogMode

Returns

Batch Input return messages

public BatchReturnCollection Returns { get; set; }

Property Value

BatchReturnCollection

TCode

The transaction code to be performed

public string TCode { get; set; }

Property Value

string

Type

Defines the execution type

public TransactionType Type { get; set; }

Property Value

TransactionType

UpdateMode

Defines the Update mode

public TransactionUpdateMode UpdateMode { get; set; }

Property Value

TransactionUpdateMode

Methods

AddStepSetCursor(string)

Adds a new Batch step

public void AddStepSetCursor(string FieldName)

Parameters

FieldName string

Name of the field where the cursor should be set

AddStepSetField(string, string)

Adds a new batch step

public void AddStepSetField(string FieldName, string FieldValue)

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

public void AddStepSetNewDynpro(string Program, string DynproNumber)

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

public void AddStepSetOKCode(string OKCode)

Parameters

OKCode string

OB code

AddStepSwitchToShowAll()

Adds a new batch step that switch the mode to 'Show All'

public void AddStepSwitchToShowAll()

AddStepSwitchToShowOnlyErrors()

Adds a new batch step that switch the mode to 'Show Only Errors'

public void AddStepSwitchToShowOnlyErrors()

Execute()

Executes the transaction

public void Execute()

SetCustomFunctionName(string)

Use this function to set a custom RFC instead of RFC_CALL_TRANSACTION_USING or RFC_CALL_TRANSACTION

public void SetCustomFunctionName(string CustomFunctionName)

Parameters

CustomFunctionName string

The name of the custom RFC


Last update: January 4, 2024