SAP Reports / Programs

SAPDBSAK SAP ABAP Report - Logistical database SAK: Database program







SAPDBSAK is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for INCLUDE 'RKS_LOGDB' OBJECT DOKU ID TX You can find additional notes for this logical database in the documentation for the archive object Completely reversed allocation documents from assessment, distribution, periodic repostings and indirect activity allocation: 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 SAPDBSAK 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 SAPDBSAK. "Basic submit
SUBMIT SAPDBSAK AND RETURN. "Return to original report after report execution complete
SUBMIT SAPDBSAK 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: ARCHDEL = Archive and delete
Selection Text: ARCHNODE = Archive
Selection Text: CYCLE = Cycle
Selection Text: GJAHR = Fiscal year
Selection Text: KOKRS = Controlling area
Selection Text: TESTLAUF = Test run
Title: Logistical database SAK: Database program
Text Symbol: 010 = Cycles
Text Symbol: 020 = Restrictions
Text Symbol: 101 = Database
Text Symbol: 102 = Archive
Text Symbol: 103 = Choose
Text Symbol: 200 = Archive
Text Symbol: 201 = Archive and delete
Text Symbol: 202 = Processing
Text Symbol: 203 = Delete
Text Symbol: 300 = Test run
Text Symbol: A01 = You have to decide whether you
Text Symbol: A02 = want to evaluate the database or an
Text Symbol: A03 = archive in the report:


INCLUDES used within this REPORT SAPDBSAK

INCLUDE FKADBF04.


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:

POPUP_TO_DECIDE CALL FUNCTION 'POPUP_TO_DECIDE' EXPORTING textline1 = t_a01 textline2 = t_a02 textline3 = t_a03 text_option1 = o_101 text_option2 = o_102 titel = o_103 IMPORTING answer = antwort.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = l_cprog dynumb = l_dynnr translate_to_upper = 'X' TABLES dynpfields = lt_dynpread EXCEPTIONS others = 0.

RK_F4_ALLOCATION_CYCLE CALL FUNCTION 'RK_F4_ALLOCATION_CYCLE' EXPORTING appl = 'S' cycle = r_cycle fix_group = 'X' group = l_kokrs IMPORTING ex_cycle = r_cycle ex_group = l_kokrs EXCEPTIONS nothing_selected = 1 no_cycle = 2.

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING dyname = l_cprog dynumb = l_dynnr TABLES dynpfields = lt_dynpread.

RS_SUBMIT_INFO CALL FUNCTION 'RS_SUBMIT_INFO' IMPORTING p_submit_info = l_rssubinfo.

ARCHIVES_KEY_RETURN CALL FUNCTION 'ARCHIVES_KEY_RETURN' EXPORTING i_appli = appli i_objct = objekt TABLES t_arkey = t_arkey t_fr01s = t_sr01s EXCEPTIONS no_key_selected = 01.

ARCHIVE_OPEN_FOR_READ CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ' EXPORTING object = objekt archive_name = arch_key IMPORTING archive_handle = archive_handle EXCEPTIONS file_already_open = 01 file_io_error = 02 internal_error = 03 no_files_available = 04 object_not_found = 05 open_error = 06.

ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING object = objekt archive_name = arch_key test_mode = testmode IMPORTING archive_handle = archive_handle EXCEPTIONS file_already_open = 01 file_io_error = 02 internal_error = 03 object_not_found = 05 open_error = 06.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = archive_handle EXCEPTIONS end_of_file = 01.

K_ARCHIVE_DATE_SET CALL FUNCTION 'K_ARCHIVE_DATE_SET' EXPORTING i_archive_handle = archive_handle.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle record_structure = 'T811D' all_records_of_object = 'X' TABLES table = lt_t811d.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = archive_handle.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle record_structure = 'T811DH' all_records_of_object = 'X' TABLES table = lt_t811dh.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle record_structure = 'COVP11' all_records_of_object = 'X' TABLES table = lt_covp11.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle record_structure = 'COVJ11' all_records_of_object = 'X' TABLES table = lt_covj11.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle record_structure = 'COVPL1' all_records_of_object = 'X' TABLES table = lt_covpl1.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle record_structure = 'COVJL1' all_records_of_object = 'X' TABLES table = lt_covjl1.

CHECK_EXIST_LIMU_FUNC call function 'CHECK_EXIST_LIMU_FUNC' exporting name = ld_fb aggname = ld_ob IMPORTING EXIST = ld_ex EXCEPTIONS TR_INVALID_TYPE = 1 OTHERS = 2.



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