SAP Reports / Programs

UPS_DELETE SAP ABAP Report - Deletion of Subplans and Planning Sessions







UPS_DELETE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Two different delete options are available: 'Delete subplan completely' - With this option all of the following data for the subplan specified is deleted from the Status and Tracking System: the hierarchy that was imported into the STS any Customizing for the planning session affected...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 UPS_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 UPS_DELETE. "Basic submit
SUBMIT UPS_DELETE AND RETURN. "Return to original report after report execution complete
SUBMIT UPS_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: VER2 = Planning Session
Selection Text: TP2 = Subplan
Selection Text: TP1 = Subplan
Selection Text: MODI_TP = Delete Subplan
Selection Text: MODI_PR = Delete Planning Session
Title: Deletion of Subplans and Planning Sessions
Text Symbol: 025 = Subplans
Text Symbol: 024 = Planning Session
Text Symbol: 023 = Hierarchy in STS
Text Symbol: 022 = Log of Hierarchy Conversions
Text Symbol: 021 = Text for Subplan
Text Symbol: 020 = Connectivity Between Subplan and Node Key
Text Symbol: 019 = Connectivity Between Subplan, Planning Area and Hierarchy
Text Symbol: 018 = Substit.
Text Symbol: 017 = Comments
Text Symbol: 016 = Status History
Text Symbol: 015 = Lock Entries for Nodes
Text Symbol: 014 = Planning Sequences/Events at Status Change
Text Symbol: 013 = Planning Layout and Control Report URLs/Links
Text Symbol: 012 = Selection of Header Chars. for Planning Session
Text Symbol: 011 = Attributes for Planning Session
Text Symbol: 010 = Following Subobjects Are to Be Deleted:
Text Symbol: 009 = Confirmation Prompt
Text Symbol: 008 = Cancel
Text Symbol: 007 = Continue
Text Symbol: 006 = Data is being deleted for the selection specified
Text Symbol: 005 = Delete Subplan Completely
Text Symbol: 004 = Delete Planning Session for a Subplan
Text Symbol: 003 = Planning Session
Text Symbol: 002 = Subplan


INCLUDES used within this REPORT UPS_DELETE

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:

UPS_CHECK_HIER_EXIST CALL FUNCTION 'UPS_CHECK_HIER_EXIST' EXPORTING i_teilplan = tp1 IMPORTING es_ups_tp_hierarchy = ls_tp_hier EXCEPTIONS no_hierarchy = 1 OTHERS = 2.

UPS_DELETE_COMMENTS CALL FUNCTION 'UPS_DELETE_COMMENTS' EXPORTING i_tp = tp1 i_ver = ls_attribut-version EXCEPTIONS no_hierarchy = 1 no_permission = 2 OTHERS = 3.

UPS_DELETE_COMMENTS CALL FUNCTION 'UPS_DELETE_COMMENTS' IN UPDATE TASK EXPORTING i_tp = tp2 i_ver = ver2 EXCEPTIONS no_hierarchy = 1 no_permission = 2 OTHERS = 3.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-009 text_question = text-006 text_button_1 = text-007 text_button_2 = text-008 icon_button_1 = 'ICON_CHECKED ' icon_button_2 = 'ICON_CANCEL' display_cancel_button = '' IMPORTING answer = l_answer.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_s_msg = l_s_msg EXCEPTIONS log_not_found = 0 OTHERS = 1.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' * EXPORTING * I_S_LOG_FILTER = * I_T_LOG_CONTEXT_FILTER = * I_S_MSG_FILTER = * I_T_MSG_CONTEXT_FILTER = * I_T_LOG_HANDLE = * I_T_MSG_HANDLE = * I_S_DISPLAY_PROFILE = * I_AMODAL = ' ' EXCEPTIONS OTHERS = 1.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = g_s_log EXCEPTIONS OTHERS = 1.



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