SAP ABAP Class CL_DEMO_OUTPUT (Demo Output with Static Methods or Instance Methods)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-ABA-LA (Application Component) Syntax, Compiler, Runtime
     SABAP_DEMOS_OUTPUT_STREAM (Package) Non-UI-Specific Output Stream for Demo Programs
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Interface implementation (CLASS c. INTERFACES i_ref)  IF_DEMO_OUTPUT Demo Output with Instance Methods 20121212
2 Interface implementation (CLASS c. INTERFACES i_ref)  IF_DEMO_OUTPUT_FORMATS Constants for Demo Output Stream 20121212
Properties
Class CL_DEMO_OUTPUT  
Short Description Demo Output with Static Methods or Instance Methods    
Super Class    
Instantiability of a Class 0  Private 
Final    
General Data
Message Class    
Program status     
Category 0   
Package SABAP_DEMOS_OUTPUT_STREAM   Non-UI-Specific Output Stream for Demo Programs 
Created 20120504   SAP 
Last change 20140121   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
Class CL_DEMO_OUTPUT has no forward declaration.
Interfaces
# Interface Abstract Final Description Created on
1 IF_DEMO_OUTPUT Demo Output with Instance Methods 20121212
2 IF_DEMO_OUTPUT_FORMATS Constants for Demo Output Stream 20121212
Friends
Class CL_DEMO_OUTPUT has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 HEADING_LEVEL Instance attribute Private Type reference (TYPE) I Header Level 20121212
2 HTML_MODE Constant Public Type reference (TYPE) STRING 'HTML' HTML Output Mode 20121122
3 HTML_STRING Static Attribute Private Type reference (TYPE) STRING 20121213
4 MODE Instance attribute Private Type reference (TYPE) STRING HTML_MODE Output Mode (HTML or Text) 20121212
5 STATIC_HEADING_LEVEL Static Attribute Private Type reference (TYPE) I 20121212
6 STATIC_HTML_STRING Static Attribute Private Type reference (TYPE) STRING 20121213
7 STATIC_MODE Static Attribute Private Type reference (TYPE) STRING HTML_MODE 20121212
8 STATIC_STREAM_HANDLE Static Attribute Private Object reference (TYPE REF TO) CL_DEMO_OUTPUT_STREAM 20121212
9 STATIC_TEXT_STRING Static Attribute Private Type reference (TYPE) STRING 20121213
10 STREAM_HANDLE Instance attribute Private Object reference (TYPE REF TO) CL_DEMO_OUTPUT_STREAM Reference to Stream Object 20121212
11 TEXT_MODE Constant Public Type reference (TYPE) STRING 'TEXT' Text Output Mode 20121122
12 TEXT_STRING Static Attribute Private Type reference (TYPE) STRING 20121213
Methods
# Method Level Visibility Method type Description Created on
1 BEGIN_SECTION Static method Public Method Opens a header level 20120910
2 CLASS_CONSTRUCTOR Static method Public Constructor Opens output stream and registers event handler 20120504
3 CONSTRUCTOR Instance method Public Constructor CONSTRUCTOR 20121212
4 DISPLAY Static method Public Method Shows the current output and deletes it 20120504
5 DISPLAY_DATA Static method Public Method Adds a data object to the output and shows the output 20120504
6 DISPLAY_HTML Static method Public Method Adds HTML data to the output and shows the output 20120511
7 DISPLAY_JSON Static method Public Method Adds JSON data to the output and shows the output 20120902
8 DISPLAY_TEXT Static method Public Method Adds text to the output and shows the output 20120504
9 DISPLAY_XML Static method Public Method Adds XML data to the output and shows the output 20120510
10 END_SECTION Static method Public Method Closes a header level 20120910
11 EXEC_BEGIN_SECTION Static method Private Method Shared Implementation of BEGIN_SECTION 20121212
12 EXEC_END_SECTION Static method Private Method Shared Implementation of END_SECTION 20121212
13 EXEC_WRITE Static method Private Method Shared Implementation of WRITE 20121213
14 EXEC_WRITE_DATA Static method Private Method Shared Implementation of WRITE_DATA 20121212
15 EXEC_WRITE_HTML Static method Private Method Shared Implementation of WRITE_HTML 20121212
16 EXEC_WRITE_JSON Static method Private Method Shared Implementation of WRITE_JSON 20121212
17 EXEC_WRITE_TEXT Static method Private Method Shared Implementation of WRITE_TEXT 20121212
18 EXEC_WRITE_XML Static method Private Method Shared Implementation of WRITE_XML 20121212
19 GET Static method Public Method Gets the current output and opens a new output 20121213
20 GET_NAME Static method Private Method Gets name of data object (if possible) 20130422
21 LINE Static method Public Method Adds a horizontal HTML line 20120910
22 NEW Static method Public Method Creates an instance of the class and gets the reference 20121212
23 NEXT_SECTION Static method Public Method Closes header level and opens a new level 20120920
24 SET_INSTANCE_HANDLER Instance method Private Method Sets the handler for the stream (HTML or text) 20121213
25 SET_INSTANCE_HTML Instance method Private Event handling method Responds to end of HTML creation and gets HTML 20121213
26 SET_INSTANCE_TEXT Instance method Private Event handling method Responds to end of text creation and gets text 20121213
27 SET_MODE Static method Public Method Sets the static output mode (HTML or text) 20121122
28 SET_STATIC_HANDLER Static method Private Method Sets the handler for the stream (HTML or text) 20121213
29 SET_STATIC_HTML Static method Private Event handling method Responds to end of HTML creation and gets HTML 20121213
30 SET_STATIC_TEXT Static method Private Event handling method Responds to end of text creation and gets text 20121213
31 WRITE Static method Public Method Adds non-proportional text or data to the output 20121213
32 WRITE_DATA Static method Public Method Adds a data object to the output 20120504
33 WRITE_HTML Static method Public Method Adds HTML data to the output 20120511
34 WRITE_JSON Static method Public Method Adds JSON data to the output 20120902
35 WRITE_TEXT Static method Public Method Adds text to the output 20120504
36 WRITE_XML Static method Public Method Adds XML data to the output 20120510
Events
Class CL_DEMO_OUTPUT has no event.
Types
Class CL_DEMO_OUTPUT has no local type.
Method Signatures

