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_OUTPUT

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_FORMATS

Method 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 NameDescriptionVisability
BEGIN_CODETags a code sectionPublic
CALL METHOD cl_demo_output=>BEGIN_CODE...more details

BEGIN_SECTIONOpens a header levelPublic
CALL METHOD cl_demo_output=>BEGIN_SECTION...more details

CLASS_CONSTRUCTOROpens output stream and registers event handlerPublic
CALL METHOD cl_demo_output=>CLASS_CONSTRUCTOR...more details

CLEARClear current outputPublic
CALL METHOD cl_demo_output=>CLEAR...more details

COMPLEX_2_JSONPrivate
CALL METHOD cl_demo_output=>COMPLEX_2_JSON...more details

CONSTRUCTORCONSTRUCTORPublic
CALL METHOD cl_demo_output=>CONSTRUCTOR...more details

CONVERT_HTML_2_TEXTConvert HTML to plain text without tagsPrivate
CALL METHOD cl_demo_output=>CONVERT_HTML_2_TEXT...more details

DISPLAYShows the current output and deletes itPublic
CALL METHOD cl_demo_output=>DISPLAY...more details

DISPLAY_DATAAdds a data object to the output and shows the outputPublic
CALL METHOD cl_demo_output=>DISPLAY_DATA...more details

DISPLAY_DOCAdds docu HTML data to the output and displays the outputPublic
CALL METHOD cl_demo_output=>DISPLAY_DOC...more details

DISPLAY_HTMLAdds HTML data to the output and shows the outputPublic
CALL METHOD cl_demo_output=>DISPLAY_HTML...more details

DISPLAY_JSONAdds JSON data to the output and shows the outputPublic
CALL METHOD cl_demo_output=>DISPLAY_JSON...more details

DISPLAY_TEXTAdds text to the output and shows the outputPublic
CALL METHOD cl_demo_output=>DISPLAY_TEXT...more details

DISPLAY_XMLAdds XML data to the output and shows the outputPublic
CALL METHOD cl_demo_output=>DISPLAY_XML...more details

END_CODETags a code sectionPublic
CALL METHOD cl_demo_output=>END_CODE...more details

END_SECTIONCloses a header levelPublic
CALL METHOD cl_demo_output=>END_SECTION...more details

EXEC_BEGIN_CODECommon Implementation of BEGIN_CODEPrivate
CALL METHOD cl_demo_output=>EXEC_BEGIN_CODE...more details

EXEC_BEGIN_SECTIONShared Implementation of BEGIN_SECTIONPrivate
CALL METHOD cl_demo_output=>EXEC_BEGIN_SECTION...more details

EXEC_CLEARCommon Implementation of CLEARPrivate
CALL METHOD cl_demo_output=>EXEC_CLEAR...more details

EXEC_END_SECTIONShared Implementation of END_SECTIONPrivate
CALL METHOD cl_demo_output=>EXEC_END_SECTION...more details

EXEC_WRITEShared Implementation of WRITEPrivate
CALL METHOD cl_demo_output=>EXEC_WRITE...more details

EXEC_WRITE_DATAShared Implementation of WRITE_DATAPrivate
CALL METHOD cl_demo_output=>EXEC_WRITE_DATA...more details

EXEC_WRITE_DOCCommon Implementation of WRITE_DOCPrivate
CALL METHOD cl_demo_output=>EXEC_WRITE_DOC...more details

EXEC_WRITE_HTMLShared Implementation of WRITE_HTMLPrivate
CALL METHOD cl_demo_output=>EXEC_WRITE_HTML...more details

EXEC_WRITE_JSONShared Implementation of WRITE_JSONPrivate
CALL METHOD cl_demo_output=>EXEC_WRITE_JSON...more details

EXEC_WRITE_TEXTShared Implementation of WRITE_TEXTPrivate
CALL METHOD cl_demo_output=>EXEC_WRITE_TEXT...more details

EXEC_WRITE_XMLShared Implementation of WRITE_XMLPrivate
CALL METHOD cl_demo_output=>EXEC_WRITE_XML...more details

GETGets the current output and opens a new outputPublic
CALL METHOD cl_demo_output=>GET...more details

GET_ADT_CONSOLE_FLAGGets flag for the ADT consolePrivate
CALL METHOD cl_demo_output=>GET_ADT_CONSOLE_FLAG...more details

GET_ADT_CONSOLE_INPUT_FLAGPrivate
CALL METHOD cl_demo_output=>GET_ADT_CONSOLE_INPUT_FLAG...more details

GET_NAMEGets name of data object (if possible)Private
CALL METHOD cl_demo_output=>GET_NAME...more details

