SAP Reports / Programs | Basis Components | Use Subcomponents | Archive Development Kit(BC-CCM-ADK) SAP BC

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







BC_SBOOK_X_WRI 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 BC_SBOOK_X_WRI 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 BC_SBOOK_X_WRI. "Basic submit
SUBMIT BC_SBOOK_X_WRI AND RETURN. "Return to original report after report execution complete
SUBMIT BC_SBOOK_X_WRI 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_BOOKID = D .
Selection Text: O_CARRID = D .
Selection Text: O_CONNID = D .
Selection Text: O_FLDATE = D .
Selection Text: O_ORDER = D .
Selection Text: P_COMENT = D .
Selection Text: P_DELTST = D .
Selection Text: P_PROT = D .
Selection Text: P_PROT_O = D .
Selection Text: P_WRIPRD = D .
Selection Text: P_WRITST = D .
Title: Archiving Flight Bookings: Write Program (XML Archiving)
Text Symbol: 001 = Flight Bookings
Text Symbol: 002 = Further Selection Criteria
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 BC_SBOOK_X_WRI

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 BC_SBOOK_X_WRI or its description.