SAP Reports / Programs | Logistics - General | Electronic Data Records(LO-ELR) SAP LO

AUT_ARCH_COMMON SAP ABAP INCLUDE - AUTARCHCOMMON







AUT_ARCH_COMMON is a standard ABAP INCLUDE 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 AUT_ARCH_COMMON 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 AUT_ARCH_COMMON. "Basic submit
SUBMIT AUT_ARCH_COMMON AND RETURN. "Return to original report after report execution complete
SUBMIT AUT_ARCH_COMMON VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT AUT_ARCH_COMMON

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_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = pd_handle record_structure = gc_head all_records_of_object = 'X' TABLES table = lt_dbtablog_stxh EXCEPTIONS end_of_object = 1 internal_error = 2 wrong_access_to_archive = 3 OTHERS = 4.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = pd_handle record_structure = gc_dbtablog_stxl_a all_records_of_object = 'X' TABLES table = lt_dbtablog_stxl_a EXCEPTIONS end_of_object = 1 internal_error = 2 wrong_access_to_archive = 3 OTHERS = 4.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = pd_handle record_structure = gc_dbtablog_stxl_b all_records_of_object = 'X' TABLES table = lt_dbtablog_stxl_b EXCEPTIONS end_of_object = 1 internal_error = 2 wrong_access_to_archive = 3 OTHERS = 4.

AS_API_INFOSTRUC_FIND CALL FUNCTION 'AS_API_INFOSTRUC_FIND' EXPORTING i_fieldcat = gc_fieldcat i_obligatory_fields = lt_fields IMPORTING e_infostruc = ld_infostruc EXCEPTIONS no_infostruc_found = 1 OTHERS = 2.

AS_API_SYSTEM_SELECT CALL FUNCTION 'AS_API_SYSTEM_SELECT' EXPORTING i_infostruc = ld_infostruc i_selections = lt_archive_sel IMPORTING e_result = lt_result EXCEPTIONS parameters_invalid = 1 infostruc_not_found = 2 OTHERS = 3.

AS_API_SYSTEM_SELECT CALL FUNCTION 'AS_API_SYSTEM_SELECT' EXPORTING i_infostruc = ld_infostruc i_selections = lt_archive_sel IMPORTING e_result = lt_result EXCEPTIONS parameters_invalid = 1 infostruc_not_found = 2 OTHERS = 3.

ARCHIVE_READ_OBJECT CALL FUNCTION 'ARCHIVE_READ_OBJECT' EXPORTING object = gc_object archivkey = lw_result-archivekey offset = lw_result-archiveofs IMPORTING archive_handle = pd_handle EXCEPTIONS no_record_found = 1 file_io_error = 2 internal_error = 3 open_error = 4 cancelled_by_user = 5 archivelink_error = 6 object_not_found = 7 filename_creation_failure = 8 file_already_open = 9 not_authorized = 10 file_not_found = 11 OTHERS = 12.

AUT_API_COMPLETENESS_CHECK CALL FUNCTION 'AUT_API_COMPLETENESS_CHECK' EXPORTING i_infostruc = pd_infostruc IMPORTING e_compl_indexed_runs = lt_indexed_runs EXCEPTIONS infostruc_not_found = 1 infostruc_inactive = 2 OTHERS = 3.

DB_COMMIT * CALL FUNCTION 'DB_COMMIT'. "NOTE634224

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = pd_handle EXCEPTIONS internal_error = 1 wrong_access_to_archive = 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 AUT_ARCH_COMMON or its description.