LINEAdds a horizontal HTML linePublic
CALL METHOD cl_demo_output=>LINE...more details

NEWCreates an instance of the class and gets the referencePublic
CALL METHOD cl_demo_output=>NEW...more details

NEXT_SECTIONCloses header level and opens a new levelPublic
CALL METHOD cl_demo_output=>NEXT_SECTION...more details

SET_INSTANCE_HANDLERSets the handler for the stream (HTML or text)Private
CALL METHOD cl_demo_output=>SET_INSTANCE_HANDLER...more details

SET_INSTANCE_HTMLResponds to end of HTML creation and gets HTMLPrivate
CALL METHOD cl_demo_output=>SET_INSTANCE_HTML...more details

SET_INSTANCE_JSONPrivate
CALL METHOD cl_demo_output=>SET_INSTANCE_JSON...more details

SET_INSTANCE_TEXTResponds to end of text creation and gets textPrivate
CALL METHOD cl_demo_output=>SET_INSTANCE_TEXT...more details

SET_INSTANCE_XMLPrivate
CALL METHOD cl_demo_output=>SET_INSTANCE_XML...more details

SET_MODESets the static output mode (HTML or text)Public
CALL METHOD cl_demo_output=>SET_MODE...more details

SET_STATIC_HANDLERSets the handler for the stream (HTML or text)Private
CALL METHOD cl_demo_output=>SET_STATIC_HANDLER...more details

SET_STATIC_HTMLResponds to end of HTML creation and gets HTMLPrivate
CALL METHOD cl_demo_output=>SET_STATIC_HTML...more details

SET_STATIC_JSONPrivate
CALL METHOD cl_demo_output=>SET_STATIC_JSON...more details

SET_STATIC_TEXTResponds to end of text creation and gets textPrivate
CALL METHOD cl_demo_output=>SET_STATIC_TEXT...more details

SET_STATIC_XMLPrivate
CALL METHOD cl_demo_output=>SET_STATIC_XML...more details

WRITEAdds non-proportional text or data to the outputPublic
CALL METHOD cl_demo_output=>WRITE...more details

WRITE_DATAAdds a data object to the outputPublic
CALL METHOD cl_demo_output=>WRITE_DATA...more details

WRITE_DOCAdds documentation HTML data to the outputPublic
CALL METHOD cl_demo_output=>WRITE_DOC...more details

WRITE_HTMLAdds HTML data to the outputPublic
CALL METHOD cl_demo_output=>WRITE_HTML...more details

WRITE_JSONAdds JSON data to the outputPublic
CALL METHOD cl_demo_output=>WRITE_JSON...more details

WRITE_TEXTAdds text to the outputPublic
CALL METHOD cl_demo_output=>WRITE_TEXT...more details

WRITE_XMLAdds XML data to the outputPublic
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.

NameLevelDescriptionInitial ValueTypeVisability
CLASSESStatic AttributeLIKE
Private
CLASSRUNStatic AttributeLIKE
ABAP_BOOL
Private
CLASSRUN_OUTPUTStatic AttributeLIKE
ABAP_BOOL
Private
HEADING_LEVELInstance AttributeHeader LevelLIKE
I
Private
HLINEConstant`______________________________________________________________________________`LIKE
STRING
Private
HTML_MODEConstantHTML Output Mode'HTML'LIKE
STRING
Public
HTML_STRINGInstance AttributeLIKE
Private
JSON_MODEConstantJSON Output Mode (XML stream converted to JSON)'JSON'LIKE
STRING
Public
JSON_STRINGStatic AttributeLIKE
STRING
Private
MODEInstance AttributeOutput Mode (HTML or Text)HTML_MODELIKE
STRING
Private
STATIC_HEADING_LEVELInstance AttributeLIKE
Private
STATIC_HTML_STRINGInstance AttributeLIKE
Private
STATIC_JSON_STRINGStatic AttributeLIKE
STRING
Private
STATIC_MODEInstance AttributeLIKE
Private
STATIC_STREAM_HANDLEInstance AttributeLIKE
Private
STATIC_TEXT_STRINGInstance AttributeLIKE
Private
STATIC_XML_STRINGStatic AttributeLIKE
STRING
Private
STREAM_HANDLEInstance AttributeReference to Stream ObjectLIKE
CL_DEMO_OUTPUT_STREAM
Private
TEXT_MODEConstantText Output Mode'TEXT'LIKE
STRING
Public
TEXT_STRINGInstance AttributeLIKE
Private
XML_MODEConstantXML Output Mode (unconverted XML stream)'XML'LIKE
STRING
Public
XML_STRINGStatic AttributeLIKE
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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!