SAP CL_DEMO_OUTPUT_STREAM OO Class - Demo for XML Output Stream for ABAP Data
CL_DEMO_OUTPUT_STREAM is a standard SAP object class available within R/3 SAP systems depending on your version and release level. You can view/maintain the class details by entering its name into the relevant SAP transactions such as SE24, SE80 or even SE84. Below is the documentation available for class CL_DEMO_OUTPUT_STREAM including details of:
- Interface class implementations
- Inheritance details
- Methods defined within class ( including link to full details )
- Attributes ( including initial values )
- Class Events
Interface Implementation
This OO class is an Interface Implementation, which means it will implement its own version of the methods from implementation class IF_DEMO_OUTPUT_FORMATSMethod list of CL_DEMO_OUTPUT_STREAM SAP class
A method is a coding block that performs a certain procedure (i.e. ABAP functionality) on an object within the overall SAP class. In simple terms if the object is an SAP database table a method could be the procedure to add a record or to delete a record. If you are new to OO in many respects, the implementation of a method is similar to a function module and can be called in a very similar way using CALL METHOD.
Instead of "CALL FUNCTION", Methods are referenced using the following syntax: CALL METHOD =>methodname EXPORTING/IMPORTING...
| Method Name | Description | Visability |
| ADD_ELEMENTARY_OBJECT | Attaches elementary data object | Private |
| CALL METHOD cl_demo_output_stream=>ADD_ELEMENTARY_OBJECT...more details | ||
| ADD_STRUCTURED_OBJECT | Attaches structured data object | Private |
| CALL METHOD cl_demo_output_stream=>ADD_STRUCTURED_OBJECT...more details | ||
| ADD_TABULAR_OBJECT | Attaches table-like data object | Private |
| CALL METHOD cl_demo_output_stream=>ADD_TABULAR_OBJECT...more details | ||
| ATTRIBUTES2STRUCTURED | Handle attributes of referenced objects | Private |
| CALL METHOD cl_demo_output_stream=>ATTRIBUTES2STRUCTURED...more details | ||
| CHECK_STRUCTURE | Checks for elementary elements and resolves includes | Private |
| CALL METHOD cl_demo_output_stream=>CHECK_STRUCTURE...more details | ||
| CLEAR_STREAM | Clear stream | Public |
| CALL METHOD cl_demo_output_stream=>CLEAR_STREAM...more details | ||
|
| ||
| CLOSE | Closes output stream and triggers eventq | Public |
| CALL METHOD cl_demo_output_stream=>CLOSE...more details | ||
| CONSTRUCTOR | CONSTRUCTOR | Public |
| CALL METHOD cl_demo_output_stream=>CONSTRUCTOR...more details | ||
| CREATE_VALUE | Creates segment of output stream | Private |
| CALL METHOD cl_demo_output_stream=>CREATE_VALUE...more details | ||
| ELEMENTARY2STRUCTURED | Converts elementary data object to structured data object | Private |
| CALL METHOD cl_demo_output_stream=>ELEMENTARY2STRUCTURED...more details | ||
| FINALIZE_STREAM | Finish stream in internal table | Private |
| CALL METHOD cl_demo_output_stream=>FINALIZE_STREAM...more details | ||
| FINALIZE_XML | Finish stream in XML stream | Private |
| CALL METHOD cl_demo_output_stream=>FINALIZE_XML...more details | ||
| HANDLE_EXCLUDE_INCLUDE | Handle excluded/included structure components | Private |
| CALL METHOD cl_demo_output_stream=>HANDLE_EXCLUDE_INCLUDE...more details | ||
| HANDLE_NESTED | Creates xml for nested components | Private |
| CALL METHOD cl_demo_output_stream=>HANDLE_NESTED...more details | ||
| HANDLE_REFERENCES | Creates xml for dereferenced references | Private |
| CALL METHOD cl_demo_output_stream=>HANDLE_REFERENCES...more details | ||
| OPEN | Opens an output stream | Public |
| CALL METHOD cl_demo_output_stream=>OPEN...more details | ||
| STRUCTURED2TABULAR | Converts structured data object to table-like data object | Private |
| CALL METHOD cl_demo_output_stream=>STRUCTURED2TABULAR...more details | ||
| WRITE_DATA | Writes data object to stream | Public |
| CALL METHOD cl_demo_output_stream=>WRITE_DATA...more details | ||
| WRITE_HTML | Writes formatted HTML text to stream | Public |
| CALL METHOD cl_demo_output_stream=>WRITE_HTML...more details | ||
| WRITE_JSON | Writes formatted JSON text to the stream | Public |
| CALL METHOD cl_demo_output_stream=>WRITE_JSON...more details | ||
| WRITE_NESTED | Writes data object, closes stream and returns nested XML | Private |
| CALL METHOD cl_demo_output_stream=>WRITE_NESTED...more details | ||
| WRITE_TEXT | Writes text to stream | Public |
| CALL METHOD cl_demo_output_stream=>WRITE_TEXT...more details | ||
| WRITE_XML | Writes formatted XML text to stream | Public |
| CALL METHOD cl_demo_output_stream=>WRITE_XML...more details | ||
CL_DEMO_OUTPUT_STREAM attributes
List of attributes within class CL_ABAP_CHAR_UTILITIES. These can be referenced using the following syntax CL_ABAP_CHAR_UTILITIES=>. Although depending on where you are inserting the ABAP code you do need to check if the attribute is public or private.
| Name | Level | Description | Initial Value | Type | Visability |
| GC_DATA_REFERENCE | Constant | `data reference` | LIKE STRING | Private | |
| GC_EXISTING_REFERENCE | Constant | Placeholder for Reference Variables | `see first occurrence of` | LIKE STRING | Private |
| GC_HEADING | Instance Attribute | LIKE | Private | ||
| GC_HTML | Constant | Name for HTML | `html` | LIKE STRING | Private |
| GC_INITIAL_NAME | Constant | Initial name of data object | `initial_name` | LIKE STRING | Private |
| GC_INITIAL_REFERENCE | Constant | Placeholder for Reference Variables | `initial reference` | LIKE STRING | Private |
| GC_JSON | Constant | Name for JSON | `json` | LIKE STRING | Private |
| GC_NONPROP | Instance Attribute | LIKE | Private | ||
| GC_NO_ATTRIBUTES | Constant | No public attributes | `no public attributes` | LIKE STRING | Private |
| GC_OBJECT_REFERENCE | Constant | Placeholder for Reference Variables | `object reference` | LIKE STRING | Private |
| GC_REFERENCE | Constant | Placeholder for Reference Variables | `reference` | LIKE STRING | Private |
| GC_REFLIMIT | Constant | 1000 | LIKE I | Private | |
| GC_SOURCE_CODE | Constant | Name for source code | `source_code` | LIKE STRING | Private |
| GC_TEXT | Instance Attribute | LIKE | Private | ||
| GC_XML | Constant | Name for XML | `xml` | LIKE STRING | Private |
| GT_DREF | Static Attribute | LIKE TT_NAMES | Private | ||
| GT_DREFS | Static Attribute | LIKE TT_DREFS | Private | ||
| GT_INTERFACES | Static Attribute | LIKE TT_NAMES | Private | ||
| GT_NESTED | Static Attribute | LIKE TT_NAMES | Private | ||
| GT_OREF | Static Attribute | LIKE TT_NAMES | Private | ||
| GT_OREFS | Static Attribute | LIKE TT_OREFS | Private | ||
| GV_REFCOUNTER | Static Attribute | LIKE I | Private | ||
| MT_EXCLUDE | Instance Attribute | LIKE TT_EXCLUDE_INCLUDE | Private | ||
| MT_INCLUDE | Instance Attribute | LIKE TT_EXCLUDE_INCLUDE | Private | ||
| MT_NESTEDS | Instance Attribute | LIKE TT_NESTEDS | Private | ||
| MT_REFERENCED | Instance Attribute | LIKE TT_NESTEDS | Private | ||
| MT_STREAM | Instance Attribute | Internal table for output stream | LIKE ABAP_TRANS_SRCBIND_TAB | Private | |
| MV_CLOSED | Instance Attribute | abap_true, if stream closed | ABAP_FALSE | LIKE ABAP_BOOL | Private |
| MV_NAME | Instance Attribute | Name of Data Object | LIKE STRING | Private | |
| MV_TEST_MODE | Instance Attribute | LIKE ABAP_BOOL | Private |
Events of Class CL_DEMO_OUTPUT_STREAM
Events are created within your class using special event handler methods. These must be registered at runtime for the event and can then be triggered using the ABAP syntax: RAISE EVENT EXPOTING... COMPLETED - Output stream closedCL_DEMO_OUTPUT_STREAM types
TS_DREF -TS_NAMES -
TS_NESTED -
TS_OREF -
TT_DREFS -
TT_EXCLUDE_INCLUDE -
TT_NAMES -
TT_NESTEDS -
TT_OREFS -
Links to Related Class(s)
CL_DEMO_...Full list of available SAP object classes
Search for further information about these or an SAP related objects