SAP ABAP Class CNV_00001_UTIL (Utility operations)
Hierarchy
☛
DMIS (Software Component) DMIS 2011_1
⤷
CA-GTF-BS (Application Component) Business Application Support
⤷
CNV_BASIS (Package) Conversion: Basis functions
⤷
⤷
Properties
| Class | CNV_00001_UTIL | |
| Short Description | Utility operations | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | CNV_BASIS | Conversion: Basis functions |
| Created | 20091103 | SAP |
| Last change | 20141030 | |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Forward declaration class (CLASS c DEFINITION DEFERRED) | Forward declaration class (CLASS c DEFINITION DEFERRED) |
Interfaces
Class CNV_00001_UTIL has no interface implemented.
Friends
Class CNV_00001_UTIL has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Static Attribute | Protected | Object reference (TYPE REF TO) | CNV_00001_REF_POOL | Reference pool | 20100325 | |||||||||||||
| 2 | Constant | Public | Type reference (TYPE) | CHAR40 | ' |
Name of the field element in the XML | 20100215 | ||||||||||||
| 3 | Constant | Public | Type reference (TYPE) | CHAR40 | '' | End of the field element in the XML | 20100215 | ||||||||||||
| 4 | Constant | Public | Type reference (TYPE) | CHAR40 | 'field' | Name of the field element in the XML | 20100407 | ||||||||||||
| 5 | Constant | Public | Type reference (TYPE) | CHAR40 | 'name' | Name of the name attribute in the XML | 20100407 | ||||||||||||
| 6 | Constant | Public | Type reference (TYPE) | CHAR40 | ' |
Name of the row element in the XML | 20100215 | ||||||||||||
| 7 | Constant | Public | Type reference (TYPE) | CHAR40 | '' | End of the row element in the XML | 20100215 | ||||||||||||
| 8 | Constant | Public | Type reference (TYPE) | CHAR40 | 'row' | Name of the row element in the XML | 20100407 | ||||||||||||
| 9 | Constant | Public | Type reference (TYPE) | CHAR40 | 'structure' | Name of the structure attribute in the XML | 20100407 | ||||||||||||
| 10 | Constant | Public | Type reference (TYPE) | CHAR40 | '
|
End of the table element in the XML | 20100215 | ||||||||||||
| 12 | Constant | Public | Type reference (TYPE) | CHAR40 | 'table' | Name of the table element in the XML | 20100407 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Returns highlighted abap syntax | 20091103 | |
| 2 | Static method | Public | Method | Returns string representation of XML attribute | 20100324 | |
| 3 | Static method | Public | Constructor | Constructs static variables | 20100325 | |
| 4 | Static method | Public | Method | Creates an internal table dynamically | 20100325 | |
| 5 | Static method | Protected | Method | Performs the actual creation | 20100325 | |
| 6 | Static method | Public | Method | Generates pseudo-unique ID | 20100406 | |
| 7 | Static method | Public | Method | Returns the length of the key of the table | 20091211 | |
| 8 | Static method | Public | Method | Returns all form routines that could be aggregate routines | 20091103 | |
| 9 | Static method | Public | Method | Returns all form routines that could be conversion routines | 20091103 | |
| 10 | Static method | Public | Method | Returns all form routines that could be priority routines | 20091103 | |
| 11 | Static method | Public | Method | Returns all the routine names from an include | 20091103 | |
| 12 | Static method | Public | Method | Returns source of the form routine | 20091103 | |
| 13 | Static method | Public | Method | Returns the definition of form routine statement | 20091103 | |
| 14 | Static method | Public | Method | Returns first table type for a given structure | 20100125 | |
| 15 | Static method | Public | Method | Returns whether package is a customer package | 20100205 | |
| 16 | Static method | Public | Method | Returns whether system is unicode | 20100408 | |
| 17 | Static method | Public | Method | Returns MD5 of a string | 20091112 | |
| 18 | Static method | Public | Method | Returns the dynamically created table to the pool | 20100325 | |
| 19 | Static method | Public | Method | Calculates a checksum for a table | 20100326 | |
| 20 | Static method | Public | Method | Returns an XML element representation of an intern. table | 20100407 | |
| 21 | Static method | Public | Method | Changes the value of 'X' to space and space to 'X' | 20091103 | |
| 22 | Static method | Public | Method | Converts XSTRING to STRING (not unicode-compatible) | 20100408 |
Events
Class CNV_00001_UTIL has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | TY_REF_POOL | Private | See coding | Ref pool entry | 20100325 | |
Method Signatures
Method ABAP_SYNTAX_HIGHLIGHT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ABAP | Call by reference | Type reference (TYPE) | STRING_TABLE | Table with ABAP coding | 20091103 | |||
| 2 | CSS | Call by reference | Type reference (TYPE) | STANDARD TABLE | Table with CSS definition | 20091103 | |||
| 3 | HIGHLIGHTED_ABAP | Call by reference | Type reference (TYPE) | STANDARD TABLE | Table with highlighted coding as HTML | 20091103 |
Method ABAP_SYNTAX_HIGHLIGHT on class CNV_00001_UTIL has no exception.
Method ATTR_TO_STRING Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ATTRIBUTE | Call by reference | Type reference (TYPE) | CNV_00001_XML_ATTRIBUTE | XML Attribute representation | 20100324 | |||
| 2 | RET | Value transfer | Type reference (TYPE) | STRING | String representation | 20100324 |
Method ATTR_TO_STRING on class CNV_00001_UTIL has no exception.
Method CLASS_CONSTRUCTOR Signature
Method CLASS_CONSTRUCTOR on class CNV_00001_UTIL has no parameter.
Method CLASS_CONSTRUCTOR on class CNV_00001_UTIL has no exception.
Method CREATE_TABLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | NO_POOL | Call by reference | Type reference (TYPE) | AS4FLAG | SPACE | Do not use pool | 20100412 | ||
| 2 | STRUCTURE | Call by reference | Type reference (TYPE) | TABNAME | Structure | 20100325 | |||
| 3 | TABREF | Value transfer | Object reference (TYPE REF TO) | DATA | Created standard table | 20100325 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Failed to create a table | 20100325 |
Method DO_CREATE_TABLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | STRUCTURE | Call by reference | Type reference (TYPE) | TABNAME | Structure | 20100325 | |||
| 2 | TABREF | Value transfer | Object reference (TYPE REF TO) | DATA | Created standard table | 20100325 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Failed to create a table | 20100325 |
Method GENERATE_ID Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ID | Value transfer | Type reference (TYPE) | CNV_00001_UPDOWN_ID | Generated id | 20100406 |
Method GENERATE_ID on class CNV_00001_UTIL has no exception.
Method GET_KEY_LENGTH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | LENGTH_BYTE | Call by reference | Type reference (TYPE) | INTLEN | Internal length in bytes | 20091211 | |||
| 2 | LENGTH_CHAR | Call by reference | Type reference (TYPE) | DDLENG | Length (no. of characters) | 20091211 | |||
| 3 | TABNAME | Call by reference | Type reference (TYPE) | TABNAME | Table name | 20091211 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | The table was not found in the system | 20091211 |
Method GET_POTENTIAL_AGGR_ROUTINES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | REBUILD_INDEX | Call by reference | Type reference (TYPE) | AS4FLAG | SPACE | whether to rebuild index before checking | 20091103 | ||
| 2 | REPORT | Call by reference | Type reference (TYPE) | CNV_PROG | Include (program) name | 20091103 | |||
| 3 | ROUTINES | Call by reference | Type reference (TYPE) | CNV_00001_ROUTINE_STATEMENT_TT | Routine definitions | 20091103 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Program was not found | 20091103 |
Method GET_POTENTIAL_CONV_ROUTINES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | REBUILD_INDEX | Call by reference | Type reference (TYPE) | AS4FLAG | SPACE | whether to rebuild index before checking | 20091103 | ||
| 2 | REPORT | Call by reference | Type reference (TYPE) | CNV_PROG | Include (program) name | 20091103 | |||
| 3 | ROUTINES | Call by reference | Type reference (TYPE) | CNV_00001_ROUTINE_STATEMENT_TT | Routine definitions | 20091103 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Program was not found | 20091103 |
Method GET_POTENTIAL_PRIO_ROUTINES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | REBUILD_INDEX | Call by reference | Type reference (TYPE) | AS4FLAG | SPACE | whether to rebuild index before checking | 20091103 | ||
| 2 | REPORT | Call by reference | Type reference (TYPE) | CNV_PROG | Include (program) name | 20091103 | |||
| 3 | ROUTINES | Call by reference | Type reference (TYPE) | CNV_00001_ROUTINE_STATEMENT_TT | Routine definitions | 20091103 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Program was not found | 20091103 |
Method GET_ROUTINES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | MAX_CHANGING_PARAMS | Call by reference | Type reference (TYPE) | INT4 | 9999 | Maximal number of CHANGING parameters | 20091103 | ||
| 2 | MAX_TABLES_PARAMS | Call by reference | Type reference (TYPE) | INT4 | 9999 | Maximal number of TABLES parameters | 20091103 | ||
| 3 | MAX_USING_PARAMS | Call by reference | Type reference (TYPE) | INT4 | 9999 | Maximal number of USING parameters | 20091103 | ||
| 4 | MIN_CHANGING_PARAMS | Call by reference | Type reference (TYPE) | INT4 | 0 | Minimal number of CHANGING parameters | 20091103 | ||
| 5 | MIN_TABLES_PARAMS | Call by reference | Type reference (TYPE) | INT4 | 0 | Minimal number of TABLES parameters | 20091103 | ||
| 6 | MIN_USING_PARAMS | Call by reference | Type reference (TYPE) | INT4 | 0 | Minimal number of USING parameters | 20091103 | ||
| 7 | REBUILD_INDEX | Call by reference | Type reference (TYPE) | AS4FLAG | SPACE | whether to rebuild index before checking | 20091103 | ||
| 8 | REPORT | Call by reference | Type reference (TYPE) | CNV_PROG | Include (program) name | 20091103 | |||
| 9 | ROUTINES | Call by reference | Type reference (TYPE) | CNV_00001_ROUTINE_STATEMENT_TT | Routine definitions | 20091103 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Program was not found | 20091103 |
Method GET_ROUTINE_SOURCE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ABAP | Call by reference | Type reference (TYPE) | STRING_TABLE | Coding of routine | 20091103 | |||
| 2 | REPORT | Call by reference | Type reference (TYPE) | CNV_PROG | Conversion: (Include) program containing the routine | 20091103 | |||
| 3 | ROUTINE | Call by reference | Type reference (TYPE) | CNV_FUNC | Conversion: Name of the routine used | 20091103 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Program (include) was not found | 20091103 | ||
| 2 | Routine was not found | 20091103 |
Method GET_ROUTINE_STATEMENT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | REPORT | Call by reference | Type reference (TYPE) | CNV_PROG | Conversion: (Include) program containing the routine | 20091103 | |||
| 2 | ROUTINE | Call by reference | Type reference (TYPE) | CNV_FUNC | Conversion: Name of the routine used | 20091103 | |||
| 3 | STATEMENT | Call by reference | Type reference (TYPE) | CNV_00001_ROUTINE_STATEMENT | Form routine statement definition | 20091103 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | There was an error in form routine statement | 20091103 | ||
| 2 | Program (include) was not found | 20091103 | ||
| 3 | Routine was not found | 20091103 |
Method GET_TABLETYPE_FOR_STRUCT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ACCESSMODE | Call by reference | Type reference (TYPE) | ACCESSMODE | SPACE | Access modes for table types | 20100125 | ||
| 2 | STRUCTURE | Call by reference | Type reference (TYPE) | TABNAME | Structure name | 20100125 | |||
| 3 | TABLETYPE | Value transfer | Type reference (TYPE) | TTYPENAME | Table type name | 20100125 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | No suitable table type was found | 20100125 |
Method IS_CUST_PACK Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | PACKID | Call by reference | Type reference (TYPE) | CNV_PACK | Conversion: Conversion package number | 20100205 | |||
| 2 | RES | Value transfer | Type reference (TYPE) | AS4FLAG | Flag (X or blank) | 20100205 |
Method IS_CUST_PACK on class CNV_00001_UTIL has no exception.
Method IS_SYSTEM_UNICODE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | UNICODE | Value transfer | Type reference (TYPE) | AS4FLAG | unicode or not | 20100408 |
Method IS_SYSTEM_UNICODE on class CNV_00001_UTIL has no exception.
Method MD5 Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | HASH | Value transfer | Type reference (TYPE) | MD5_FIELDS-HASH | MD5 Hash value | 20091112 | |||
| 2 | VALUE | Call by reference | Type reference (TYPE) | ANY | Value to find a hash of | 20091112 |
Method MD5 on class CNV_00001_UTIL has no exception.
Method RETURN_TABLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | STRUCTURE | Call by reference | Type reference (TYPE) | TABNAME | structure | 20100325 | |||
| 2 | TABREF | Call by reference | Object reference (TYPE REF TO) | DATA | table reference | 20100325 |
Method RETURN_TABLE on class CNV_00001_UTIL has no exception.
Method TABLE_CHECKSUM Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CHECKSUM | Value transfer | Type reference (TYPE) | MD5_FIELDS-HASH | MD5 Hash value | 20100326 | |||
| 2 | TABLE | Call by reference | Type reference (TYPE) | TABLE | Table | 20100326 |
Method TABLE_CHECKSUM on class CNV_00001_UTIL has no exception.
Method TABLE_TO_XML_ELEM Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ATTRIBUTES | Call by reference | Type reference (TYPE) | CNV_00001_XML_ATTRIBUTE_TT | List of additional attributes | 20100407 | |||
| 2 | DOC | Call by reference | Object reference (TYPE REF TO) | IF_IXML_DOCUMENT | XML document | 20100407 | |||
| 3 | ELEM | Call by reference | Object reference (TYPE REF TO) | IF_IXML_ELEMENT | XML element | 20100407 | |||
| 4 | ITAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | Table with data | 20100407 | |||
| 5 | STRUCTURE | Call by reference | Type reference (TYPE) | TABNAME | Table name | 20100407 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Given structure was not found in DDIC | 20100407 |
Method TOGGLE_FLAG Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | FLAG | Call by reference | Type reference (TYPE) | AS4FLAG | Flag | 20091103 |
Method TOGGLE_FLAG on class CNV_00001_UTIL has no exception.
Method XSTRING_TO_STRING Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | STR | Value transfer | Type reference (TYPE) | STRING | string | 20100408 | |||
| 2 | XSTR | Call by reference | Type reference (TYPE) | XSTRING | xstring | 20100408 |
Method XSTRING_TO_STRING on class CNV_00001_UTIL has no exception.
History
| Last changed by/on | SAP | 20141030 |
| SAP Release Created in | 46C |