Hierarchy
⤷
⤷
Properties
| Class | /TDAG/CPCL_CFPXML | |
| Short Description | CP: CfPXML handler | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | /TDAG/CP_EX | CP: Report generation and export |
| Created | 20070118 | SAP |
| Last change | 20141109 | 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) |
Interfaces
Class /TDAG/CPCL_CFPXML has no interface implemented.
Friends
Class /TDAG/CPCL_CFPXML 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) | /TDAG/CPYH_XML_IDX1 | CP: CfPXML index hashed table | 20070118 | |||
| 2 | Instance attribute | Protected | Type reference (TYPE) | /TDAG/CPYH_XML_IDX2 | CP: CfPXML index hashed table | 20070118 | |||
| 3 | Instance attribute | Protected | Type reference (TYPE) | /TDAG/CPYH_XML_IDX3 | CP: CfPXML index hashed table | 20070118 | |||
| 4 | Instance attribute | Protected | Type reference (TYPE) | /TDAG/CPY_XML_LONGTEXT | CP: Table type for CfPXML long text | 20070213 | |||
| 5 | Instance attribute | Protected | Type reference (TYPE) | /TDAG/CPY_XML | XML elements table | 20070118 | |||
| 6 | Instance attribute | Protected | Type reference (TYPE) | I | 0 | Last used ID | 20070118 | ||
| 7 | Constant | Public | Type reference (TYPE) | /TDAG/CPE_XML_TYPE | 'A' | Attribute node type | 20070118 | ||
| 8 | Constant | Public | Type reference (TYPE) | /TDAG/CPE_XML_TYPE | 'E' | Element node type | 20070118 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Method | CP: Add attribute to XML element | 20070118 | |
| 2 | Instance method | Public | Method | CP: Add sub-element to XML element | 20070118 | |
| 3 | Instance method | Public | Method | CP: Add root XML element | 20070118 | |
| 4 | Instance method | Public | Method | CP: Clear the XML data | 20070118 | |
| 5 | Instance method | Public | Constructor | CONSTRUCTOR | 20070118 | |
| 6 | Instance method | Public | Method | CP: Delete XML element (including sub-elements) | 20070118 | |
| 7 | Instance method | Public | Method | CP: Delete attributes of XML element | 20070118 | |
| 8 | Instance method | Public | Method | CP: Delete XML element (including sub-elements) | 20070118 | |
| 9 | Instance method | Public | Method | Deletes the long text value of an element | 20070213 | |
| 10 | Instance method | Public | Method | Delete all elements having no subelements, atrributes or val | 20070214 | |
| 11 | Instance method | Public | Method | CP: Delete sub-elements of XML element | 20070118 | |
| 12 | Static method | Public | Method | Escape reserved XML characters <,>,&," and ' | 20071109 | |
| 13 | Static method | Public | Method | Finds and replaces substring with another substring | 20070119 | |
| 14 | Instance method | Public | Method | CP: Get XML element attributes | 20070118 | |
| 15 | Instance method | Public | Method | CP: Get attribute data of XML element | 20070118 | |
| 16 | Instance method | Public | Method | CP: Get XML element data | 20070118 | |
| 17 | Instance method | Public | Method | Gets the long text value of an element | 20070213 | |
| 18 | Instance method | Public | Method | CP: Get root XML element data | 20070118 | |
| 19 | Instance method | Public | Method | CP: Get sub-elements of XML element | 20070118 | |
| 20 | Instance method | Public | Method | CP: Get the XML string | 20070118 | |
| 21 | Instance method | Public | Method | Checks if element has sub-elements | 20070214 | |
| 22 | Instance method | Public | Method | Checks if element has attributes | 20070215 | |
| 23 | Instance method | Public | Method | CP: Set attribute data of XML element | 20070118 | |
| 24 | Instance method | Public | Method | CP: Set XML element data | 20070118 | |
| 25 | Instance method | Public | Method | Sets the long text value of an element | 20070213 | |
| 26 | Static method | Public | Method | Checks if element or attribute name is valid | 20070118 |
Events
Class /TDAG/CPCL_CFPXML has no event.
Types
Class /TDAG/CPCL_CFPXML has no local type.
Method Signatures
Method ADD_ATTRIBUTE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_ID | Value transfer | Type reference (TYPE) | I | The ID of the new attribute | 20070118 | |||
| 2 | I_NAME | Value transfer | Type reference (TYPE) | STRING | The name of the new attribute | 20070118 | |||
| 3 | I_ORDER | Value transfer | Type reference (TYPE) | I | The order of the new attribute | 20070118 | |||
| 4 | I_PARENTID | Value transfer | Type reference (TYPE) | I | The ID of the element | 20070118 | |||
| 5 | I_VALUE | Value transfer | Type reference (TYPE) | STRING | The value of the new attribute | 20070118 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Duplicate attribute name | 20070118 | ||
| 2 | Element I_PARENTID not found | 20070118 | ||
| 3 | Internal error | 20070118 | ||
| 4 | Invalid attribute name | 20070118 |
Method ADD_ELEMENT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_ID | Value transfer | Type reference (TYPE) | I | The ID of the new element | 20070118 | |||
| 2 | I_NAME | Value transfer | Type reference (TYPE) | STRING | The name of the new element | 20070118 | |||
| 3 | I_ORDER | Value transfer | Type reference (TYPE) | I | The order of the new element | 20070118 | |||
| 4 | I_PARENTID | Value transfer | Type reference (TYPE) | I | The ID of the parent element | 20070118 | |||
| 5 | I_VALUE | Value transfer | Type reference (TYPE) | STRING | The value of the new element | 20070118 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Element I_PARENTID not found | 20070118 | ||
| 2 | Internal error | 20070118 | ||
| 3 | invalid element name | 20070118 |
Method ADD_ROOT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_ID | Value transfer | Type reference (TYPE) | I | The ID of the root | 20070118 | |||
| 2 | I_NAME | Value transfer | Type reference (TYPE) | STRING | The name of the XML root element | 20070118 | |||
| 3 | I_VALUE | Value transfer | Type reference (TYPE) | STRING | The value of the XML root element | 20070118 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Internal error | 20070118 | ||
| 2 | Invalid root element name | 20070118 | ||
| 3 | Root element exists | 20070118 |
Method CLEAR Signature
Method CLEAR on class /TDAG/CPCL_CFPXML has no parameter.
Method CLEAR on class /TDAG/CPCL_CFPXML has no exception.
Method CONSTRUCTOR Signature
Method CONSTRUCTOR on class /TDAG/CPCL_CFPXML has no parameter.
Method CONSTRUCTOR on class /TDAG/CPCL_CFPXML has no exception.
Method DELETE_ATTRIBUTE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_ID | Value transfer | Type reference (TYPE) | I | The ID of the attribute | 20070118 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Attribute ID not found | 20070118 | ||
| 2 | Internal error | 20070118 |
Method DELETE_ATTRIBUTES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_PARENTID | Value transfer | Type reference (TYPE) | I | The parnet ID of the attributes | 20070118 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Element I_PARENTID not found | 20070118 | ||
| 2 | Internal error | 20070118 |
Method DELETE_ELEMENT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_ID | Value transfer | Type reference (TYPE) | I | The ID of the element | 20070118 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Element ID not found | 20070118 | ||
| 2 | Internal error | 20070118 |
Method DELETE_ELEMENT_LONGTEXT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_ID | Call by reference | Type reference (TYPE) | /TDAG/CPE_XML_ID | CP: XML Element ID | 20070213 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Element ID not found | 20070213 | ||
| 2 | Internal error | 20070213 |
Method DELETE_EMPTY_ELEMENTS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_ID | Call by reference | Type reference (TYPE) | I | 1 | Element ID | 20070214 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Element ID not found | 20070214 | ||
| 2 | Internal error | 20070214 |
Method DELETE_SUBELEMENTS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_PARENTID | Value transfer | Type reference (TYPE) | I | The ID of the element | 20070118 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Element I_PARENTID not found | 20070118 | ||
| 2 | Internal error | 20070118 |
Method ESCAPE_XML_CHAR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_VALUE | Call by reference | Type reference (TYPE) | STRING | XML value to be parsed and converted | 20071109 | |||
| 2 | R_VALUE | Value transfer | Type reference (TYPE) | STRING | XML value - corrected | 20071109 |
Method ESCAPE_XML_CHAR on class /TDAG/CPCL_CFPXML has no exception.
Method FIND_REPLACE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_FIND | Value transfer | Type reference (TYPE) | STRING | Find what | 20070119 | |||
| 2 | I_REPLACE | Value transfer | Type reference (TYPE) | STRING | Replace with | 20070119 | |||
| 3 | I_STRING | Value transfer | Type reference (TYPE) | STRING | Searched string | 20070119 | |||
| 4 | R_RESULT | Value transfer | Type reference (TYPE) | STRING | Result | 20070125 |
Method FIND_REPLACE on class /TDAG/CPCL_CFPXML has no exception.
Method GET_ATTRIBUTES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_ATTRIBUTES_IDS | Call by reference | Type reference (TYPE) | /TDAG/CPY_IDS | The IDs of the attributes | 20070118 | |||
| 2 | I_PARENTID | Value transfer | Type reference (TYPE) | I | The ID of the parent element | 20070118 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Attributes not found | 20070118 | ||
| 2 | Element I_PARENTID not found | 20070118 |
Method GET_ATTRIBUTE_DATA Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_NAME | Call by reference | Type reference (TYPE) | STRING | The name of the attribute | 20070118 | |||
| 2 | E_ORDER | Call by reference | Type reference (TYPE) | I | The order of the attribute | 20070118 | |||
| 3 | E_PARENTID | Call by reference | Type reference (TYPE) | I | The parent ID of the attribute | 20070118 | |||
| 4 | E_VALUE | Call by reference | Type reference (TYPE) | STRING | The value of the attribute | 20070118 | |||
| 5 | I_ID | Value transfer | Type reference (TYPE) | I | The ID of the attribute | 20070118 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Attribute ID not found | 20070118 | ||
| 2 | Internal error | 20070118 |
Method GET_ELEMENT_DATA Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_FLG_LONGTEXT | Call by reference | Type reference (TYPE) | /TDAG/CPE_XML_LONGTEXT | CP: XML Long text flag | 20070213 | |||
| 2 | E_NAME | Call by reference | Type reference (TYPE) | STRING | The name of the element | 20070118 | |||
| 3 | E_ORDER | Call by reference | Type reference (TYPE) | I | The order of the element | 20070118 | |||
| 4 | E_PARENTID | Call by reference | Type reference (TYPE) | I | The parent ID of the element | 20070118 | |||
| 5 | E_VALUE | Call by reference | Type reference (TYPE) | STRING | The value of the element | 20070118 | |||
| 6 | I_ID | Value transfer | Type reference (TYPE) | I | The ID of the element | 20070118 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Element ID not found | 20070118 | ||
| 2 | Internal error | 20070118 |
Method GET_ELEMENT_LONGTEXT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_LONGTEXT | Call by reference | Type reference (TYPE) | /TDAG/CPY_STRING | CP: Table type for CfPXML long text | 20070213 | |||
| 2 | E_ORDER | Call by reference | Type reference (TYPE) | I | Position of the long text value among other sublements | 20070319 | |||
| 3 | I_ID | Call by reference | Type reference (TYPE) | /TDAG/CPE_XML_ID | CP: XML Element ID | 20070213 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Element has no long text | 20070213 | ||
| 2 | Element ID not found | 20070213 | ||
| 3 | Internal error | 20070213 |
Method GET_ROOT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_NAME | Call by reference | Type reference (TYPE) | STRING | The name of the XML root element | 20070118 | |||
| 2 | E_VALUE | Call by reference | Type reference (TYPE) | STRING | The value of the XML root element | 20070118 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Internal error | 20070118 | ||
| 2 | Root element not found | 20070118 |
Method GET_SUBELEMENTS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_SUBELEMENTS_IDS | Call by reference | Type reference (TYPE) | /TDAG/CPY_IDS | The IDs of the sub-elements | 20070118 | |||
| 2 | I_PARENTID | Value transfer | Type reference (TYPE) | I | The ID of the parent element | 20070118 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Element I_PARENTID not found | 20070118 | ||
| 2 | Subelements not found | 20070118 |
Method GET_XML Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_ID | Value transfer | Type reference (TYPE) | I | 1 | The ID of the element | 20070118 | ||
| 2 | RT_XML | Value transfer | Type reference (TYPE) | /TDAG/CPY_STRING | The XML string table | 20070125 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Element ID not found | 20070118 | ||
| 2 | Internal error | 20070118 |
Method HAS_ATTRIBUTES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_HAS_ATTRIBUTES | Value transfer | Type reference (TYPE) | C | has attributes flag | 20070214 | |||
| 2 | I_ID | Value transfer | Type reference (TYPE) | I | Element ID | 20070214 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Element not found | 20070214 | ||
| 2 | Internal error | 20070214 |
Method HAS_SUBELEMENTS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_HAS_SUBELEMENTS | Value transfer | Type reference (TYPE) | C | Has subelements flag | 20070215 | |||
| 2 | I_ID | Value transfer | Type reference (TYPE) | I | Element ID | 20070215 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Element not found | 20070215 | ||
| 2 | Internal error | 20070215 |
Method SET_ATTRIBUTE_DATA Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_ID | Value transfer | Type reference (TYPE) | I | The ID of the attribute | 20070118 | |||
| 2 | I_NAME | Value transfer | Type reference (TYPE) | STRING | The name of the attribute | 20070118 | |||
| 3 | I_ORDER | Value transfer | Type reference (TYPE) | I | The order of the attribute | 20070118 | |||
| 4 | I_VALUE | Value transfer | Type reference (TYPE) | STRING | The value of the attribute | 20070118 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Attribute ID not found | 20070118 | ||
| 2 | Duplicate attribute name | 20070118 | ||
| 3 | Internal error | 20070118 | ||
| 4 | Invalid attribute name | 20070118 |
Method SET_ELEMENT_DATA Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_ID | Value transfer | Type reference (TYPE) | I | The ID of the element | 20070118 | |||
| 2 | I_NAME | Value transfer | Type reference (TYPE) | STRING | The name of the element | 20070118 | |||
| 3 | I_ORDER | Value transfer | Type reference (TYPE) | I | The order of the element | 20070118 | |||
| 4 | I_VALUE | Value transfer | Type reference (TYPE) | STRING | The value of the element | 20070118 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Element ID not found | 20070118 | ||
| 2 | Internal error | 20070118 | ||
| 3 | Invalid element name | 20070118 |
Method SET_ELEMENT_LONGTEXT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IT_LONGTEXT | Value transfer | Type reference (TYPE) | /TDAG/CPY_STRING | CP: Table type for CfPXML long text | 20070213 | |||
| 2 | I_ID | Value transfer | Type reference (TYPE) | /TDAG/CPE_XML_ID | CP: XML Element ID | 20070213 | |||
| 3 | I_ORDER | Value transfer | Type reference (TYPE) | I | 0 | Position of the long text value among other sublements | 20070319 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Element ID not found | 20070213 | ||
| 2 | Internal error | 20070213 | ||
| 3 | Long text table is empty | 20070213 |
Method VALIDATE_XML_NAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_NAME | Call by reference | Type reference (TYPE) | STRING | Name to check | 20070118 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Value contains ampersand | 20070118 | ||
| 2 | Value contains apostrophe | 20070118 | ||
| 3 | Value contains greater than | 20070118 | ||
| 4 | Value contains less than | 20070118 | ||
| 5 | Value contains quotation mark cha | 20070118 | ||
| 6 | Value contains space | 20070118 |
History
| Last changed by/on | SAP | 20141109 |
| SAP Release Created in | 0207B0406C |