SAP ABAP Class CL_CNV_DEMO_BASIC_GENERATOR (Basic demo data generator)
Hierarchy
☛
DMIS (Software Component) DMIS 2011_1
⤷
CA-EUR (Application Component) European Monetary Union: Euro
⤷
CNV_DEMO (Package) Dev. class for customer demo transformation packages
⤷
⤷
Meta Relationship - Using
| # | Relationship type | Using | Short Description | Created on |
|---|---|---|---|---|
| 1 | Interface implementation (CLASS c. INTERFACES i_ref) | IF_CNV_DEMO_DATA_GENERATOR | Generator of demo data | 20110810 |
Properties
| Class | CL_CNV_DEMO_BASIC_GENERATOR | |
| Short Description | Basic demo data generator | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | CNV_DEMO | Dev. class for customer demo transformation packages |
| Created | 20110810 | SAP |
| Last change | 20141030 | |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
Class CL_CNV_DEMO_BASIC_GENERATOR has no forward declaration.
Interfaces
| # | Interface | Abstract | Final | Description | Created on |
|---|---|---|---|---|---|
| 1 | IF_CNV_DEMO_DATA_GENERATOR | Generator of demo data | 20110810 |
Friends
Class CL_CNV_DEMO_BASIC_GENERATOR has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Instance attribute | Protected | Type reference (TYPE) | S_BOOK_ID | Booking number | 20110812 | |||
| 2 | Instance attribute | Protected | Type reference (TYPE) | TY_HT_COUNTER | Number of sales office | 20110812 | |||
| 3 | Constant | Public | Type reference (TYPE) | TABNAME | 'ZCARSUMS' | Table Name | 20110817 | ||
| 4 | Constant | Public | Type reference (TYPE) | TABNAME | 'CNV_DEMO_STABTPL' | Table Name | 20110817 | ||
| 5 | Constant | Public | Type reference (TYPE) | TABNAME | 'ZCONSUMS' | Table Name | 20110817 | ||
| 6 | Constant | Public | Type reference (TYPE) | TABNAME | 'CNV_DEMO_FLSTTPL' | Table Name | 20110817 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Calculates the sums for Z-tables | 20110817 | |
| 2 | Static method | Protected | Method | Copies the table from the template | 20110817 | |
| 3 | Static method | Public | Method | Creates some "customer own" tables | 20110817 | |
| 4 | Instance method | Protected | Method | Returns next booking ID | 20110812 | |
| 5 | Instance method | Protected | Method | Returns next counter number | 20110812 | |
| 6 | Static method | Public | Method | distance between cities in in km based on latitude,longitude | 20110811 | |
| 7 | Instance method | Protected | Method | Process SCOUNTER table | 20110812 | |
| 8 | Instance method | Protected | Method | Process SFLIGHT table | 20110812 | |
| 9 | Instance method | Protected | Method | Process SPFLI table | 20110812 | |
| 10 | Static method | Public | Method | Returns random number | 20110812 | |
| 11 | Static method | Protected | Method | Sets the field value in all lines of the table | 20110817 | |
| 12 | Static method | Public | Method | Calculates time difference in seconds | 20110811 |
Events
Class CL_CNV_DEMO_BASIC_GENERATOR has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | TY_COUNTER | Protected | See coding | 20110812 | |
||
| 2 | TY_HT_COUNTER | Protected | See coding | 20110812 | |
Method Signatures
Method CALCULATE_SUMS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | DATA | Value transfer | Object reference (TYPE REF TO) | CL_CNV_DEMO_DATA | Demo data representation | 20111121 |
Method CALCULATE_SUMS on class CL_CNV_DEMO_BASIC_GENERATOR has no exception.
Method COPY_TABLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | TARG_TABNAME | Call by reference | Type reference (TYPE) | TABNAME | Target table name | 20110817 | |||
| 2 | TMPL_TABNAME | Call by reference | Type reference (TYPE) | TABNAME | Template table name | 20110817 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Z-Table could not be created | 20110817 |
Method CREATE_ZTABLES Signature
Method CREATE_ZTABLES on class CL_CNV_DEMO_BASIC_GENERATOR has no parameter.
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Z-Table could not be created | 20110817 |
Method GET_NEXT_BOOKID Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ID | Value transfer | Type reference (TYPE) | S_BOOK_ID | Booking number | 20110812 |
Method GET_NEXT_BOOKID on class CL_CNV_DEMO_BASIC_GENERATOR has no exception.
Method GET_NEXT_COUNTNUM Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CARRID | Call by reference | Type reference (TYPE) | S_CARR_ID | Airline Code | 20110812 | |||
| 2 | NUM | Value transfer | Type reference (TYPE) | S_COUNTNUM | Number of sales office | 20110812 |
Method GET_NEXT_COUNTNUM on class CL_CNV_DEMO_BASIC_GENERATOR has no exception.
Method LATLONG_DIST Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | DISTANCE | Value transfer | Type reference (TYPE) | S_DISTANCE | Distance | 20110811 | |||
| 2 | LAT1 | Call by reference | Type reference (TYPE) | S_LATI | Latitude | 20110811 | |||
| 3 | LAT2 | Call by reference | Type reference (TYPE) | S_LATI | Latitude | 20110811 | |||
| 4 | LNG1 | Call by reference | Type reference (TYPE) | S_LONG | Longitude | 20110811 | |||
| 5 | LNG2 | Call by reference | Type reference (TYPE) | S_LONG | Longitude | 20110811 |
Method LATLONG_DIST on class CL_CNV_DEMO_BASIC_GENERATOR has no exception.
Method PROCESS_SCOUNTER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | SCOUNTERTAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20110812 | ||||
| 2 | SPFLITAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20110812 |
Method PROCESS_SCOUNTER on class CL_CNV_DEMO_BASIC_GENERATOR has no exception.
Method PROCESS_SFLIGHT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | SAPLANETAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20110812 | ||||
| 2 | SBOOKTAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20110812 | ||||
| 3 | SCARPLANTAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20110812 | ||||
| 4 | SCOUNTERTAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20110812 | ||||
| 5 | SCUSTOMTAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20110812 | ||||
| 6 | SFLIGHTTAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20110812 | ||||
| 7 | SPFLITAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20110812 | ||||
| 8 | STICKETTAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20110812 |
Method PROCESS_SFLIGHT on class CL_CNV_DEMO_BASIC_GENERATOR has no exception.
Method PROCESS_SPFLI Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | SAIRPORTTAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20110812 | ||||
| 2 | SCITAIRPTAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20110812 | ||||
| 3 | SGEOCITYTAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20110812 | ||||
| 4 | SPFLITAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20110812 |
Method PROCESS_SPFLI on class CL_CNV_DEMO_BASIC_GENERATOR has no exception.
Method RANDOM Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | FROM | Call by reference | Type reference (TYPE) | INT4 | 1 | Natural number | 20110812 | ||
| 2 | RES | Value transfer | Type reference (TYPE) | INT4 | Natural number | 20110812 | |||
| 3 | TO | Call by reference | Type reference (TYPE) | INT4 | Natural number | 20110812 |
Method RANDOM on class CL_CNV_DEMO_BASIC_GENERATOR has no exception.
Method SET_ITAB_FIELD_VALUE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | FIELDNAME | Call by reference | Type reference (TYPE) | C | 20110817 | ||||
| 2 | ITAB | Call by reference | Type reference (TYPE) | ANY TABLE | 20110817 | ||||
| 3 | VALUE | Call by reference | Type reference (TYPE) | ANY | 20110817 |
Method SET_ITAB_FIELD_VALUE on class CL_CNV_DEMO_BASIC_GENERATOR has no exception.
Method TIME_DIFF Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | DIFF | Value transfer | Type reference (TYPE) | S_FLTIME | Difference in seconds | 20110811 | |||
| 2 | END | Call by reference | Type reference (TYPE) | TIMS | Field of type TIMS | 20110811 | |||
| 3 | END_TZUTC | Call by reference | Type reference (TYPE) | INT4 | Natural number | 20110811 | |||
| 4 | PLUS_DAYS | Call by reference | Type reference (TYPE) | S_PERIOD | 20110811 | ||||
| 5 | START | Call by reference | Type reference (TYPE) | TIMS | Field of type TIMS | 20110811 | |||
| 6 | START_TZUTC | Call by reference | Type reference (TYPE) | INT4 | Natural number | 20110811 |
Method TIME_DIFF on class CL_CNV_DEMO_BASIC_GENERATOR has no exception.
History
| Last changed by/on | SAP | 20141030 |
| SAP Release Created in | 2010_1_620 |