Method BEGIN_SECTION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing TITLE Call by reference Type reference (TYPE) CLIKE Titel 20120910

Method BEGIN_SECTION on class CL_DEMO_OUTPUT has no exception.

Method CLASS_CONSTRUCTOR Signature

Method CLASS_CONSTRUCTOR on class CL_DEMO_OUTPUT has no parameter.
Method CLASS_CONSTRUCTOR on class CL_DEMO_OUTPUT has no exception.

Method CONSTRUCTOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing MODE Call by reference Type reference (TYPE) STRING HTML_MODE HTML oder TEXT 20121212

Method CONSTRUCTOR on class CL_DEMO_OUTPUT has no exception.

Method DISPLAY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DATA Call by reference Type reference (TYPE) ANY Text oder Daten 20121213
2 Importing NAME Call by reference Type reference (TYPE) STRING 20130422

Method DISPLAY on class CL_DEMO_OUTPUT has no exception.

Method DISPLAY_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing NAME Call by reference Type reference (TYPE) STRING Name 20130422
2 Importing VALUE Call by reference Type reference (TYPE) DATA 20120504

Method DISPLAY_DATA on class CL_DEMO_OUTPUT has no exception.

Method DISPLAY_HTML Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing HTML Call by reference Type reference (TYPE) CSEQUENCE 20120511

Method DISPLAY_HTML on class CL_DEMO_OUTPUT has no exception.

Method DISPLAY_JSON Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing JSON Call by reference Type reference (TYPE) SIMPLE 20120902

