program zdtp_massdownload.
*======================================================================================================================
* Mass download version 1.5.0.
*----------------------------------------------------------------------------------------------------------------------
* PROGRAM DESCRIPTION & USE
* Allows a user to download programs, Functions, DD definitions, etc to the presentation server. This version searches
* recursively for nested includes and function modules, and allows you to download the resulting code as standard text
* or HTML web pages within a suitable directory structure.
*
* You can either search by object name, using wildcards if you wish, or a combination of Author and object name. If
* you want all objects returned for a particular author then select the author name and choose the most suitable
* radiobutton. All objects will be returned if the fields to the right hand side of the radiobutton are left completely
* blank.
*
* Compatible with R/3 Enterprise and Netweaver, for older versions of SAP you will need Direct Download version 5.xx.
* This version removes the programming limitations imposed by developing across SAP releases 3 to 4.6.
*
* In order to be able to download files to the SAP server you must first set up a logical filepath within transaction
* 'FILE', or use an existing one. You must also create a external operating system command in SM69 called ZDTX_MKDIR. This
* will then be used to create any directories needed on the SAP server
* This program is intended to allow a person to keep a visual representation of a program for backup purposes only as
* has not been designed to allow programs to be uploaded to SAP systems.
*----------------------------------------------------------------------------------------------------------------------
*
* Author : Copyright (C) 1998 E.G.Mellodew
* program contact : www.dalestech.com
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*----------------------------------------------------------------------------------------------------------------------
*----------------------------------------------------------------------------------------------------------------------
* SAP Tables
*----------------------------------------------------------------------------------------------------------------------
tables: trdir, seoclass, tfdir, enlfdir, dd02l, tadiv, dd40l, transfdesc.
type-pools: abap, seor.
*----------------------------------------------------------------------------------------------------------------------
* Types
*----------------------------------------------------------------------------------------------------------------------
* text element structure
types: tTextTable like textpool.
* GUI titles
types: tGUITitle like d347t.
* Message classes
types: begin of tMessage,
arbgb like t100-arbgb,
stext like t100a-stext,
msgnr like t100-msgnr,
text like t100-text,
end of tMessage.
* Screen flow.
types: begin of tScreenFlow,
screen like d020s-dnum,
code like d022s-line,
end of tScreenFlow.
* Holds a table\structure definition
types: begin of tDictTableStructure,
fieldname like dd03l-fieldname,
position like dd03l-position,
keyflag like dd03l-keyflag,
rollname like dd03l-rollname,
domname like dd03l-domname,
datatype like dd03l-datatype,
leng like dd03l-leng,
lowercase type lowercase,
ddtext like dd04t-ddtext,
end of tdictTableStructure.
*-- Holds a table type
types: begin of tTableType,
typename type ttypename, " Name of table type
rowtype type ttrowtype, " Name of row type for table types
ttypkind type ttypkind, " Category of table type (range or general table type)
range_ctyp type range_ctyp, " Elem. type of LOW and HIGH components of a Ranges type
reftype type ddreftype, " Type of Object Referenced
occurs type ddoccurs, " Initial Line Number for Table Types
ddtext type ddtext, " Description
end of tTableType.
* Holds a tables attributes + its definition
types: begin of tDictTable,
tablename like dd03l-tabname,
tableTitle like dd02t-ddtext,
iStructure type tDictTableStructure occurs 0,
end of tDictTable.
types: begin of tDictFilename,
tablename like dd03l-tabname,
filename type string,
end of tDictFilename.
types: begin of tTransformation,
xsltName like trdir-name,
xsltDesc like tftit-stext,
subc like trdir-subc,
end of tTransformation.
* Include program names
types: begin of tInclude,
includeName like trdir-name,
includeTitle like tftit-stext,
end of tInclude.
* Exception class texts
types: begin of tConcept,
constName type string,
concept type sotr_conc,
end of tConcept.
* Method
types: begin of tMethod,
cmpName(61),
descript like vseomethod-descript,
exposure like vseomethod-exposure,
methodKey type string,
end of tMethod.
* Interfaces
types: begin of tInterface,
interfaceName like vseoclass-clsname,
end of tInterface.
* Class
types: begin of tClass,
scanned(1),
clsname like vseoclass-clsname,
descript like vseoclass-descript,
msg_id like vseoclass-msg_id,
exposure like vseoclass-exposure,
state like vseoclass-state,
clsfinal like vseoclass-clsfinal,
r3release like vseoclass-r3release,
iMethods type tMethod occurs 0,
iDictStruct type tDictTable occurs 0,
iTextElements type tTextTable occurs 0,
iMessages type tMessage occurs 0,
iInterfaces type tInterface occurs 0,
iConcepts type tConcept occurs 0,
iTableTypes type tTableType occurs 0,
iTransformations type tTransformation occurs 0,
textElementKey type string,
publicClassKey type string,
privateClassKey type string,
protectedClassKey type string,
typesClassKey type string,
exceptionClass type abap_bool,
end of tClass.
* function modules
types: begin of tFunction,
functionName like tfdir-funcName,
functionGroup like enlfdir-area,
includeNumber like tfdir-include,
functionMainInclude like tfdir-funcName,
functionTitle like tftit-stext,
topIncludeName like tfdir-funcName,
progname like tfdir-pname,
programLinkName like tfdir-pname,
messageClass like t100-arbgb,
iTextElements type tTextTable occurs 0,
iSelectiontexts type tTextTable occurs 0,
iMessages type tMessage occurs 0,
iIncludes type tInclude occurs 0,
iDictStruct type tDictTable occurs 0,
iGUITitle type tGUITitle occurs 0,
iScreenFlow type tScreenFlow occurs 0,
iTableTypes type tTableType occurs 0,
iTransformations type tTransformati
评论0
最新资源