SAP Reports / Programs

SAPF058D SAP ABAP Report - FI: Archiving Vendors: Deletion Program







SAPF058D is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for SAPF058D is the deletion program for vendor master data archiving...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 SAPF058D 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 SAPF058D. "Basic submit
SUBMIT SAPF058D AND RETURN. "Return to original report after report execution complete
SUBMIT SAPF058D 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: X_RESTAR = Restart after termination
Selection Text: X_DETAIL = Detail log
Selection Text: TESTRUN = Test run
Title: FI: Archiving Vendors: Deletion Program
Text Symbol: 001 = Detail log: General vendor data to be deleted ;
Text Symbol: 002 = Overview log: ;
Text Symbol: 003 = << Update run >>;
Text Symbol: 004 = <<< Test run >>>;
Text Symbol: 005 = Vendor ;
Text Symbol: 006 = Name ;
Text Symbol: 009 = No objects found for deletion ;
Text Symbol: 010 = Number of master records read/deleted: ;
Text Symbol: 011 = The deletion program was started by:
Text Symbol: 012 = Start date
Text Symbol: 013 = Start time
Text Symbol: 014 = Stop date
Text Symbol: 015 = Stop time
Text Symbol: 016 = Detail log: FI data to be deleted (co.code data) ;
Text Symbol: 017 = Detail log: SD data to be deleted ;
Text Symbol: 018 = Detail log: MM data to be deleted ;
Text Symbol: 019 = Program control
Text Symbol: 026 = Archiving run processed/generated: "


INCLUDES used within this REPORT SAPF058D

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_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING object = sys_objct IMPORTING commit_count_for_delete_prg = max_commit.

ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING object = sys_objct test_mode = testrun IMPORTING archive_handle = archive_handle EXCEPTIONS no_files_available = 01.

ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING archive_handle = archive_handle IMPORTING archive_name = archive_name.

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

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 = 'LFA1' all_records_of_object = 'X' IMPORTING record_flags = str_flags TABLES table = lt_lfa1[].

FI_ACCPAYB_DELETE_RECORD CALL FUNCTION 'FI_ACCPAYB_DELETE_RECORD' EXPORTING i_archive_handle = archive_handle i_detail = x_detail IMPORTING o_its_mine = deleted.

MM_ACCPAYB_DELETE_RECORD CALL FUNCTION 'MM_ACCPAYB_DELETE_RECORD' EXPORTING i_archive_handle = archive_handle i_detail = x_detail IMPORTING o_its_mine = deleted.

ARCHIVE_DELETE_OBJECT_DATA CALL FUNCTION 'ARCHIVE_DELETE_OBJECT_DATA' EXPORTING archive_handle = archive_handle.

FI_ACCPAYB_DELETE_ALL CALL FUNCTION 'FI_ACCPAYB_DELETE_ALL' "Anwendungsdaten löschen EXPORTING i_testl = testrun * Anfang Änderung Statistikbaustein 16.01.01

SD_ACCPAYB_DELETE_ALL " CALL FUNCTION 'SD_ACCPAYB_DELETE_ALL' " EXPORTING I_TESTL = TESTRUN.

MM_ACCPAYB_DELETE_ALL CALL FUNCTION 'MM_ACCPAYB_DELETE_ALL' EXPORTING i_testl = testrun * Anfang Änderung Statistikbaustein 16.01.01

ARCHIVE_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = fv_archive_handle TABLES table = arch_stat EXCEPTIONS internal_error = 1.

FI_ACCPAYB_DELETE_PROTOCOL CALL FUNCTION 'FI_ACCPAYB_DELETE_PROTOCOL' EXPORTING i_detail = true i_summary = false.

SD_ACCPAYB_DELETE_PROTOCOL " CALL FUNCTION 'SD_ACCPAYB_DELETE_PROTOCOL' " EXPORTING I_DETAIL = TRUE " I_SUMMARY = FALSE.

MM_ACCPAYB_DELETE_PROTOCOL CALL FUNCTION 'MM_ACCPAYB_DELETE_PROTOCOL' EXPORTING i_detail = true i_summary = false.

FI_ACCPAYB_DELETE_PROTOCOL CALL FUNCTION 'FI_ACCPAYB_DELETE_PROTOCOL' EXPORTING i_detail = false i_summary = true.

SD_ACCPAYB_DELETE_PROTOCOL " CALL FUNCTION 'SD_ACCPAYB_DELETE_PROTOCOL' " EXPORTING I_DETAIL = FALSE " I_SUMMARY = TRUE.

MM_ACCPAYB_DELETE_PROTOCOL





CALL FUNCTION 'MM_ACCPAYB_DELETE_PROTOCOL' EXPORTING i_detail = false i_summary = true.



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