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
⤷ 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 | CL_IXML | 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 | REF_POOL | Static Attribute | Protected | Object reference (TYPE REF TO) | CNV_00001_REF_POOL | Reference pool | 20100325 | ||||||||||||
2 | XML_FIELD_ELEMENT | Constant | Public | Type reference (TYPE) | CHAR40 | ' |
Name of the field element in the XML | 20100215 | |||||||||||
3 | XML_FIELD_ELEMENT_END | Constant | Public | Type reference (TYPE) | CHAR40 | '' | End of the field element in the XML | 20100215 | |||||||||||
4 | XML_FIELD_ELEMENT_NAME | Constant | Public | Type reference (TYPE) | CHAR40 | 'field' | Name of the field element in the XML | 20100407 | |||||||||||
5 | XML_NAME_ATTR_NAME | Constant | Public | Type reference (TYPE) | CHAR40 | 'name' | Name of the name attribute in the XML | 20100407 | |||||||||||
6 | XML_ROW_ELEMENT | Constant | Public | Type reference (TYPE) | CHAR40 | ' |
Name of the row element in the XML | 20100215 | |||||||||||
7 | XML_ROW_ELEMENT_END | Constant | Public | Type reference (TYPE) | CHAR40 | '' | End of the row element in the XML | 20100215 | |||||||||||
8 | XML_ROW_ELEMENT_NAME | Constant | Public | Type reference (TYPE) | CHAR40 | 'row' | Name of the row element in the XML | 20100407 | |||||||||||
9 | XML_STRUCTURE_ATTR_NAME | Constant | Public | Type reference (TYPE) | CHAR40 | 'structure' | Name of the structure attribute in the XML | 20100407 | |||||||||||
10 | XML_TABLE_ELEMENT | Constant | Public | Type reference (TYPE) | CHAR40 | '
|
End of the table element in the XML | 20100215 | |||||||||||
12 | XML_TABLE_ELEMENT_NAME | 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 | ABAP_SYNTAX_HIGHLIGHT | Static method | Public | Method | Returns highlighted abap syntax | 20091103 |
2 | ATTR_TO_STRING | Static method | Public | Method | Returns string representation of XML attribute | 20100324 |
3 | CLASS_CONSTRUCTOR | Static method | Public | Constructor | Constructs static variables | 20100325 |
4 | CREATE_TABLE | Static method | Public | Method | Creates an internal table dynamically | 20100325 |
5 | DO_CREATE_TABLE | Static method | Protected | Method | Performs the actual creation | 20100325 |
6 | GENERATE_ID | Static method | Public | Method | Generates pseudo-unique ID | 20100406 |
7 | GET_KEY_LENGTH | Static method | Public | Method | Returns the length of the key of the table | 20091211 |
8 | GET_POTENTIAL_AGGR_ROUTINES | Static method | Public | Method | Returns all form routines that could be aggregate routines | 20091103 |
9 | GET_POTENTIAL_CONV_ROUTINES | Static method | Public | Method | Returns all form routines that could be conversion routines | 20091103 |
10 | GET_POTENTIAL_PRIO_ROUTINES | Static method | Public | Method | Returns all form routines that could be priority routines | 20091103 |
11 | GET_ROUTINES | Static method | Public | Method | Returns all the routine names from an include | 20091103 |
12 | GET_ROUTINE_SOURCE | Static method | Public | Method | Returns source of the form routine | 20091103 |
13 | GET_ROUTINE_STATEMENT | Static method | Public | Method | Returns the definition of form routine statement | 20091103 |
14 | GET_TABLETYPE_FOR_STRUCT | Static method | Public | Method | Returns first table type for a given structure | 20100125 |
15 | IS_CUST_PACK | Static method | Public | Method | Returns whether package is a customer package | 20100205 |
16 | IS_SYSTEM_UNICODE | Static method | Public | Method | Returns whether system is unicode | 20100408 |
17 | MD5 | Static method | Public | Method | Returns MD5 of a string | 20091112 |
18 | RETURN_TABLE | Static method | Public | Method | Returns the dynamically created table to the pool | 20100325 |
19 | TABLE_CHECKSUM | Static method | Public | Method | Calculates a checksum for a table | 20100326 |
20 | TABLE_TO_XML_ELEM | Static method | Public | Method | Returns an XML element representation of an intern. table | 20100407 |
21 | TOGGLE_FLAG | Static method | Public | Method | Changes the value of 'X' to space and space to 'X' | 20091103 |
22 | XSTRING_TO_STRING | 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 | Importing | ABAP | Call by reference | Type reference (TYPE) | STRING_TABLE | Table with ABAP coding | 20091103 | ||
2 | Importing | CSS | Call by reference | Type reference (TYPE) | STANDARD TABLE | Table with CSS definition | 20091103 | ||
3 | Exporting | 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 | Importing | ATTRIBUTE | Call by reference | Type reference (TYPE) | CNV_00001_XML_ATTRIBUTE | XML Attribute representation | 20100324 | ||
2 | Returning | 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 | Importing | NO_POOL | Call by reference | Type reference (TYPE) | AS4FLAG | SPACE | Do not use pool | 20100412 | |
2 | Importing | STRUCTURE | Call by reference | Type reference (TYPE) | TABNAME | Structure | 20100325 | ||
3 | Returning | TABREF | Value transfer | Object reference (TYPE REF TO) | DATA | Created standard table | 20100325 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CREATION_FAILED | 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 | Importing | STRUCTURE | Call by reference | Type reference (TYPE) | TABNAME | Structure | 20100325 | ||
2 | Returning | TABREF | Value transfer | Object reference (TYPE REF TO) | DATA | Created standard table | 20100325 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CREATION_FAILED | 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 | Returning | 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 | Exporting | LENGTH_BYTE | Call by reference | Type reference (TYPE) | INTLEN | Internal length in bytes | 20091211 | ||
2 | Exporting | LENGTH_CHAR | Call by reference | Type reference (TYPE) | DDLENG | Length (no. of characters) | 20091211 | ||
3 | Importing | TABNAME | Call by reference | Type reference (TYPE) | TABNAME | Table name | 20091211 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | TABLE_NOT_FOUND | 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 | Importing | REBUILD_INDEX | Call by reference | Type reference (TYPE) | AS4FLAG | SPACE | whether to rebuild index before checking | 20091103 | |
2 | Importing | REPORT | Call by reference | Type reference (TYPE) | CNV_PROG | Include (program) name | 20091103 | ||
3 | Exporting | ROUTINES | Call by reference | Type reference (TYPE) | CNV_00001_ROUTINE_STATEMENT_TT | Routine definitions | 20091103 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | PROGRAM_NOT_FOUND | 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 | Importing | REBUILD_INDEX | Call by reference | Type reference (TYPE) | AS4FLAG | SPACE | whether to rebuild index before checking | 20091103 | |
2 | Importing | REPORT | Call by reference | Type reference (TYPE) | CNV_PROG | Include (program) name | 20091103 | ||
3 | Exporting | ROUTINES | Call by reference | Type reference (TYPE) | CNV_00001_ROUTINE_STATEMENT_TT | Routine definitions | 20091103 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | PROGRAM_NOT_FOUND | 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 | Importing | REBUILD_INDEX | Call by reference | Type reference (TYPE) | AS4FLAG | SPACE | whether to rebuild index before checking | 20091103 | |
2 | Importing | REPORT | Call by reference | Type reference (TYPE) | CNV_PROG | Include (program) name | 20091103 | ||
3 | Exporting | ROUTINES | Call by reference | Type reference (TYPE) | CNV_00001_ROUTINE_STATEMENT_TT | Routine definitions | 20091103 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | PROGRAM_NOT_FOUND | Program was not found | 20091103 |
Method GET_ROUTINES Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | MAX_CHANGING_PARAMS | Call by reference | Type reference (TYPE) | INT4 | 9999 | Maximal number of CHANGING parameters | 20091103 | |
2 | Importing | MAX_TABLES_PARAMS | Call by reference | Type reference (TYPE) | INT4 | 9999 | Maximal number of TABLES parameters | 20091103 | |
3 | Importing | MAX_USING_PARAMS | Call by reference | Type reference (TYPE) | INT4 | 9999 | Maximal number of USING parameters | 20091103 | |
4 | Importing | MIN_CHANGING_PARAMS | Call by reference | Type reference (TYPE) | INT4 | 0 | Minimal number of CHANGING parameters | 20091103 | |
5 | Importing | MIN_TABLES_PARAMS | Call by reference | Type reference (TYPE) | INT4 | 0 | Minimal number of TABLES parameters | 20091103 | |
6 | Importing | MIN_USING_PARAMS | Call by reference | Type reference (TYPE) | INT4 | 0 | Minimal number of USING parameters | 20091103 | |
7 | Importing | REBUILD_INDEX | Call by reference | Type reference (TYPE) | AS4FLAG | SPACE | whether to rebuild index before checking | 20091103 | |
8 | Importing | REPORT | Call by reference | Type reference (TYPE) | CNV_PROG | Include (program) name | 20091103 | ||
9 | Exporting | ROUTINES | Call by reference | Type reference (TYPE) | CNV_00001_ROUTINE_STATEMENT_TT | Routine definitions | 20091103 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | PROGRAM_NOT_FOUND | 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 | Exporting | ABAP | Call by reference | Type reference (TYPE) | STRING_TABLE | Coding of routine | 20091103 | ||
2 | Importing | REPORT | Call by reference | Type reference (TYPE) | CNV_PROG | Conversion: (Include) program containing the routine | 20091103 | ||
3 | Importing | ROUTINE | Call by reference | Type reference (TYPE) | CNV_FUNC | Conversion: Name of the routine used | 20091103 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | PROGRAM_NOT_FOUND | Program (include) was not found | 20091103 | |
2 | ROUTINE_NOT_FOUND | 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 | Importing | REPORT | Call by reference | Type reference (TYPE) | CNV_PROG | Conversion: (Include) program containing the routine | 20091103 | ||
2 | Importing | ROUTINE | Call by reference | Type reference (TYPE) | CNV_FUNC | Conversion: Name of the routine used | 20091103 | ||
3 | Exporting | STATEMENT | Call by reference | Type reference (TYPE) | CNV_00001_ROUTINE_STATEMENT | Form routine statement definition | 20091103 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ERROR_IN_STATEMENT | There was an error in form routine statement | 20091103 | |
2 | PROGRAM_NOT_FOUND | Program (include) was not found | 20091103 | |
3 | ROUTINE_NOT_FOUND | 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 | Importing | ACCESSMODE | Call by reference | Type reference (TYPE) | ACCESSMODE | SPACE | Access modes for table types | 20100125 | |
2 | Importing | STRUCTURE | Call by reference | Type reference (TYPE) | TABNAME | Structure name | 20100125 | ||
3 | Returning | TABLETYPE | Value transfer | Type reference (TYPE) | TTYPENAME | Table type name | 20100125 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | NO_TABLE_TYPE_FOUND | 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 | Importing | PACKID | Call by reference | Type reference (TYPE) | CNV_PACK | Conversion: Conversion package number | 20100205 | ||
2 | Returning | 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 | Returning | 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 | Returning | HASH | Value transfer | Type reference (TYPE) | MD5_FIELDS-HASH | MD5 Hash value | 20091112 | ||
2 | Importing | 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 | Importing | STRUCTURE | Call by reference | Type reference (TYPE) | TABNAME | structure | 20100325 | ||
2 | Changing | 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 | Returning | CHECKSUM | Value transfer | Type reference (TYPE) | MD5_FIELDS-HASH | MD5 Hash value | 20100326 | ||
2 | Importing | 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 | Importing | ATTRIBUTES | Call by reference | Type reference (TYPE) | CNV_00001_XML_ATTRIBUTE_TT | List of additional attributes | 20100407 | ||
2 | Importing | DOC | Call by reference | Object reference (TYPE REF TO) | IF_IXML_DOCUMENT | XML document | 20100407 | ||
3 | Exporting | ELEM | Call by reference | Object reference (TYPE REF TO) | IF_IXML_ELEMENT | XML element | 20100407 | ||
4 | Importing | ITAB | Call by reference | Type reference (TYPE) | STANDARD TABLE | Table with data | 20100407 | ||
5 | Importing | STRUCTURE | Call by reference | Type reference (TYPE) | TABNAME | Table name | 20100407 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | STRUCTURE_NOT_FOUND | 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 | Changing | 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 | Returning | STR | Value transfer | Type reference (TYPE) | STRING | string | 20100408 | ||
2 | Importing | 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 |