Method DISPLAY_JSON on class CL_DEMO_OUTPUT has no exception.

Method DISPLAY_TEXT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing TEXT Call by reference Type reference (TYPE) CLIKE 20120504

Method DISPLAY_TEXT on class CL_DEMO_OUTPUT has no exception.

Method DISPLAY_XML Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing XML Call by reference Type reference (TYPE) SIMPLE 20120510

Method DISPLAY_XML on class CL_DEMO_OUTPUT has no exception.

Method END_SECTION Signature

Method END_SECTION on class CL_DEMO_OUTPUT has no parameter.
Method END_SECTION on class CL_DEMO_OUTPUT has no exception.

Method EXEC_BEGIN_SECTION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing HEADING_LEVEL Call by reference Type reference (TYPE) I 20121212
2 Importing STREAM_HANDLE Call by reference Object reference (TYPE REF TO) CL_DEMO_OUTPUT_STREAM 20121212
3 Importing TITLE Call by reference Type reference (TYPE) CLIKE 20121212

Method EXEC_BEGIN_SECTION on class CL_DEMO_OUTPUT has no exception.

Method EXEC_END_SECTION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing HEADING_LEVEL Call by reference Type reference (TYPE) I 20121212

Method EXEC_END_SECTION on class CL_DEMO_OUTPUT has no exception.

Method EXEC_WRITE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DATA Call by reference Type reference (TYPE) ANY 20121213
2 Importing NAME Call by reference Type reference (TYPE) STRING Name 20130422
3 Importing STREAM_HANDLE Call by reference Object reference (TYPE REF TO) CL_DEMO_OUTPUT_STREAM Demo für XML-Ausgabestrom für ABAP-Daten 20121213

Method EXEC_WRITE on class CL_DEMO_OUTPUT has no exception.

Method EXEC_WRITE_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing NAME Call by reference Type reference (TYPE) STRING Name 20130422
2 Importing STREAM_HANDLE Call by reference Object reference (TYPE REF TO) CL_DEMO_OUTPUT_STREAM 20121212
3 Importing VALUE Call by reference Type reference (TYPE) DATA 20121212

Method EXEC_WRITE_DATA on class CL_DEMO_OUTPUT has no exception.

Method EXEC_WRITE_HTML Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing HTML Call by reference Type reference (TYPE) CSEQUENCE 20121212
2 Importing STREAM_HANDLE Call by reference Object reference (TYPE REF TO) CL_DEMO_OUTPUT_STREAM 20121212

Method EXEC_WRITE_HTML on class CL_DEMO_OUTPUT has no exception.

Method EXEC_WRITE_JSON Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing JSON Call by reference Type reference (TYPE) SIMPLE 20121212
2 Importing STREAM_HANDLE Call by reference Object reference (TYPE REF TO) CL_DEMO_OUTPUT_STREAM 20121212

Method EXEC_WRITE_JSON on class CL_DEMO_OUTPUT has no exception.

Method EXEC_WRITE_TEXT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing STREAM_HANDLE Call by reference Object reference (TYPE REF TO) CL_DEMO_OUTPUT_STREAM 20121212
2 Importing TEXT Call by reference Type reference (TYPE) CLIKE 20121212

Method EXEC_WRITE_TEXT on class CL_DEMO_OUTPUT has no exception.

Method EXEC_WRITE_XML Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing STREAM_HANDLE Call by reference Object reference (TYPE REF TO) CL_DEMO_OUTPUT_STREAM 20121212
2 Importing XML Call by reference Type reference (TYPE) SIMPLE 20121212

Method EXEC_WRITE_XML on class CL_DEMO_OUTPUT has no exception.

Method GET Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DATA Call by reference Type reference (TYPE) ANY Text oder Daten 20121213
2 Importing NAME Call by reference Type reference (TYPE) STRING 20130422
3 Returning OUTPUT Value transfer Type reference (TYPE) STRING 20130422

