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

Deletion of programms

Former Member
0 Likes
919

Hello everybody,

I have to delete 600 Z-Programms which all begins with ZCONV*. Is there a tool in SAP who could do this at once? Should I write a programm which deletes the entries from table TADIR? But than the sources are still in the system.

Thanks for any help!

Chris

Hello everybody,

I have to delete 600 Z-Programms which all begins with ZCONV*. Is there a tool in SAP who could do this at once? Should I write a programm which deletes the entries from table TADIR? But than the sources are still in the system.

Thanks for any help!

Chris

5 REPLIES 5
Read only

Former Member
0 Likes
874

Hi,

First fetch all Z programs from TADIR and delete them from there.

and to delete them from SE38(source code), write a small BDC program and use it such that the source code is deleted.

Reward points if useful

Regards

Anji

Read only

Former Member
0 Likes
874

hi,

Write a BDC program for SE38.Before that first download all the ZCONV programs from the table TADIR and loop at the internal table ...pass the program name to SE38 and delete it.

Reward points if it is helpful.

Regards,

Sangeetha.A

Read only

Former Member
0 Likes
874

Hi,

populate all program names from TADIR starting with ZCONV* in table I_prg

loop at i_prg .

Use BDC on SE38 (initial screen) to delete program at a time .

endloop .

SAP doesnt provide any tool to do this.

Reward points if useful..

Regards

Nilesh

Read only

Former Member
0 Likes
874

Hi,

use below logic .

get all entries from tadir and loop the table and call Fm

CALL FUNCTION 'RS_DELETE_PROGRAM'

EXPORTING

PROGRAM = L_S_PDIR-PROGNAME

  • suppress_checks = ' '

SUPPRESS_COMMIT = 'X'

SUPPRESS_POPUP = 'X'

  • WITH_CUA = 'X'

  • WITH_DOCUMENTATION = 'X'

  • WITH_DYNPRO = 'X'

  • WITH_INCLUDES = ' '

  • WITH_TEXTPOOL = 'X'

  • WITH_VARIANTS = 'X'

  • TADIR_DEVCLASS =

  • IMPORTING

  • CORRNUMBER =

  • PROGRAM =

EXCEPTIONS

ENQUEUE_LOCK = 1

OBJECT_NOT_FOUND = 0

PERMISSION_FAILURE = 3

REJECT_DELETION = 4

OTHERS = 5.

Note:all deleted program names should be assigned to request so that objects

are also deleted in quality and production

Regards,

Amole

Read only

Former Member
0 Likes
874

Hi,

Go transaction SE80, Choose package $TMP. Click Display. You will find all your Z programs. Just right click and delete them.

If you are using Latest versions, you can even select all by pressing mouse key and right click and can able to delete multiple items at single time.You shud be very careful since all the objects which are stored in $TMP will also be there.

All the Best!

<b>***Reward Points if Useful.</b>

Regards

Gokul