ERASE_SITE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report allows you to delete plants according to the selection options entered...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 ERASE_SITE 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: DETAIL = Detailed log
Selection Text: I_WERKS = Plants
Selection Text: TESTLAUF = Test run
Title: Deletion program, plant master
Text Symbol: 001 = THIS IS AN UPDATE RUN
Text Symbol: 002 = Continue?
Text Symbol: 003 = Delete plant
Text Symbol: E00 = No plants were selected
Text Symbol: E01 = You are not authorized to execute this report
Text Symbol: E02 = Please limit the selection
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING DEFAULTOPTION = 'N' TEXTLINE1 = TEXT-001 "This is a Prod. run
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 = YT001W-WERKS * TARGET_ORGUNIT = * 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 .
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.