SAP Reports / Programs | Basis Components | Middleware | ALE Integration Technology(BC-MID-ALE) SAP BC

RSEXARCA SAP ABAP Report - IDoc Archiving: Write Program







RSEXARCA is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for A log is generated in which the most important fields from the control records of the archived IDocs are located...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RSEXARCA 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 RSEXARCA. "Basic submit
SUBMIT RSEXARCA AND RETURN. "Return to original report after report execution complete
SUBMIT RSEXARCA VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Archiving IDocs
Selection Text: P_WRITST = D .
Selection Text: P_WRIPRD = D .
Selection Text: P_PROT_O = D .
Selection Text: P_PROT = D .
Selection Text: P_DELTST = D .
Selection Text: P_COMENT = D .
Selection Text: IDOCTP = D .
Selection Text: DOCNUM = D .
Selection Text: CIMTYP = D .
Selection Text: W_LINKS = Links with Archiving
Selection Text: UPDTIM = Last Changed at
Selection Text: UPDDAT = Last Changed on
Selection Text: STATUS = Current Status
Selection Text: SNDPRT = Partner Type of Sender
Selection Text: SNDPRN = Partner Number of Sender
Selection Text: SNDPOR = Port of Sender
Selection Text: RCVPRT = Partner Type of Receiver
Selection Text: RCVPRN = Partner Number of Receiver
Selection Text: RCVPOR = Port of Receiver
Selection Text: MESTYP = Logical Message
Selection Text: DIRECT = Direction (1=outb, 2=inb)
Selection Text: CRETIM = Created At
Selection Text: CREDAT = Created On
Title: IDoc Archiving: Write Program
Text Symbol: 301 = IDoc Archiving
Text Symbol: 300 = Archive
Text Symbol: 103 = Options
Text Symbol: 102 = Restrictions
Text Symbol: 101 = IDocs
Text Symbol: 011 = IDoc &1 does not have archivable status &2.
Text Symbol: 010 = IDoc &1 (status &2) archived.
Text Symbol: 001 = Number of Archived IDocs: &2


INCLUDES used within this REPORT RSEXARCA

No INCLUDES are used within this REPORT code!


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_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING call_delete_job_in_test_mode = p_deltst create_archive_file = p_wriprd object = 'IDOC' comments = p_coment ** DO_NOT_DELETE_DATA = ' ' output_sel_screen_when_dialog = space output_sel_screen_when_batch = space IMPORTING archive_handle = handle.

ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = p_prot.

EDI_STATUS_ARCHIVABLE CALL FUNCTION 'EDI_STATUS_ARCHIVABLE' EXPORTING status = gd_idoc_info-status EXCEPTIONS status_not_archivable = 1.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = gd_idoc_info-docnum i_text = text-011 i_msgtype = '2' i_msgv1 = gd_idoc_info-docnum i_msgv2 = gd_idoc_info-status.

ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = handle.

IDOC_ARCHIVE_OBJECT CALL FUNCTION 'IDOC_ARCHIVE_OBJECT' EXPORTING archive_handle = handle docnum = gd_idoc_info-docnum.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = handle EXCEPTIONS termination_requested = 4.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = gd_idoc_info-docnum i_text = text-010 i_msgtype = '1' i_msgv1 = gd_idoc_info-docnum i_msgv2 = gd_idoc_info-status.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = gd_idoc_info-docnum i_msgtype = '2' i_msgid = 'BA' i_msgno = '329'.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-001 i_processed = gd_count ** i_total = IMPORTING e_progress_sent = gd_progress_message.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

EDI_IDOC_LINKS_STATUS_UPDATE CALL FUNCTION 'EDI_IDOC_LINKS_STATUS_UPDATE' TABLES archived_idocs = archived_idocs EXCEPTIONS others = 1.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-001 i_processed = gd_count i_total = gd_count i_output_immediately = 'X'.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = handle.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = handle.

ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'STATUS' dynpprog = syst-repid dynpnr = syst-dynnr dynprofield = lp_field value_org = 'S' TABLES value_tab = lt_values EXCEPTIONS parameter_error = 1 no_values_found = 2 others = 3.



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