SAPF059 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Program SAPF059 reloads archived vendor master data including general data, all FI data, and all MM data that are contained in the archive file for one object...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 SAPF059 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.
Selection Text: X_TESTL = Test run
Selection Text: X_FORCE = Force Reload
Selection Text: X_FCONN = FI link validation off
Selection Text: X_DETAIL = Detail log
Selection Text: LIFNRX = Vendors
Title: FI: Vendor Master Record Archiving: Retrieval Program
Text Symbol: 004 = Detail log: General data which cannot be retrieved ;
Text Symbol: 005 = Detail log: FI vendor data ;
Text Symbol: 007 = Detail log: MM vendor data ;
Text Symbol: 009 = Overview log ;
Text Symbol: 010 = Number ;
Text Symbol: 011 = Name
Text Symbol: 012 = Error during retrieval ;
Text Symbol: 013 = Account not selected ;
Text Symbol: 014 = General data already exists ;
Text Symbol: 015 = General data exists and is different ;
Text Symbol: 016 = Other error determined ;
Text Symbol: 017 = No data found in this category ;
Text Symbol: 018 = Error when adding general data to database ;
Text Symbol: 019 = Error when adding FI data to database ;
Text Symbol: 020 = Error when adding MM data to the database ;
Text Symbol: 021 = Due to general data reasons (see there) ;
Text Symbol: 022 = Due to FI data reasons (see there) ;
Text Symbol: 023 = Due to MM data reasons (see there) ;
Text Symbol: 024 = Objects read: ;
Text Symbol: 003 = Detail log: General data which can be retrieved ;
Text Symbol: 002 = <<< Test run >>>
Text Symbol: 001 = << Update run >>
Text Symbol: 025 = of which were retrieved: ;
Text Symbol: P03 = Force Reload Note
Text Symbol: 040 = Program Control
Text Symbol: 039 = Reload Quantity Selection
Text Symbol: 038 = Archiving run edited/created: ;
Text Symbol: 037 = Selection for this run
Text Symbol: 036 = Stop time
Text Symbol: 035 = Stop date
Text Symbol: 034 = Start time
Text Symbol: 033 = Start date
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_OPEN_FOR_MOVE CALL FUNCTION 'ARCHIVE_OPEN_FOR_MOVE' EXPORTING object = sys_objct test_mode = x_testl IMPORTING archive_read_handle = archive_read_handle archive_write_handle = archive_write_handle.
ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING archive_handle = archive_read_handle IMPORTING archive_creation_release = archive_release archive_name = archive_name.
ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = archive_read_handle EXCEPTIONS end_of_file = 01.
ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = archive_write_handle.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = archive_read_handle.
ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_read_handle record_structure = 'LFA1' all_records_of_object = 'X' TABLES table = lt_lfa1[].
ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_read_handle record_structure = 'STXH' all_records_of_object = 'X' TABLES table = ystxh[].
ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_read_handle record_structure = 'STXL' all_records_of_object = 'X' TABLES table = ystxl[].
ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_read_handle record_structure = 'CDCLS' all_records_of_object = 'X' TABLES table = ycdcls[].
FI_ACCPAYB_RELOAD_CHECK CALL FUNCTION 'FI_ACCPAYB_RELOAD_CHECK' EXPORTING i_archive_handle = archive_read_handle i_fconn = x_fconn i_lfa1 = ylfa1 IMPORTING o_decision = decision o_for_me = for_me.
MM_ACCPAYB_RELOAD_CHECK CALL FUNCTION 'MM_ACCPAYB_RELOAD_CHECK' EXPORTING i_archive_handle = archive_read_handle IMPORTING o_decision = decision o_for_me = for_me.
ARCHIVE_ROLLBACK_WORK CALL FUNCTION 'ARCHIVE_ROLLBACK_WORK'.
FI_ACCPAYB_RELOAD CALL FUNCTION 'FI_ACCPAYB_RELOAD' EXPORTING i_lifnr = ylfa1-lifnr i_testl = x_testl i_force = x_force "<<
ARCHIVE_ROLLBACK_WORK CALL FUNCTION 'ARCHIVE_ROLLBACK_WORK'.
CALL FUNCTION 'MM_ACCPAYB_RELOAD' EXPORTING i_lifnr = ylfa1-lifnr i_testl = x_testl i_force = x_force "<<
ARCHIVE_ROLLBACK_WORK CALL FUNCTION 'ARCHIVE_ROLLBACK_WORK'.
FI_ACCPAYB_RELOAD_INFORM CALL FUNCTION 'FI_ACCPAYB_RELOAD_INFORM' EXPORTING i_lifnr = ylfa1-lifnr i_notval = not_stored i_name1 = ylfa1-name1 i_reason = reason.
MM_ACCPAYB_RELOAD_INFORM CALL FUNCTION 'MM_ACCPAYB_RELOAD_INFORM' EXPORTING i_lifnr = ylfa1-lifnr i_name1 = ylfa1-name1 i_notval = not_stored i_reason = reason.
OUTBOUND_CALL_00003110_P CALL FUNCTION 'OUTBOUND_CALL_00003110_P' EXPORTING i_lfa1 = ylfa1 IMPORTING e_aleactive = ale_activ CHANGING c_logsys = asg_system.
ARCHIVE_RELOAD_OBJECT_DATA CALL FUNCTION 'ARCHIVE_RELOAD_OBJECT_DATA' EXPORTING archive_handle = handle EXCEPTIONS wrong_access_to_archive = 01.
FI_ACCPAYB_RELOAD_PROTOCOL CALL FUNCTION 'FI_ACCPAYB_RELOAD_PROTOCOL' EXPORTING i_detail = true i_summary = false.
MM_ACCPAYB_RELOAD_PROTOCOL CALL FUNCTION 'MM_ACCPAYB_RELOAD_PROTOCOL' EXPORTING i_detail = true i_summary = false.
FI_ACCPAYB_RELOAD_PROTOCOL CALL FUNCTION 'FI_ACCPAYB_RELOAD_PROTOCOL' EXPORTING i_detail = false i_summary = true.
MM_ACCPAYB_RELOAD_PROTOCOL CALL FUNCTION 'MM_ACCPAYB_RELOAD_PROTOCOL' EXPORTING i_detail = false i_summary = true.
OWN_LOGICAL_SYSTEM_GET CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET' IMPORTING own_logical_system = own_system EXCEPTIONS own_logical_system_not_defined = 1 OTHERS = 2.
POPUP_DISPLAY_TEXT_WITH_PARAMS CALL FUNCTION 'POPUP_DISPLAY_TEXT_WITH_PARAMS' EXPORTING language = sy-langu popup_title = text-p03 start_column = 10 start_row = 3 text_object = lv_text_object IMPORTING cancelled = lv_answer TABLES PARAMETERS = lt_text_params EXCEPTIONS error_in_text = 1 text_not_found = 2 OTHERS = 3.
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 SAPF059 or its description.
SAPF059 - FI: Vendor Master Record Archiving: Retrieval Program SAPF059 - FI: Vendor Master Record Archiving: Retrieval Program SAPF058V - FI, Vendor Master Data Archiving: Proposal List SAPF058V - FI, Vendor Master Data Archiving: Proposal List SAPF058D - FI: Archiving Vendors: Deletion Program SAPF058D - FI: Archiving Vendors: Deletion Program