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_FORMATS

Method 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 NameDescriptionVisability
ADD_ELEMENTARY_OBJECTAttaches elementary data objectPrivate
CALL METHOD cl_demo_output_stream=>ADD_ELEMENTARY_OBJECT...more details

ADD_STRUCTURED_OBJECTAttaches structured data objectPrivate
CALL METHOD cl_demo_output_stream=>ADD_STRUCTURED_OBJECT...more details

ADD_TABULAR_OBJECTAttaches table-like data objectPrivate
CALL METHOD cl_demo_output_stream=>ADD_TABULAR_OBJECT...more details

ATTRIBUTES2STRUCTUREDHandle attributes of referenced objectsPrivate
CALL METHOD cl_demo_output_stream=>ATTRIBUTES2STRUCTURED...more details

CHECK_STRUCTUREChecks for elementary elements and resolves includesPrivate
CALL METHOD cl_demo_output_stream=>CHECK_STRUCTURE...more details

CLEAR_STREAMClear streamPublic
CALL METHOD cl_demo_output_stream=>CLEAR_STREAM...more details

CLOSECloses output stream and triggers eventqPublic
CALL METHOD cl_demo_output_stream=>CLOSE...more details

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

CREATE_VALUECreates segment of output streamPrivate
CALL METHOD cl_demo_output_stream=>CREATE_VALUE...more details

ELEMENTARY2STRUCTUREDConverts elementary data object to structured data objectPrivate
CALL METHOD cl_demo_output_stream=>ELEMENTARY2STRUCTURED...more details

FINALIZE_STREAMFinish stream in internal tablePrivate
CALL METHOD cl_demo_output_stream=>FINALIZE_STREAM...more details

FINALIZE_XMLFinish stream in XML streamPrivate
CALL METHOD cl_demo_output_stream=>FINALIZE_XML...more details

HANDLE_EXCLUDE_INCLUDEHandle excluded/included structure componentsPrivate
CALL METHOD cl_demo_output_stream=>HANDLE_EXCLUDE_INCLUDE...more details

HANDLE_NESTEDCreates xml for nested componentsPrivate
CALL METHOD cl_demo_output_stream=>HANDLE_NESTED...more details

HANDLE_REFERENCESCreates xml for dereferenced referencesPrivate
CALL METHOD cl_demo_output_stream=>HANDLE_REFERENCES...more details

OPENOpens an output streamPublic
CALL METHOD cl_demo_output_stream=>OPEN...more details

STRUCTURED2TABULARConverts structured data object to table-like data objectPrivate
CALL METHOD cl_demo_output_stream=>STRUCTURED2TABULAR...more details

WRITE_DATAWrites data object to streamPublic
CALL METHOD cl_demo_output_stream=>WRITE_DATA...more details

WRITE_HTMLWrites formatted HTML text to streamPublic
CALL METHOD cl_demo_output_stream=>WRITE_HTML...more details

WRITE_JSONWrites formatted JSON text to the streamPublic
CALL METHOD cl_demo_output_stream=>WRITE_JSON...more details

WRITE_NESTEDWrites data object, closes stream and returns nested XMLPrivate
CALL METHOD cl_demo_output_stream=>WRITE_NESTED...more details

WRITE_TEXTWrites text to streamPublic
CALL METHOD cl_demo_output_stream=>WRITE_TEXT...more details

WRITE_XMLWrites formatted XML text to streamPublic
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.

NameLevelDescriptionInitial ValueTypeVisability
GC_DATA_REFERENCEConstant`data reference`LIKE
STRING
Private
GC_EXISTING_REFERENCEConstantPlaceholder for Reference Variables`see first occurrence of`LIKE
STRING
Private
GC_HEADINGInstance AttributeLIKE
Private
GC_HTMLConstantName for HTML`html`LIKE
STRING
Private
GC_INITIAL_NAMEConstantInitial name of data object`initial_name`LIKE
STRING
Private
GC_INITIAL_REFERENCEConstantPlaceholder for Reference Variables`initial reference`LIKE
STRING
Private
GC_JSONConstantName for JSON`json`LIKE
STRING
Private
GC_NONPROPInstance AttributeLIKE
Private
GC_NO_ATTRIBUTESConstantNo public attributes`no public attributes`LIKE
STRING
Private
GC_OBJECT_REFERENCEConstantPlaceholder for Reference Variables`object reference`LIKE
STRING
Private
GC_REFERENCEConstantPlaceholder for Reference Variables`reference`LIKE
STRING
Private
GC_REFLIMITConstant1000LIKE
I
Private
GC_SOURCE_CODEConstantName for source code`source_code`LIKE
STRING
Private
GC_TEXTInstance AttributeLIKE
Private
GC_XMLConstantName for XML`xml`LIKE
STRING
Private
GT_DREFStatic AttributeLIKE
TT_NAMES
Private
GT_DREFSStatic AttributeLIKE
TT_DREFS
Private
GT_INTERFACESStatic AttributeLIKE
TT_NAMES
Private
GT_NESTEDStatic AttributeLIKE
TT_NAMES
Private
GT_OREFStatic AttributeLIKE
TT_NAMES
Private
GT_OREFSStatic AttributeLIKE
TT_OREFS
Private
GV_REFCOUNTERStatic AttributeLIKE
I
Private
MT_EXCLUDEInstance AttributeLIKE
TT_EXCLUDE_INCLUDE
Private
MT_INCLUDEInstance AttributeLIKE
TT_EXCLUDE_INCLUDE
Private
MT_NESTEDSInstance AttributeLIKE
TT_NESTEDS
Private
MT_REFERENCEDInstance AttributeLIKE
TT_NESTEDS
Private
MT_STREAMInstance AttributeInternal table for output streamLIKE
ABAP_TRANS_SRCBIND_TAB
Private
MV_CLOSEDInstance Attributeabap_true, if stream closedABAP_FALSELIKE
ABAP_BOOL
Private
MV_NAMEInstance AttributeName of Data ObjectLIKE
STRING
Private
MV_TEST_MODEInstance AttributeLIKE
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 closed



CL_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



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!