Category for General Methods

Use

This category contains the following methods:

GET_INSTANCE

You use GET_INSTANCE to load and prepare TDCs. If no version is supplied, automatic version determination is executed according to the versioning data and the version found is read. GET_INSTANCE contains the following parameters:

Parameter Name

Type

Description

I_TESTDATACONTAINER

ETOBJ_NAME

Name of TDC

I_TESTDATACONTAINER_VERSION

ETOBJ_VER

(OPTIONAL)

Version of TDC

I_TDC_RFCDEST

RFCDEST

(OPTIONAL)

Destination for SAP system containing the TDC

I_WRITE_ACCESS

ETONOFF

(OPTIONAL)

'X' = Open in change mode

I_EXCEPTION_MODE

ETONOFF

DEFAULT 'E'

Mode E=Raise and Exit, C=Collect and Continue, I=Ignore

E_TDC_REF

REF TO CL_APL_ECATT_TDC_API

Pointer to the TDC_API object for any further access

COMMIT_CHANGES

Writes the changes in the TDC to the database and contains the following parameters:

Parameter Name

Type

Description

I_TR_ORDER

E070-TRKORR

(OPTIONAL)

Request/
task

I_RELEASE_LOCK

ETONOFF

(OPTIONAL)

X = Release object lock

I_COMMIT_MODE

ETONOFF

(OPTIONAL)

DEFAULT ‘X’

X = Commit changes to database (COMMIT WORK)

SPACE = Suppress COMMIT WORK

SET_EXCEPTION_MODE

Sets the mode of exception handling and contains the following parameters:

Parameter Name

Type

Description

I_EXCEPTION_MODE

ETONOFF

(DEFAULT 'E')

Mode E=Raise and Exit, C=Collect and Continue, I=Ignore

GET_EXCEPTION

Gets the last exception that occurred. Previous exceptions can be reached using ->previous. GET_EXCEPTION contains the following parameters:

Parameter Name

Type

Description

E_EXC_REF

TYPE REF TO CX_ECATT_TDC_ACCESS

Pointer to the last exception that occurred

CLEAR_EXCEPTION

Deletes the internal attribute of the last exception that occurred.