DBADAF12 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 DBADAF12 into the relevant SAP transactions such as SE38 or SE80
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.
Title: Archiving access within the logical database
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' "#EC FB_OLDED EXPORTING DEFAULTOPTION = 'Y' DIAGNOSETEXT1 = TEXT-200 DIAGNOSETEXT2 = TEXT-201 * diagnosetext3 = text-204 "no 372445 TEXTLINE1 = TEXT-202 TEXTLINE2 = ' ' TITEL = TEXT-203 IMPORTING ANSWER = HLP_ANSWER.
ARCHIVE_ADMIN_SELECT_SESSIONS CALL FUNCTION 'ARCHIVE_ADMIN_SELECT_SESSIONS' EXPORTING runs_without_files = ' ' incorrect = con_x incomplete = con_x complete = con_x being_reloaded = con_x to_be_archived = con_x IMPORTING archive_runs = lt_archive_runs TABLES object = lr_object_range document = lr_document_range EXCEPTIONS OTHERS = 1.
AS_API_READ CALL FUNCTION 'AS_API_READ' EXPORTING i_fieldcat = 'SAP_FIAA_ABRA' i_selections = lt_selections i_maxrows = '1' IMPORTING e_result = lt_result EXCEPTIONS OTHERS = 4.
ARCHIVE_OPEN_FOR_READ CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ' EXPORTING ARCHIVE_DOCUMENT = L_RUN object = 'AM_ASSET' IMPORTING archive_handle = archive_handle EXCEPTIONS error_message = 0.
FIAA_ARCHIVE_READ_STEUER CALL FUNCTION 'FIAA_ARCHIVE_READ_STEUER' EXPORTING I_HANDLE_ST = ARCHIVE_HANDLE "> 421818 I_BUKRS = T093C-BUKRS I_PERIV = HLP_PERIV I_GJAHR = HLP_JAHRREQ EXCEPTIONS OTHERS = 1.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = archive_handle.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = archive_handle.
FIAA_ARCHIVE_RESET_STEUER CALL FUNCTION 'FIAA_ARCHIVE_RESET_STEUER' EXCEPTIONS OTHERS = 1.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.