Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Why is the deletion not included in the correction? (RS_DELETE_PROGRAM)

kisbandi
Explorer
0 Likes
2,008

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.
7 REPLIES 7
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,903

Check

  • Is your program defined in a transport related package (not $aaa,Taaa)
  • Is your program already locked in another transport request/task
  • Is your aleady existing task/request of a correct type (workbench)
Read only

0 Likes
1,903

Hi Raymond,

thanks for your answer, but I checked these before asking the question and they are all correct.

Read only

0 Likes
1,903

What's the values of E070-TRFUNCTION and TRSTATUS for your transport request/task?

Read only

0 Likes
1,903

I tried these: 'K', 'X', 'S', 'R', for E070-TRFUNCTION and 'D' for E070-TRSTATUS.

Read only

0 Likes
1,903

Is the task or one task of the request assigned to your user profile, do you get an authorization error (SU53)

Read only

0 Likes
1,903

Yes, it is assigned to me and no error message is received.

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,903

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.