SAP ABAP Class CL_FDT_RANDOM (FDT: Random Number)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-SRV-BR (Application Component) BRFplus - ABAP-Based Business Rules
⤷
SFDT_EXPRESSIONS (Package) BRFplus: Expressions
⤷
⤷
Meta Relationship - Using
| # | Relationship type | Using | Short Description | Created on |
|---|---|---|---|---|
| 1 | Inheritance (c INHERITING FROM c_ref) | CL_FDT_EXPRESSION | FDT: Abstract Expression Class | 20060126 |
| 2 | Interface implementation (CLASS c. INTERFACES i_ref) | IF_FDT_RANDOM | FDT: Random Number | 20060126 |
Properties
| Class | CL_FDT_RANDOM | |
| Short Description | FDT: Random Number | |
| Super Class | CL_FDT_EXPRESSION | FDT: Abstract Expression Class |
| Instantiability of a Class | 1 | Protected |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | SFDT_EXPRESSIONS | BRFplus: Expressions |
| Created | 20060126 | SAP |
| Last change | 20140121 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) | |
| 2 | Forward declaration interface (INTERFACE i DEFINITION DEF... | Forward declaration interface (INTERFACE i DEFINITION DEF... | |
| 3 | Forward declaration interface (INTERFACE i DEFINITION DEF... | Forward declaration interface (INTERFACE i DEFINITION DEF... |
Interfaces
| # | Interface | Abstract | Final | Description | Created on |
|---|---|---|---|---|---|
| 1 | IF_FDT_RANDOM | FDT: Random Number | 20060126 |
Friends
| # | Friend | Modeled only | Created on | Description |
|---|---|---|---|---|
| 1 | CL_FDT_FACTORY | 20060126 | FDT: Factory |
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Private | Type reference (TYPE) | TABNAME | 'FDT_EXPR_2000' | Table Name | 20070813 | ||
| 2 | Instance attribute | Private | Type reference (TYPE) | S_BUFFER | Transactional Data Buffer | 20060126 | |||
| 3 | Instance attribute | Private | Type reference (TYPE) | S_BUFFER | Transactional Data Buffer | 20060126 | |||
| 4 | Instance attribute | Private | Attribute reference (LIKE) | 20060126 | |||||
| 5 | Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE: MS_BUFFER_DB is loaded | 20070813 | |||
| 6 | Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE: MS_BUFFER is loaded | 20060801 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Private | Method | Adjust borders | 20060129 | |
| 2 | Instance method | Private | Method | Adjust the decimals | 20060129 | |
| 3 | Instance method | Private | Method | Adjust the probability | 20060203 | |
| 4 | Instance method | Private | Method | Checks the borders | 20070219 | |
| 5 | Instance method | Private | Method | Check for numeric | 20060204 | |
| 6 | Instance method | Private | Method | Generates the code for the process of the random number expr | 20070305 | |
| 7 | Instance method | Private | Method | Generates the result processing for the number type result | 20070306 | |
| 8 | Instance method | Private | Method | Load the buffer | 20060126 | |
| 9 | Instance method | Private | Method | Load the buffer from data base | 20060126 | |
| 10 | Instance method | Private | Method | Save the buffer into the data base | 20060126 | |
| 11 | Instance method | Private | Method | Set the buffer | 20060126 |
Events
Class CL_FDT_RANDOM has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | S_BUFFER | Private | See coding | Transactional Data Buffer | 20060126 | BEGIN OF s_buffer,
decimals TYPE if_fdt_random=>decimals,
* minimum TYPE fdt_expr_2000-minimum,
minimum TYPE if_fdt_types=>element_number,
minimum_id TYPE if_fdt_types=>id,
* maximum TYPE fdt_expr_2000-maximum,
maximum TYPE if_fdt_types=>element_number,
maximum_id TYPE if_fdt_types=>id,
probability TYPE if_fdt_random=>probability,
probability_id TYPE if_fdt_types=>id,
END OF s_buffer
|
Method Signatures
Method ADJUST_BORDERS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CV_MAXIMUM | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_NUMBER | Border for maximum value | 20101202 | |||
| 2 | CV_MINIMUM | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_NUMBER | Border for minimum value | 20101202 |
Method ADJUST_BORDERS on class CL_FDT_RANDOM has no exception.
Method ADJUST_DECIMALS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DECIMALS | Call by reference | Type reference (TYPE) | IF_FDT_RANDOM=>DECIMALS | Decimals | 20060129 | |||
| 2 | RV_DECIMALS | Value transfer | Type reference (TYPE) | IF_FDT_RANDOM=>DECIMALS | Adjusted decimals | 20060129 |
Method ADJUST_DECIMALS on class CL_FDT_RANDOM has no exception.
Method ADJUST_PROBABILITY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CV_PROBABILITY | Call by reference | Type reference (TYPE) | IF_FDT_RANDOM=>PROBABILITY | 20101202 |
Method ADJUST_PROBABILITY on class CL_FDT_RANDOM has no exception.
Method CHECK_BORDERS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_ACTIVATION_CHECK | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20070219 | |||
| 2 | IV_COMPLETE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20070219 | |||
| 3 | IV_MAXIMUM | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_NUMBER | 20070219 | ||||
| 4 | IV_MAXIMUM_ID | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ID | 20070219 | ||||
| 5 | IV_MINIMUM | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_NUMBER | 20070219 | ||||
| 6 | IV_MINIMUM_ID | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ID | 20070219 | ||||
| 7 | RT_MESSAGE | Value transfer | Type reference (TYPE) | IF_FDT_TYPES=>T_MESSAGE | 20070219 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | FDT: Invalid Input | 20110107 |
Method CHECK_NUMERIC Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_COMPLETE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20060204 | |||
| 2 | IV_ID | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ID | 20060204 | ||||
| 3 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>TIMESTAMP | Time Stamp (active version) | 20060806 | |||
| 4 | RS_MESSAGE | Value transfer | Type reference (TYPE) | IF_FDT_TYPES=>S_MESSAGE | 20060204 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | FDT: Invalid Input | 20060806 |
Method GENERATE_RANDOM_PROCESS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CTS_USED_CONTEXT_ID | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>TS_USED_CONTEXT_ID | 20070305 | ||||
| 2 | ET_SOURCE_CODE | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>T_SOURCE_CODE | 20070305 | ||||
| 3 | IO_GENERATION_MNGR | Call by reference | Object reference (TYPE REF TO) | CL_FDT_GENERATION_MANAGER | FDT: Generation of Classes | 20080420 | |||
| 4 | IV_CREATE_VARIABLE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | 20070305 | |||
| 5 | IV_FUNCTION_ID | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ID | 20070720 | ||||
| 6 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>TIMESTAMP | 20070305 | ||||
| 7 | IV_VARIABLE_NAME | Call by reference | Type reference (TYPE) | CLIKE | 20070305 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | FDT: Error in the Generation Process | 20070305 | ||
| 2 | FDT: Invalid Input | 20070305 |
Method GENERATE_RANDOM_RES_NUMBER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_SOURCE_CODE | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>T_SOURCE_CODE | 20070306 | ||||
| 2 | IV_MAX_NAME | Call by reference | Type reference (TYPE) | STRING | 20070306 | ||||
| 3 | IV_MIN_NAME | Call by reference | Type reference (TYPE) | STRING | 20070306 | ||||
| 4 | IV_RESULT_NAME | Call by reference | Type reference (TYPE) | CLIKE | 20070306 | ||||
| 5 | IV_SEED_NAME | Call by reference | Type reference (TYPE) | STRING | 20070306 | ||||
| 6 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>TIMESTAMP | 20070306 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | FDT: Error in the Generation Process | 20070306 | ||
| 2 | FDT: Invalid Input | 20070306 |
Method LOAD_BUFFER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>TIMESTAMP | Timestamp of active version | 20070811 | |||
| 2 | IV_VERSION | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>VERSION | 20060126 | ||||
| 3 | RS_BUFFER | Value transfer | Type reference (TYPE) | S_BUFFER | 20060126 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20060126 |
Method LOAD_BUFFER_DB Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_VERSION | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>VERSION | 20060126 | ||||
| 2 | RS_BUFFER | Value transfer | Type reference (TYPE) | S_BUFFER | 20060126 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20060126 |
Method SAVE_BUFFER_DB Signature
Method SAVE_BUFFER_DB on class CL_FDT_RANDOM has no parameter.
Method SAVE_BUFFER_DB on class CL_FDT_RANDOM has no exception.
Method SET_BUFFER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_BUFFER | Call by reference | Type reference (TYPE) | S_BUFFER | 20060126 |
Method SET_BUFFER on class CL_FDT_RANDOM has no exception.
History
| Last changed by/on | SAP | 20140121 |
| SAP Release Created in | 710 |