SAP ABAP Class CL_GRFN_ATF_PREPARE (Audit Trail Framework services)
Hierarchy
☛
GRCFND_A (Software Component) GRC Foundation ABAP
⤷
GRC (Application Component) Governance, Risk and Compliance
⤷
GRFN_AUDIT_TRAIL (Package) Audit Trail
⤷
⤷
Properties
| Class | CL_GRFN_ATF_PREPARE | |
| Short Description | Audit Trail Framework services | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | GRFN_AUDIT_TRAIL | Audit Trail |
| Created | 20100401 | SAP |
| Last change | 20141106 | |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
Class CL_GRFN_ATF_PREPARE has no forward declaration.
Interfaces
Class CL_GRFN_ATF_PREPARE has no interface implemented.
Friends
Class CL_GRFN_ATF_PREPARE has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Static Attribute | Public | Type reference (TYPE) | GRFN_ATF_DATA_TYPE | 'E' | Abap Data Type - Elementary Type | 20100401 | ||
| 2 | Static Attribute | Public | Type reference (TYPE) | GRFN_ATF_DATA_TYPE | 'S' | Abap Data Type - Structured Type | 20100401 | ||
| 3 | Static Attribute | Private | Type reference (TYPE) | GUID_32 | ATF ID | 20100401 | |||
| 4 | Static Attribute | Public | Type reference (TYPE) | GRFN_ATF_TOPIC_ID | 'CAPA' | Audit Trail for CAPA execution | 20100401 | ||
| 5 | Static Attribute | Public | Type reference (TYPE) | GRFN_ATF_TOPIC_ID | 'RFCCR' | Audit Trail for CR RFC | 20100401 | ||
| 6 | Static Attribute | Public | Type reference (TYPE) | GRFN_ATF_CHANGE_TYPE | 'C' | Change type of Audit data: Create | 20100401 | ||
| 7 | Static Attribute | Public | Type reference (TYPE) | GRFN_ATF_CHANGE_TYPE | 'D' | Change type of Audit data: Delete | 20100401 | ||
| 8 | Static Attribute | Public | Type reference (TYPE) | GRFN_ATF_CHANGE_TYPE | 'N' | Change type of Audit data: Unchanged | 20100401 | ||
| 9 | Static Attribute | Public | Type reference (TYPE) | GRFN_ATF_CHANGE_TYPE | 'U' | Change type of Audit data: Update | 20100401 | ||
| 10 | Static Attribute | Public | Type reference (TYPE) | INT4 | 3 | I_OBJECT_KEY parameter in read method is empty | 20100401 | ||
| 11 | Static Attribute | Public | Type reference (TYPE) | INT4 | 2 | I_TIME_XXX parameter(S) in read method is empty | 20100401 | ||
| 12 | Static Attribute | Public | Type reference (TYPE) | INT4 | 1 | I_TOPIC_ID parameter in read method is invalid | 20100401 | ||
| 13 | Static Attribute | Public | Type reference (TYPE) | INT4 | 4 | No audit trail data found | 20100401 | ||
| 14 | Static Attribute | Public | Type reference (TYPE) | INT4 | 5 | Save data to database failed | 20100401 | ||
| 15 | Static Attribute | Public | Type reference (TYPE) | INT4 | 3 | I_CHANGE_TYPE parameter in write method is invalid | 20100401 | ||
| 16 | Static Attribute | Public | Type reference (TYPE) | INT4 | 2 | I_OBJECT_KEY parameter in write method is empty | 20100401 | ||
| 17 | Static Attribute | Public | Type reference (TYPE) | INT4 | 1 | I_TOPIC_ID parameter in write method is invalid | 20100401 | ||
| 18 | Static Attribute | Public | Type reference (TYPE) | INT4 | 4 | I_VALUE_XXX parameter in write method is invalid | 20100401 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | check change type | 20100401 | |
| 2 | Static method | Public | Method | check object | 20100401 | |
| 3 | Static method | Public | Method | check object | 20100409 | |
| 4 | Static method | Public | Method | check value lenth | 20100401 | |
| 5 | Static method | Public | Method | Data Preparation | 20100401 | |
| 6 | Static method | Public | Method | GET ATF_ID | 20100401 | |
| 7 | Static method | Public | Method | initial local variant | 20100401 | |
| 8 | Static method | Private | Method | Text Retrive | 20100406 | |
| 9 | Static method | Public | Method | Write audit trail data Element | 20100401 | |
| 10 | Static method | Private | Method | Write table content to Audit Trail Structure | 20100407 |
Events
Class CL_GRFN_ATF_PREPARE has no event.
Types
Class CL_GRFN_ATF_PREPARE has no local type.
Method Signatures
Method CHECK_CHANGE_TYPE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_RETURN_CODE | Value transfer | Type reference (TYPE) | INT4 | Natural number | 20100401 | |||
| 2 | I_CHANGE_TYPE | Call by reference | Type reference (TYPE) | GRFN_ATF_CHANGE_TYPE | Change type of Audit data: Insert, Delete, Update | 20100401 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Generic GRC API exception | 20100407 |
Method CHECK_OBJECT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_DATA_TYPE | Value transfer | Type reference (TYPE) | GRFN_ATF_DATA_TYPE | Abap Data Type | 20100401 | |||
| 2 | EV_TYPE_NAME | Value transfer | Type reference (TYPE) | TABNAME | Table Name | 20100401 | |||
| 3 | IR_VALUE_NEW | Call by reference | Object reference (TYPE REF TO) | DATA | 20100409 | ||||
| 4 | IR_VALUE_OLD | Call by reference | Object reference (TYPE REF TO) | DATA | 20100409 | ||||
| 5 | I_CHANGE_TYPE | Value transfer | Type reference (TYPE) | GRFN_ATF_CHANGE_TYPE | Single-Character Flag | 20100401 | |||
| 6 | I_VALUE_NEW | Call by reference | Type reference (TYPE) | DATA | Single-Character Flag | 20100401 | |||
| 7 | I_VALUE_OLD | Call by reference | Type reference (TYPE) | DATA | Single-Character Flag | 20100401 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Generic GRC API exception | 20100407 |
Method CHECK_OBJECT_TABLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_CHANGE_TYPE | Value transfer | Type reference (TYPE) | GRFN_ATF_CHANGE_TYPE | Single-Character Flag | 20100409 | |||
| 2 | EV_DATA_TYPE | Value transfer | Type reference (TYPE) | GRFN_ATF_DATA_TYPE | Abap Data Type | 20100409 | |||
| 3 | EV_TYPE_NAME | Value transfer | Type reference (TYPE) | TABNAME | Table Name | 20100409 | |||
| 4 | I_VALUE_NEW | Call by reference | Type reference (TYPE) | DATA | Single-Character Flag | 20100409 | |||
| 5 | I_VALUE_OLD | Call by reference | Type reference (TYPE) | DATA | Single-Character Flag | 20100409 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Generic GRC API exception | 20100409 |
Method CHECK_VALUE_LEN Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_FLAG_NEW | Value transfer | Type reference (TYPE) | BOOLEAN | Boolean Variable (X=True, -=False, Space=Unknown) | 20100401 | |||
| 2 | E_FLAG_OLD | Value transfer | Type reference (TYPE) | BOOLEAN | Boolean Variable (X=True, -=False, Space=Unknown) | 20100401 | |||
| 3 | E_VALUE_NEW | Value transfer | Type reference (TYPE) | GUID_32 | Globally Unique Identifier | 20100401 | |||
| 4 | E_VALUE_OLD | Value transfer | Type reference (TYPE) | GUID_32 | Globally Unique Identifier | 20100401 | |||
| 5 | I_VALUE_NEW | Call by reference | Type reference (TYPE) | STRING | 20100401 | ||||
| 6 | I_VALUE_OLD | Call by reference | Type reference (TYPE) | STRING | 20100401 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Generic GRC API exception | 20100407 |
Method DATA_QUERY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_AUDIT_TRAIL_DETAIL | Call by reference | Type reference (TYPE) | GRFN_T_UI_ATFS | Audit Trail Data Detail | 20100401 | |||
| 2 | E_AUDIT_TRAIL_MAIN | Call by reference | Type reference (TYPE) | GRFN_T_UI_ATF | Audit Trail Data Main | 20100401 | |||
| 3 | E_RETURN_CODE | Value transfer | Type reference (TYPE) | BAPIRETURN | Return Parameter | 20100401 | |||
| 4 | IT_USER_MAIN | Value transfer | Type reference (TYPE) | SPERS_ULST | Who make act | 20100401 | |||
| 5 | I_ACTION | Value transfer | Type reference (TYPE) | GRFN_ATF_ACTION | Audit Trail Action | 20100401 | |||
| 6 | I_INFOR | Value transfer | Type reference (TYPE) | GRFN_ATF_INFO | Audit Trail Info | 20100401 | |||
| 7 | I_OBJECT_KEY | Value transfer | Type reference (TYPE) | TABKEY | Sub-object of the Object I_OBJECT_KEY | 20100401 | |||
| 8 | I_STATUS | Value transfer | Type reference (TYPE) | GRFN_ATF_STATUS | Audit Trail Action Status | 20100401 | |||
| 9 | I_TIME_END | Value transfer | Type reference (TYPE) | TIMESTAMPL | When the audit starts | 20100401 | |||
| 10 | I_TIME_START | Value transfer | Type reference (TYPE) | TIMESTAMPL | When the audit starts | 20100401 | |||
| 11 | I_TOPIC_ID | Value transfer | Type reference (TYPE) | GRFN_ATF_TOPIC_ID | Audit Trail Topic ID | 20100401 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Generic GRC API exception | 20100407 |
Method GET_GUID_ID Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_ATF_ID | Value transfer | Type reference (TYPE) | GUID_32 | GUID in 'CHAR' Format in Uppercase | 20100401 |
Method GET_GUID_ID on class CL_GRFN_ATF_PREPARE has no exception.
Method INIT_LOCAL_VARIBLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_TIMESTAMP | Value transfer | Type reference (TYPE) | TIMESTAMPL | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | 20100401 | |||
| 2 | E_USER_ACT | Value transfer | Type reference (TYPE) | UNAME | User actully do act | 20100401 | |||
| 3 | E_USER_MAIN | Value transfer | Type reference (TYPE) | UNAME | User mainly do act | 20100401 | |||
| 4 | I_TIMESTAMP | Value transfer | Type reference (TYPE) | TIMESTAMPL | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | 20100401 | |||
| 5 | I_USERNAME | Value transfer | Type reference (TYPE) | UNAME | User Name | 20100401 |
Method INIT_LOCAL_VARIBLE on class CL_GRFN_ATF_PREPARE has no exception.
Method RETRIVE_TEXT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CV_VALUE | Call by reference | Type reference (TYPE) | STRING | return text | 20100408 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Generic GRC API exception | 20100407 |
Method SAVE_DATA Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IR_VALUE_NEW | Call by reference | Object reference (TYPE REF TO) | DATA | 20100402 | ||||
| 2 | IR_VALUE_OLD | Call by reference | Object reference (TYPE REF TO) | DATA | 20100402 | ||||
| 3 | IV_SEQUENCE | Value transfer | Type reference (TYPE) | INT4 | Natural number | 20100430 | |||
| 4 | I_ACTION | Value transfer | Type reference (TYPE) | GRFN_ATF_ACTION | Audit Trail Action ID | 20100401 | |||
| 5 | I_ATF_ID | Value transfer | Type reference (TYPE) | GUID_32 | GUID in 'CHAR' Format in Uppercase | 20100401 | |||
| 6 | I_CHANGE_TYPE | Value transfer | Type reference (TYPE) | GRFN_ATF_CHANGE_TYPE | Change type of Audit data: Insert, Delete, Update | 20100401 | |||
| 7 | I_DATA_TYPE | Value transfer | Type reference (TYPE) | GRFN_ATF_DATA_TYPE | Abap Data Type | 20100401 | |||
| 8 | I_INFOR | Value transfer | Type reference (TYPE) | GRFN_ATF_INFO | Audit Trail Info | 20100401 | |||
| 9 | I_OBJECT_KEY | Value transfer | Type reference (TYPE) | TABKEY | Table Key | 20100401 | |||
| 10 | I_STATUS | Value transfer | Type reference (TYPE) | GRFN_ATF_STATUS | Audit Trail Status | 20100401 | |||
| 11 | I_TIMESTAMP | Value transfer | Type reference (TYPE) | TIMESTAMPL | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | 20100401 | |||
| 12 | I_TOPIC_ID | Value transfer | Type reference (TYPE) | GRFN_ATF_TOPIC_ID | Audit Trail Topic ID | 20100401 | |||
| 13 | I_TYPE_NAME | Value transfer | Type reference (TYPE) | TABNAME | Table Name | 20100401 | |||
| 14 | I_USERNAME | Value transfer | Type reference (TYPE) | SY-UNAME | User Name | 20100401 | |||
| 15 | I_USER_ACT | Value transfer | Type reference (TYPE) | UNAME | User Name | 20100401 | |||
| 16 | I_USER_MAIN | Value transfer | Type reference (TYPE) | UNAME | User Name | 20100401 | |||
| 17 | I_USER_ROLE | Value transfer | Type reference (TYPE) | GRPC_ROLE | User Role | 20100401 | |||
| 18 | I_VALUE_NEW | Call by reference | Type reference (TYPE) | DATA | 20100401 | ||||
| 19 | I_VALUE_OLD | Call by reference | Type reference (TYPE) | DATA | 20100401 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Generic GRC API exception | 20100407 |
Method WRITE_AUDIT_TRAIL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IR_VALUE_NEW | Call by reference | Object reference (TYPE REF TO) | DATA | 20100407 | ||||
| 2 | IR_VALUE_OLD | Call by reference | Object reference (TYPE REF TO) | DATA | 20100407 | ||||
| 3 | I_ATF_ID | Value transfer | Type reference (TYPE) | GUID_32 | GUID in 'CHAR' Format in Uppercase | 20100407 | |||
| 4 | I_CHANGE_TYPE | Value transfer | Type reference (TYPE) | GRFN_ATF_CHANGE_TYPE | Change type of Audit data: Insert, Delete, Update | 20100407 | |||
| 5 | I_DATA_TYPE | Value transfer | Type reference (TYPE) | GRFN_ATF_DATA_TYPE | Single-Character Flag | 20100407 | |||
| 6 | I_INFOR | Value transfer | Type reference (TYPE) | GRFN_ATF_INFO | Audit Trail Info | 20100407 | |||
| 7 | I_TYPE_NAME | Value transfer | Type reference (TYPE) | TABNAME | Table Name | 20100407 | |||
| 8 | RT_DETAIL | Value transfer | Type reference (TYPE) | GRFN_T_API_ATFS | Audit Trail Framework Sub data repository | 20100407 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Generic GRC API exception | 20100407 |
History
| Last changed by/on | SAP | 20141106 |
| SAP Release Created in | 600 |