Method GET on class CL_DEMO_OUTPUT has no exception.

Method GET_NAME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning NAME Value transfer Type reference (TYPE) STRING Name 20130422

Method GET_NAME on class CL_DEMO_OUTPUT has no exception.

Method LINE Signature

Method LINE on class CL_DEMO_OUTPUT has no parameter.
Method LINE on class CL_DEMO_OUTPUT has no exception.

Method NEW Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing MODE Call by reference Type reference (TYPE) STRING HTML_MODE HTML oder TEXT 20121212
2 Returning OUTPUT Value transfer Object reference (TYPE REF TO) IF_DEMO_OUTPUT 20121212

Method NEW on class CL_DEMO_OUTPUT has no exception.

Method NEXT_SECTION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing TITLE Call by reference Type reference (TYPE) CLIKE Titel 20120920

Method NEXT_SECTION on class CL_DEMO_OUTPUT has no exception.

Method SET_INSTANCE_HANDLER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing MODE Call by reference Type reference (TYPE) STRING HTML_MODE HTML_MODE oder TEXT_MODE 20121213

Method SET_INSTANCE_HANDLER on class CL_DEMO_OUTPUT has no exception.

Method SET_INSTANCE_HTML Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing EV_HTML Value transfer Attribute reference (LIKE) 20121213

Method SET_INSTANCE_HTML on class CL_DEMO_OUTPUT has no exception.

Method SET_INSTANCE_TEXT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing EV_TEXT Value transfer Attribute reference (LIKE) 20121213

Method SET_INSTANCE_TEXT on class CL_DEMO_OUTPUT has no exception.

Method SET_MODE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing MODE Call by reference Type reference (TYPE) STRING HTML_MODE HTML_MODE oder TEXT_MODE 20121122

Method SET_MODE on class CL_DEMO_OUTPUT has no exception.

Method SET_STATIC_HANDLER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing MODE Call by reference Type reference (TYPE) STRING HTML_MODE HTML_MODE oder TEXT_MODE 20121213

Method SET_STATIC_HANDLER on class CL_DEMO_OUTPUT has no exception.

Method SET_STATIC_HTML Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing EV_HTML Value transfer Attribute reference (LIKE) 20121213

Method SET_STATIC_HTML on class CL_DEMO_OUTPUT has no exception.

Method SET_STATIC_TEXT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing EV_TEXT Value transfer Attribute reference (LIKE) 20121213

Method SET_STATIC_TEXT on class CL_DEMO_OUTPUT has no exception.

Method WRITE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DATA Call by reference Type reference (TYPE) ANY Text oder Daten 20121213
2 Importing NAME Call by reference Type reference (TYPE) STRING Name 20130422

Method WRITE on class CL_DEMO_OUTPUT has no exception.

Method WRITE_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing NAME Call by reference Type reference (TYPE) STRING Name 20130422
2 Importing VALUE Call by reference Type reference (TYPE) DATA 20120504

Method WRITE_DATA on class CL_DEMO_OUTPUT has no exception.

Method WRITE_HTML Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing HTML Call by reference Type reference (TYPE) CSEQUENCE 20120511

Method WRITE_HTML on class CL_DEMO_OUTPUT has no exception.

Method WRITE_JSON Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing JSON Call by reference Type reference (TYPE) SIMPLE 20120902

Method WRITE_JSON on class CL_DEMO_OUTPUT has no exception.

Method WRITE_TEXT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing TEXT Call by reference Type reference (TYPE) CLIKE Text 20120504

Method WRITE_TEXT on class CL_DEMO_OUTPUT has no exception.

Method WRITE_XML Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing XML Call by reference Type reference (TYPE) SIMPLE 20120510

Method WRITE_XML on class CL_DEMO_OUTPUT has no exception.
History
Last changed by/on SAP  20140121 
SAP Release Created in 732