SAP CL_DEMO_OUTPUT OO Class - Demo Output using Static Methods or Instance Methods
CL_DEMO_OUTPUT 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 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_OUTPUTInterface 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 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 |
| BEGIN_CODE | Tags a code section | Public |
| CALL METHOD cl_demo_output=>BEGIN_CODE...more details | ||
| BEGIN_SECTION | Opens a header level | Public |
| CALL METHOD cl_demo_output=>BEGIN_SECTION...more details | ||
| CLASS_CONSTRUCTOR | Opens output stream and registers event handler | Public |
| CALL METHOD cl_demo_output=>CLASS_CONSTRUCTOR...more details | ||
| CLEAR | Clear current output | Public |
| CALL METHOD cl_demo_output=>CLEAR...more details | ||
| COMPLEX_2_JSON | Private | |
| CALL METHOD cl_demo_output=>COMPLEX_2_JSON...more details | ||
| CONSTRUCTOR | CONSTRUCTOR | Public |
| CALL METHOD cl_demo_output=>CONSTRUCTOR...more details | ||
|
| ||
| CONVERT_HTML_2_TEXT | Convert HTML to plain text without tags | Private |
| CALL METHOD cl_demo_output=>CONVERT_HTML_2_TEXT...more details | ||
| DISPLAY | Shows the current output and deletes it | Public |
| CALL METHOD cl_demo_output=>DISPLAY...more details | ||
| DISPLAY_DATA | Adds a data object to the output and shows the output | Public |
| CALL METHOD cl_demo_output=>DISPLAY_DATA...more details | ||
| DISPLAY_DOC | Adds docu HTML data to the output and displays the output | Public |
| CALL METHOD cl_demo_output=>DISPLAY_DOC...more details | ||
| DISPLAY_HTML | Adds HTML data to the output and shows the output | Public |
| CALL METHOD cl_demo_output=>DISPLAY_HTML...more details | ||
| DISPLAY_JSON | Adds JSON data to the output and shows the output | Public |
| CALL METHOD cl_demo_output=>DISPLAY_JSON...more details | ||
| DISPLAY_TEXT | Adds text to the output and shows the output | Public |
| CALL METHOD cl_demo_output=>DISPLAY_TEXT...more details | ||
| DISPLAY_XML | Adds XML data to the output and shows the output | Public |
| CALL METHOD cl_demo_output=>DISPLAY_XML...more details | ||
| END_CODE | Tags a code section | Public |
| CALL METHOD cl_demo_output=>END_CODE...more details | ||
| END_SECTION | Closes a header level | Public |
| CALL METHOD cl_demo_output=>END_SECTION...more details | ||
| EXEC_BEGIN_CODE | Common Implementation of BEGIN_CODE | Private |
| CALL METHOD cl_demo_output=>EXEC_BEGIN_CODE...more details | ||
| EXEC_BEGIN_SECTION | Shared Implementation of BEGIN_SECTION | Private |
| CALL METHOD cl_demo_output=>EXEC_BEGIN_SECTION...more details | ||
| EXEC_CLEAR | Common Implementation of CLEAR | Private |
| CALL METHOD cl_demo_output=>EXEC_CLEAR...more details | ||
| EXEC_END_SECTION | Shared Implementation of END_SECTION | Private |
| CALL METHOD cl_demo_output=>EXEC_END_SECTION...more details | ||
| EXEC_WRITE | Shared Implementation of WRITE | Private |
| CALL METHOD cl_demo_output=>EXEC_WRITE...more details | ||
| EXEC_WRITE_DATA | Shared Implementation of WRITE_DATA | Private |
| CALL METHOD cl_demo_output=>EXEC_WRITE_DATA...more details | ||
| EXEC_WRITE_DOC | Common Implementation of WRITE_DOC | Private |
| CALL METHOD cl_demo_output=>EXEC_WRITE_DOC...more details | ||
| EXEC_WRITE_HTML | Shared Implementation of WRITE_HTML | Private |
| CALL METHOD cl_demo_output=>EXEC_WRITE_HTML...more details | ||
| EXEC_WRITE_JSON | Shared Implementation of WRITE_JSON | Private |
| CALL METHOD cl_demo_output=>EXEC_WRITE_JSON...more details | ||
| EXEC_WRITE_TEXT | Shared Implementation of WRITE_TEXT | Private |
| CALL METHOD cl_demo_output=>EXEC_WRITE_TEXT...more details | ||
| EXEC_WRITE_XML | Shared Implementation of WRITE_XML | Private |
| CALL METHOD cl_demo_output=>EXEC_WRITE_XML...more details | ||
| GET | Gets the current output and opens a new output | Public |
| CALL METHOD cl_demo_output=>GET...more details | ||
| GET_ADT_CONSOLE_FLAG | Gets flag for the ADT console | Private |
| CALL METHOD cl_demo_output=>GET_ADT_CONSOLE_FLAG...more details | ||
| GET_ADT_CONSOLE_INPUT_FLAG | Private | |
| CALL METHOD cl_demo_output=>GET_ADT_CONSOLE_INPUT_FLAG...more details | ||
| GET_NAME | Gets name of data object (if possible) | Private |
| CALL METHOD cl_demo_output=>GET_NAME...more details | ||
| LINE | Adds a horizontal HTML line | Public |
| CALL METHOD cl_demo_output=>LINE...more details | ||
| NEW | Creates an instance of the class and gets the reference | Public |
| CALL METHOD cl_demo_output=>NEW...more details | ||
| NEXT_SECTION | Closes header level and opens a new level | Public |
| CALL METHOD cl_demo_output=>NEXT_SECTION...more details | ||
| SET_INSTANCE_HANDLER | Sets the handler for the stream (HTML or text) | Private |
| CALL METHOD cl_demo_output=>SET_INSTANCE_HANDLER...more details | ||
| SET_INSTANCE_HTML | Responds to end of HTML creation and gets HTML | Private |
| CALL METHOD cl_demo_output=>SET_INSTANCE_HTML...more details | ||
| SET_INSTANCE_JSON | Private | |
| CALL METHOD cl_demo_output=>SET_INSTANCE_JSON...more details | ||
| SET_INSTANCE_TEXT | Responds to end of text creation and gets text | Private |
| CALL METHOD cl_demo_output=>SET_INSTANCE_TEXT...more details | ||
| SET_INSTANCE_XML | Private | |
| CALL METHOD cl_demo_output=>SET_INSTANCE_XML...more details | ||
| SET_MODE | Sets the static output mode (HTML or text) | Public |
| CALL METHOD cl_demo_output=>SET_MODE...more details | ||
| SET_STATIC_HANDLER | Sets the handler for the stream (HTML or text) | Private |
| CALL METHOD cl_demo_output=>SET_STATIC_HANDLER...more details | ||
| SET_STATIC_HTML | Responds to end of HTML creation and gets HTML | Private |
| CALL METHOD cl_demo_output=>SET_STATIC_HTML...more details | ||
| SET_STATIC_JSON | Private | |
| CALL METHOD cl_demo_output=>SET_STATIC_JSON...more details | ||
| SET_STATIC_TEXT | Responds to end of text creation and gets text | Private |
| CALL METHOD cl_demo_output=>SET_STATIC_TEXT...more details | ||
| SET_STATIC_XML | Private | |
| CALL METHOD cl_demo_output=>SET_STATIC_XML...more details | ||
| WRITE | Adds non-proportional text or data to the output | Public |
| CALL METHOD cl_demo_output=>WRITE...more details | ||
| WRITE_DATA | Adds a data object to the output | Public |
| CALL METHOD cl_demo_output=>WRITE_DATA...more details | ||
| WRITE_DOC | Adds documentation HTML data to the output | Public |
| CALL METHOD cl_demo_output=>WRITE_DOC...more details | ||
| WRITE_HTML | Adds HTML data to the output | Public |
| CALL METHOD cl_demo_output=>WRITE_HTML...more details | ||
| WRITE_JSON | Adds JSON data to the output | Public |
| CALL METHOD cl_demo_output=>WRITE_JSON...more details | ||
| WRITE_TEXT | Adds text to the output | Public |
| CALL METHOD cl_demo_output=>WRITE_TEXT...more details | ||
| WRITE_XML | Adds XML data to the output | Public |
| CALL METHOD cl_demo_output=>WRITE_XML...more details | ||
CL_DEMO_OUTPUT 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 |
| CLASSES | Static Attribute | LIKE | Private | ||
| CLASSRUN | Static Attribute | LIKE ABAP_BOOL | Private | ||
| CLASSRUN_OUTPUT | Static Attribute | LIKE ABAP_BOOL | Private | ||
| HEADING_LEVEL | Instance Attribute | Header Level | LIKE I | Private | |
| HLINE | Constant | `______________________________________________________________________________` | LIKE STRING | Private | |
| HTML_MODE | Constant | HTML Output Mode | 'HTML' | LIKE STRING | Public |
| HTML_STRING | Instance Attribute | LIKE | Private | ||
| JSON_MODE | Constant | JSON Output Mode (XML stream converted to JSON) | 'JSON' | LIKE STRING | Public |
| JSON_STRING | Static Attribute | LIKE STRING | Private | ||
| MODE | Instance Attribute | Output Mode (HTML or Text) | HTML_MODE | LIKE STRING | Private |
| STATIC_HEADING_LEVEL | Instance Attribute | LIKE | Private | ||
| STATIC_HTML_STRING | Instance Attribute | LIKE | Private | ||
| STATIC_JSON_STRING | Static Attribute | LIKE STRING | Private | ||
| STATIC_MODE | Instance Attribute | LIKE | Private | ||
| STATIC_STREAM_HANDLE | Instance Attribute | LIKE | Private | ||
| STATIC_TEXT_STRING | Instance Attribute | LIKE | Private | ||
| STATIC_XML_STRING | Static Attribute | LIKE STRING | Private | ||
| STREAM_HANDLE | Instance Attribute | Reference to Stream Object | LIKE CL_DEMO_OUTPUT_STREAM | Private | |
| TEXT_MODE | Constant | Text Output Mode | 'TEXT' | LIKE STRING | Public |
| TEXT_STRING | Instance Attribute | LIKE | Private | ||
| XML_MODE | Constant | XML Output Mode (unconverted XML stream) | 'XML' | LIKE STRING | Public |
| XML_STRING | Static Attribute | LIKE STRING | Private |
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