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
⤷ 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 | BOOKID | Instance attribute | Protected | Type reference (TYPE) | S_BOOK_ID | Booking number | 20110812 | ||
2 | COUNTNUM | Instance attribute | Protected | Type reference (TYPE) | TY_HT_COUNTER | Number of sales office | 20110812 | ||
3 | ZCARR_SUM_TABNAME | Constant | Public | Type reference (TYPE) | TABNAME | 'ZCARSUMS' | Table Name | 20110817 | |
4 | ZCARR_SUM_TMPL_TABNAME | Constant | Public | Type reference (TYPE) | TABNAME | 'CNV_DEMO_STABTPL' | Table Name | 20110817 | |
5 | ZCONN_SUM_TABNAME | Constant | Public | Type reference (TYPE) | TABNAME | 'ZCONSUMS' | Table Name | 20110817 | |
6 | ZCONN_SUM_TMPL_TABNAME | Constant | Public | Type reference (TYPE) | TABNAME | 'CNV_DEMO_FLSTTPL' | Table Name | 20110817 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | CALCULATE_SUMS | Static method | Public | Method | Calculates the sums for Z-tables | 20110817 |
2 | COPY_TABLE | Static method | Protected | Method | Copies the table from the template | 20110817 |
3 | CREATE_ZTABLES | Static method | Public | Method | Creates some "customer own" tables | 20110817 |
4 | GET_NEXT_BOOKID | Instance method | Protected | Method | Returns next booking ID | 20110812 |
5 | GET_NEXT_COUNTNUM | Instance method | Protected | Method | Returns next counter number | 20110812 |
6 | LATLONG_DIST | Static method | Public | Method | distance between cities in in km based on latitude,longitude | 20110811 |
7 | PROCESS_SCOUNTER | Instance method | Protected | Method | Process SCOUNTER table | 20110812 |
8 | PROCESS_SFLIGHT | Instance method | Protected | Method | Process SFLIGHT table | 20110812 |
9 | PROCESS_SPFLI | Instance method | Protected | Method | Process SPFLI table | 20110812 |
10 | RANDOM | Static method | Public | Method | Returns random number | 20110812 |
11 | SET_ITAB_FIELD_VALUE | Static method | Protected | Method | Sets the field value in all lines of the table | 20110817 |
12 | TIME_DIFF | 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 | Returning | 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 | Importing | TARG_TABNAME | Call by reference | Type reference (TYPE) | TABNAME | Target table name | 20110817 | ||
2 | Importing | TMPL_TABNAME | Call by reference | Type reference (TYPE) | TABNAME | Template table name | 20110817 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_CNV_DEMO_DB_ERROR | 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 | CX_CNV_DEMO_DB_ERROR | 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 | Returning | 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 | Importing | CARRID | Call by reference | Type reference (TYPE) | S_CARR_ID | Airline Code | 20110812 | ||
2 | Returning | 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 | Returning | DISTANCE | Value transfer | Type reference (TYPE) | S_DISTANCE | Distance | 20110811 | ||
2 | Importing | LAT1 | Call by reference | Type reference (TYPE) | S_LATI | Latitude | 20110811 | ||
3 | Importing | LAT2 | Call by reference | Type reference (TYPE) | S_LATI | Latitude | 20110811 | ||
4 | Importing | LNG1 | Call by reference | Type reference (TYPE) | S_LONG | Longitude | 20110811 | ||
5 | Importing | 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 | Changing | SCOUNTERTAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20110812 | |||
2 | Importing | 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 | Importing | SAPLANETAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20110812 | |||
2 | Changing | SBOOKTAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20110812 | |||
3 | Importing | SCARPLANTAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20110812 | |||
4 | Importing | SCOUNTERTAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20110812 | |||
5 | Importing | SCUSTOMTAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20110812 | |||
6 | Changing | SFLIGHTTAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20110812 | |||
7 | Importing | SPFLITAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20110812 | |||
8 | Changing | 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 | Importing | SAIRPORTTAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20110812 | |||
2 | Importing | SCITAIRPTAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20110812 | |||
3 | Importing | SGEOCITYTAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20110812 | |||
4 | Changing | 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 | Importing | FROM | Call by reference | Type reference (TYPE) | INT4 | 1 | Natural number | 20110812 | |
2 | Returning | RES | Value transfer | Type reference (TYPE) | INT4 | Natural number | 20110812 | ||
3 | Importing | 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 | Importing | FIELDNAME | Call by reference | Type reference (TYPE) | C | 20110817 | |||
2 | Changing | ITAB | Call by reference | Type reference (TYPE) | ANY TABLE | 20110817 | |||
3 | Importing | 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 | Returning | DIFF | Value transfer | Type reference (TYPE) | S_FLTIME | Difference in seconds | 20110811 | ||
2 | Importing | END | Call by reference | Type reference (TYPE) | TIMS | Field of type TIMS | 20110811 | ||
3 | Importing | END_TZUTC | Call by reference | Type reference (TYPE) | INT4 | Natural number | 20110811 | ||
4 | Importing | PLUS_DAYS | Call by reference | Type reference (TYPE) | S_PERIOD | 20110811 | |||
5 | Importing | START | Call by reference | Type reference (TYPE) | TIMS | Field of type TIMS | 20110811 | ||
6 | Importing | 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 |