*&---------------------------------------------------------------------*
*&  Include           ZSOFTCOPY_VARIABLES                              *
*&                                                                     *
*&---------------------------------------------------------------------*
*&                                                                     *
*& This file is part of ZSOFTCOPY.                                     *
*&                                                                     *
*& ZSOFTCOPY 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 3 of the License,   *
*& or any later version.                                               *
*&                                                                     *
*& ZSOFTCOPY 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 ZDOWNLOAD. If not, see <http://www.gnu.org/licenses/>.   *
*&                                                                     *
*&---------------------------------------------------------------------*
*&                                                                     *
*&  Author:     Ruediger von Creytz     ruediger.creytz@globalbit.net  *
*&  Copyright:  globalBIT, LLC          http://www.globalbit.net       *
*&                                                                     *
*&---------------------------------------------------------------------*


DATA:
g_add_db_content      TYPE flag      VALUE abap_true,
g_add_db_format_csv   TYPE flag      VALUE abap_true,
g_add_db_format_xml   TYPE flag      VALUE abap_true,
g_add_db_max_lines    TYPE i         VALUE 500,
g_add_elem_ddic       TYPE flag      VALUE abap_true,
g_add_elem_tabl       TYPE flag      VALUE abap_true,
g_add_elem_view       TYPE flag      VALUE abap_true,
g_add_elem_ttyp       TYPE flag      VALUE abap_true,
g_add_elem_struc      TYPE flag      VALUE abap_true,
g_add_elem_dtel       TYPE flag      VALUE abap_true,
g_add_elem_doma       TYPE flag      VALUE abap_true,
g_add_elem_shlp       TYPE flag      VALUE abap_true,
g_add_elem_enqu       TYPE flag      VALUE abap_true,
g_add_elem_type       TYPE flag      VALUE abap_true,
g_add_elem_clslib     TYPE flag      VALUE abap_true,
g_add_elem_clas       TYPE flag      VALUE abap_true,
g_add_elem_intf       TYPE flag      VALUE abap_true,
g_add_elem_prog       TYPE flag      VALUE abap_true,
g_add_elem_fugr       TYPE flag      VALUE abap_true,
g_add_elem_fuba       TYPE flag      VALUE abap_true,
g_add_elem_scr        TYPE flag      VALUE abap_true,
g_add_elem_fuincl     TYPE flag      VALUE abap_true,
g_add_elem_incl       TYPE flag      VALUE abap_true,
g_add_elem_msag       TYPE flag      VALUE abap_true,
g_add_elem_o2appl     TYPE flag      VALUE abap_true,
g_add_elem_o2applbsp  TYPE flag      VALUE abap_true,
g_add_elem_o2applctrl TYPE flag      VALUE abap_true,
g_add_elem_o2applincl TYPE flag      VALUE abap_true,
g_add_elem_o2applmime TYPE flag      VALUE abap_true,
g_add_elem_o2applview TYPE flag      VALUE abap_true,
g_add_elem_o2taglib   TYPE flag      VALUE abap_true,
g_add_elem_para       TYPE flag      VALUE abap_true,
g_add_elem_tobj       TYPE flag      VALUE abap_true,
g_add_elem_tran       TYPE flag      VALUE abap_true,
g_add_elem_xslt       TYPE flag      VALUE abap_true,
g_add_sourcecode      TYPE flag      VALUE abap_true,
g_add_report_variants TYPE flag      VALUE abap_true,
g_empty_tab           TYPE c         VALUE 'D',
g_folder              TYPE string,
g_pack                TYPE devclass,
g_cnt_elems           TYPE i         VALUE 0,
g_cnt_downloads       TYPE i         VALUE 0,
g_cnt_link_leaves     type num10,

*must be initial
gt_link               TYPE it_link,
*download database contents (all packages)
gt_tadir              TYPE STANDARD TABLE OF tadir,
*download elements
gt_ztadir             TYPE it_ztadir,
*download class methods
gt_zseomethod         TYPE it_zseomethod,
gt_tdevc              TYPE STANDARD TABLE OF tdevc,
gs_tdevc              TYPE tdevc,
gt_table_structure    TYPE it_table_structure,
gt_tabstrip           TYPE it_tabstrip,
gt_text_element       TYPE it_text_element,
gt_text_element_t     TYPE it_text_element_t,
gt_varid_broken       TYPE it_varid,
*suppress transfer status from GUI_DOWNLOAD
g_has_download_status TYPE flag.

CONSTANTS:
gc_delimiter          TYPE c         VALUE '\',
gc_empty_tab_disable  TYPE c         VALUE 'D',
gc_empty_tab_display  TYPE c         VALUE 'N',
gc_empty_tab_hide     TYPE c         VALUE 'H',
gc_extension_csv      TYPE char3     VALUE 'csv',
gc_extension_htm      TYPE char3     VALUE 'htm',
gc_extension_txt      TYPE char3     VALUE 'txt',
gc_extension_xml      TYPE char3     VALUE 'xml',
gc_extension_xsl      TYPE char3     VALUE 'xsl',
gc_futype_group       TYPE c         VALUE 'G',
gc_futype_include     TYPE c         VALUE 'I',
gc_futype_screen      TYPE c         VALUE 'S',
gc_futype_module      TYPE c         VALUE 'M',
gc_o2type_bsp         TYPE c         VALUE ' ',
gc_o2type_ctrl        TYPE c         VALUE 'C',
gc_o2type_incl        TYPE c         VALUE 'X',
gc_o2type_mime        TYPE c         VALUE 'M',
gc_o2type_tag         TYPE c         VALUE 'T',
gc_o2type_view        TYPE c         VALUE 'V',
gc_subrc_deselected   TYPE sysubrc   VALUE 97,
gc_subrc_do_not_add   TYPE sysubrc   VALUE 98,
gc_subrc_not_found    TYPE sysubrc   VALUE 99,
gc_src_max_rows       TYPE i         VALUE 16000,
gc_tcode_dialog       TYPE c         VALUE 'D',
gc_tcode_object       TYPE c         VALUE 'O',
gc_tcode_parameter    TYPE c         VALUE 'P',
gc_tcode_report       TYPE c         VALUE 'R',
gc_tcode_variant      TYPE c         VALUE 'V'.

TABLES:
dd02l,
tdevc,
sscrfields.


*-----------------------------------------------------------------------
* form: init
*-----------------------------------------------------------------------
FORM init.
  REFRESH:
  gt_ztadir,
  gt_zseomethod.

  g_cnt_elems = 0.
  g_cnt_downloads = 0.
ENDFORM.                    "init
