SAP Reports / Programs | Logistics - General | Logistics Basic Data | Plant Master(LO-MD-PL) SAP LO

WS_ACSITE_DELETE SAP ABAP Report - Deletion Program Archiving Plant Master







WS_ACSITE_DELETE is a standard Executable ABAP Report 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 WS_ACSITE_DELETE 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 WS_ACSITE_DELETE. "Basic submit
SUBMIT WS_ACSITE_DELETE AND RETURN. "Return to original report after report execution complete
SUBMIT WS_ACSITE_DELETE 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: P_DELPRD = Test Run
Selection Text: P_DELTST = Produktion Run
Title: Deletion Program Archiving Plant Master
Text Symbol: 001 = Detail log: gen. plant data to be deleted
Text Symbol: 002 = Overview log:
Text Symbol: 003 = <>>
Text Symbol: 004 = <<< Test Run >>>
Text Symbol: 005 = Plant
Text Symbol: 006 = Name
Text Symbol: 009 = No objects found for deletion
Text Symbol: 010 = Number of read/deleted plants
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: retail data to be deleted
Text Symbol: 026 = Processed/Created Archiving Session:


INCLUDES used within this REPORT WS_ACSITE_DELETE

INCLUDE ARCH_DELETE_PRG_STANDARD1.


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 * MAINTAIN_INDEX = * exceptions * object_not_found = 1 * others = 2 .

ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING object = sys_objct test_mode = x_testl IMPORTING archive_handle = archive_handle EXCEPTIONS no_files_available = 4.

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 = 1.

ARCHIVE_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = archive_handle TABLES table = lt_stat_itab.

ARCHIVE_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = archive_handle TABLES table = lt_stat_itab.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = archive_handle statistics_only_per_file = 'X'.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = archive_handle.

ARCHIVE_GET_NEXT_RECORD CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD' EXPORTING archive_handle = archive_handle IMPORTING record = str_wa record_flags = str_flags record_structure = str_name EXCEPTIONS end_of_object = 1.

WR24_DELETE_RECORD CALL FUNCTION 'WR24_DELETE_RECORD' EXPORTING i_tabname = str_name i_tabvalue = str_wa i_tabflags = str_flags i_detail = x_detail IMPORTING o_its_mine = deleted.

ARCHIVE_DELETE_OBJECT_DATA CALL FUNCTION 'ARCHIVE_DELETE_OBJECT_DATA' EXPORTING archive_handle = archive_handle.

WR24_DELETE_ALL CALL FUNCTION 'WR24_DELETE_ALL' EXPORTING i_testl = x_testl IMPORTING o_noerror = noerror.

ARCHIVE_ROLLBACK_WORK CALL FUNCTION 'ARCHIVE_ROLLBACK_WORK'.

WR24_DELETE_PROTOCOL * CALL FUNCTION 'WR24_DELETE_PROTOCOL' * EXPORTING * i_detail = true * i_summary = false.

WR24_DELETE_PROTOCOL * CALL FUNCTION 'WR24_DELETE_PROTOCOL' * EXPORTING * i_detail = false * i_summary = true.

ECOP_ORG_UNITS_IN_THE_DARK CALL FUNCTION 'ECOP_ORG_UNITS_IN_THE_DARK' EXPORTING org_unit = 'WERKS' action = 'DELE' import_tr_request = space import_tr_task = space business_object = space * ENTITY_TAB = source_orgunit = ary_t001w-werks * TARGET_ORGUNIT = flg_transport = space * IMPORTING * RETURN_CODE = * DESCRIPTION = * ORG_UNIT = * TABLES * LIST_OF_TABLES_ERR = * LIST_OF_FORKEY_ERR = * LIST_OF_TRANSPORT_ERR = EXCEPTIONS no_valid_orgunit = 1 no_valid_action = 2 no_tables = 3 db_error_on_insert = 4 db_error_on_delete = 5 no_tr_request = 6 transport_error = 7 no_authorization = 8 unallowed_user = 9 locking_error = 10 wrong_category = 11 target_unit_exists = 12 global_check_failed = 13 invalid_orgtype = 14 no_double_orgunit_type = 15 no_modifications_allowed = 16 no_transports_allowed = 17 OTHERS = 18 .



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