‎2006 Mar 30 3:49 PM
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
‎2006 Mar 30 3:53 PM
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.
‎2006 Mar 30 3:53 PM
‎2006 Mar 30 3:53 PM
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.
‎2006 Mar 31 3:27 PM
Thanks to all,
solved it using transaction SAMT. It works.