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

Saving and deleting programs

Former Member
0 Likes
568

Hello,

i know it sounds strange, but:

is there any tool which saves a whole list ( maybe some hundrets ) of abap's into a transport request or a local file and deletes these programs ?

Doing this with every single program would be boring ...

Regards Wolfgang

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
539

Hi wolfgang,

1. this program will save

the list of programs specified

in the select-options,

each program to a file,

(which is specified in the selection screen path)

It works FANTASTIC.

2. the file name will be same as that of prgram.

3. if there are 5 programs,

it will create 5 files, (in the specified folder)

4. just copy paste in new program.

(it won't delete the program)

REPORT abc.

*----


DATA : BEGIN OF itab OCCURS 0,

myline(150) TYPE c,

END OF itab.

DATA : filename TYPE string.

DATA : jprogid TYPE sy-repid.

*----


SELECT-OPTIONS : allprog FOR jprogid.

PARAMETERS : mypath(50) TYPE c DEFAULT 'D:\sap\src' OBLIGATORY.

*----


START-OF-SELECTION.

CONCATENATE mypath '\' allprog-low '.TXT' INTO filename.

PERFORM doprog.

*----


FORM doprog.

LOOP AT allprog.

REFRESH itab.

CLEAR itab.

READ REPORT allprog-low INTO itab.

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

  • BIN_FILESIZE =

filename = filename

TABLES

data_tab = itab

.

ENDLOOP.

ENDFORM. "doprog

regards,

amit m.

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
539

I've never seen any such utility program.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
540

Hi wolfgang,

1. this program will save

the list of programs specified

in the select-options,

each program to a file,

(which is specified in the selection screen path)

It works FANTASTIC.

2. the file name will be same as that of prgram.

3. if there are 5 programs,

it will create 5 files, (in the specified folder)

4. just copy paste in new program.

(it won't delete the program)

REPORT abc.

*----


DATA : BEGIN OF itab OCCURS 0,

myline(150) TYPE c,

END OF itab.

DATA : filename TYPE string.

DATA : jprogid TYPE sy-repid.

*----


SELECT-OPTIONS : allprog FOR jprogid.

PARAMETERS : mypath(50) TYPE c DEFAULT 'D:\sap\src' OBLIGATORY.

*----


START-OF-SELECTION.

CONCATENATE mypath '\' allprog-low '.TXT' INTO filename.

PERFORM doprog.

*----


FORM doprog.

LOOP AT allprog.

REFRESH itab.

CLEAR itab.

READ REPORT allprog-low INTO itab.

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

  • BIN_FILESIZE =

filename = filename

TABLES

data_tab = itab

.

ENDLOOP.

ENDFORM. "doprog

regards,

amit m.

Read only

0 Likes
539

Thanks to all,

solved it using transaction SAMT. It works.