SAP Reports / Programs

SBOOK_XML_WRITE SAP ABAP Report - Archiving Flight Bookings: Write Program (XML Archiving)







SBOOK_XML_WRITE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter SBOOK_XML_WRITE into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT SBOOK_XML_WRITE. "Basic submit
SUBMIT SBOOK_XML_WRITE AND RETURN. "Return to original report after report execution complete
SUBMIT SBOOK_XML_WRITE VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: CHKMODS = Check Mode XML Schema
Selection Text: CHKMODX = Check Mode XML Document
Selection Text: O_CARRID = D Airline Carrier
Selection Text: O_ORDER = D Posting Date
Selection Text: P_COL_NA = Collection Name
Selection Text: P_COMENT = Archiving Session Note
Selection Text: P_DELTST = Delete with Test Variant
Selection Text: P_EX_COL = Update Collection
Selection Text: P_NEW_CO = New Collection
Selection Text: P_PATH_E = D Path Extension
Selection Text: P_PROT = Detail Log
Selection Text: P_WRIPRD = D Production Mode
Selection Text: P_WRITST = D Test Mode
Title: Archiving Flight Bookings: Write Program (XML Archiving)
Text Symbol: 001 = Bookings
Text Symbol: 002 = Technical Options
Text Symbol: 003 = Check Mode
Text Symbol: 005 = Individual flight booking was archived
Text Symbol: 006 = &1% (&2 of &3) of the individual flight bookings were archived


INCLUDES used within this REPORT SBOOK_XML_WRITE

INCLUDE ARCH_WRITE_PRG_STANDARD2_XML. " FLOW CONTROL


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = p_prot I_PROTOCOL_OUTPUT = p_prot_o.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = l_object_identifier i_text = 'Einzelflugbuchung archiviert'(005) i_msgtype = 1.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-006 i_processed = l_objects_processed i_total = l_total_object_number IMPORTING e_progress_sent = l_progress_sent.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = '&1% (&2 von &3) der Einzelflugbuchungen archiviert'(006) i_processed = l_objects_processed i_total = l_total_object_number i_output_immediately = 'X'.

ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.

ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.

SDIXML_SCHEMA_CREATE CALL FUNCTION 'SDIXML_SCHEMA_CREATE' EXPORTING control = ls_control IMPORTING schema = lr_schema CHANGING document = lr_document.

SDIXML_DDIC_TO_SCHEMA CALL FUNCTION 'SDIXML_DDIC_TO_SCHEMA' EXPORTING control = ls_ddic_control IMPORTING elements = ltr_elements CHANGING types = lt_types document = lr_document.

SDIXML_DATA_TO_DOM CALL FUNCTION 'SDIXML_DATA_TO_DOM' EXPORTING name = l_tab_name dataobject = ls_sbook control = ls_control IMPORTING data_as_dom = lr_son_el CHANGING document = lr_document EXCEPTIONS OTHERS = 01.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name SBOOK_XML_WRITE or its description.