‎2023 Oct 11 12:01 PM
I want to delete some programs using the RS_DELETE_PROGRAM function. The deletion is executed, but the object is not included in the specified task number (P_CORR). I have also tried a transport number and a task number, which can be found in table e070.
Can anyone help me with this? Maybe I should use another function?
The main goal is to get the program deletion into a task.
LOOP AT gt_report_list INTO gs_report_list.
CLEAR gs_output.
CALL FUNCTION 'RS_DELETE_PROGRAM'
EXPORTING
corrnumber = p_corr " correction number
program = gs_report_list-name " programname (30 Byte extern)
suppress_popup = 'X' " suppress dialog
with_cua = 'X' " menu will be copied by default
with_documentation = 'X' " documentation will be deleted
with_dynpro = 'X' " dynpros will be deleted
with_includes = 'X' " standard includes will be deleted def. by user
with_textpool = 'X' " textpool will be deleted
with_variants = 'X' " variants will be deleted
skip_progress_ind = 'X' " Unterdrücken Progressindikator
force_delete_used_includes = 'X' " Löschen verwendete Includes
EXCEPTIONS
enqueue_lock = 1
object_not_found = 2
permission_failure = 3
reject_deletion = 4
OTHERS = 5.
IF sy-subrc = 0.
gs_output-corrnum = p_corr.
gs_output-name = gs_report_list-name.
gs_output-type = 'S'.
gs_output-text = 'Successful deletion'.
ELSE.
gs_output-name = gs_report_list-name.
gs_output-type = 'E'.
gs_output-text = 'Unsuccessful deletion'.
ENDIF.
INSERT gs_output INTO TABLE gt_output.
ENDLOOP.
‎2023 Oct 11 12:52 PM
‎2023 Oct 11 1:00 PM
Hi Raymond,
thanks for your answer, but I checked these before asking the question and they are all correct.
‎2023 Oct 11 1:11 PM
‎2023 Oct 11 1:19 PM
I tried these: 'K', 'X', 'S', 'R', for E070-TRFUNCTION and 'D' for E070-TRSTATUS.
‎2023 Oct 11 4:08 PM
‎2023 Oct 12 9:32 AM
‎2023 Oct 11 3:59 PM
The code of RS_DELETE_PROGRAM is quite simple concerning the transport part, just debug it, it should take 2 minutes for an experienced developer.