<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Table types in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-types/m-p/8212666#M1627481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; DATA: LT_EXCEL1    TYPE TABLE OF TY_EXCEL1  WITH HEADER LINE,&lt;/P&gt;&lt;P&gt; DATA: SOURCEFILENAME TYPE STRING,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Downloading Data to Excel File&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          FILENAME              = SOURCEFILENAME&lt;/P&gt;&lt;P&gt;          FILETYPE              = 'XLS'&lt;/P&gt;&lt;P&gt;          WRITE_FIELD_SEPARATOR = 'X'&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          DATA_TAB              = LT_EXCEL1.&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;            OTHERS   = 1.&lt;/P&gt;&lt;P&gt;        IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;          MESSAGE I000(ZZ) WITH 'Unable to download error file.'.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOLLOW THIS.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Oct 2011 11:58:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-10-27T11:58:47Z</dc:date>
    <item>
      <title>Table types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-types/m-p/8212660#M1627475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any customized report or code (not standard) through  which I can download all Z table types. We are using SAP CRM 7.0. Kindly help me on this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2011 13:42:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-types/m-p/8212660#M1627475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-24T13:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Table types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-types/m-p/8212661#M1627476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-Download" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-Download&lt;/A&gt;&lt;EM&gt;All&lt;/EM&gt;Custom&lt;EM&gt;(Z)&lt;/EM&gt;Objects&lt;EM&gt;with&lt;/EM&gt;respect&lt;EM&gt;to&lt;/EM&gt;DEV+Class&lt;/P&gt;&lt;P&gt;this may help u..have a look..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 04:28:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-types/m-p/8212661#M1627476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-25T04:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Table types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-types/m-p/8212662#M1627477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-Download" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-Download&lt;/A&gt;&lt;EM&gt;All&lt;/EM&gt;Custom&lt;EM&gt;(Z)&lt;/EM&gt;Objects&lt;EM&gt;with&lt;/EM&gt;respect&lt;EM&gt;to&lt;/EM&gt;DEV+Class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this link it will helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;krishnakiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 04:33:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-types/m-p/8212662#M1627477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-25T04:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Table types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-types/m-p/8212663#M1627478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the data regarding table types is stored in tables DD40L and DD40T. To retrieve only the names of table types you can write your own custom code using table DD40L. Here is what i have tried.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report  ykk_table_types.
types:  begin of ty_types,
        table_type type ttypename,
        end of ty_types.

data:   lt_table_types type standard table of ty_types.

select typename
  from dd40l
  into table lt_table_types
  where typename like 'Z%'.

write sy-subrc.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after executing this code you will have names of all the custom table types in internal table lt_table_types. from here you can simply download the internal table. Like wise you can modify the code according to your requirements of what fields you need, such as data type, row type etc, hope this will be helpful, Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kartik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 05:19:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-types/m-p/8212663#M1627478</guid>
      <dc:creator>Kartik2</dc:creator>
      <dc:date>2011-10-25T05:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Table types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-types/m-p/8212664#M1627479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kartik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to download it from my SAP system to hard drive (location C or D ) in excel format. Can you provide me with full code. Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 06:55:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-types/m-p/8212664#M1627479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-27T06:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Table types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-types/m-p/8212665#M1627480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Varun, &lt;/P&gt;&lt;P&gt;U can download to Excel. Try the code given below.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES:  BEGIN OF ty_types,
        table_type TYPE ttypename,
        END OF ty_types.

DATA:   lt_table_types TYPE STANDARD TABLE OF ty_types.
data : p_file TYPE string.

SELECT typename
  FROM dd40l
  INTO TABLE lt_table_types
  WHERE typename LIKE 'Z%'.

CALL FUNCTION 'GUI_DOWNLOAD'
  EXPORTING
    filename                        = 'C:\Apps\Aa.xls'
   filetype                        = 'ASC'
  TABLES
    data_tab                        = lt_table_types.

IF sy-subrc &amp;lt;&amp;gt; 0.
  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sendhilb4u on Oct 27, 2011 1:45 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 11:24:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-types/m-p/8212665#M1627480</guid>
      <dc:creator>sendhil_kumar</dc:creator>
      <dc:date>2011-10-27T11:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Table types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-types/m-p/8212666#M1627481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; DATA: LT_EXCEL1    TYPE TABLE OF TY_EXCEL1  WITH HEADER LINE,&lt;/P&gt;&lt;P&gt; DATA: SOURCEFILENAME TYPE STRING,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Downloading Data to Excel File&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          FILENAME              = SOURCEFILENAME&lt;/P&gt;&lt;P&gt;          FILETYPE              = 'XLS'&lt;/P&gt;&lt;P&gt;          WRITE_FIELD_SEPARATOR = 'X'&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          DATA_TAB              = LT_EXCEL1.&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;            OTHERS   = 1.&lt;/P&gt;&lt;P&gt;        IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;          MESSAGE I000(ZZ) WITH 'Unable to download error file.'.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOLLOW THIS.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 11:58:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-types/m-p/8212666#M1627481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-27T11:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Table types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-types/m-p/8212667#M1627482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Varun,&lt;/P&gt;&lt;P&gt;here it is full code,&lt;/P&gt;&lt;P&gt;try it,&lt;/P&gt;&lt;P&gt;hope it will help your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES:  BEGIN OF ty_types,
        table_type TYPE ttypename,
        END OF ty_types.
 
DATA:   lt_table_types TYPE STANDARD TABLE OF ty_types.
DATA:   wa_table_types type ty_types.
data : p_file TYPE string.
 
SELECT typename
  FROM dd40l
  INTO TABLE lt_table_types
  WHERE typename LIKE 'Z%'.

 PERFORM EXCEL_DWLD.

FORM EXCEL_DWLD.
Data:    wf_filename       like rlgrap-filename value 'C:\DATA.XLS'.
TYPES: BEGIN OF TY_FILE,
             table(20),
             END OF TY_FILE.
DATA WT_FILE TYPE TABLE OF TY_FILE.
DATA WA_FILE TYPE TY_FILE.

TYPES: BEGIN OF TY_FIELDNAME,
             FIELD(60),
             END OF TY_FIELDNAME.
DATA   WT_FIELDNAME TYPE TABLE OF TY_FIELDNAME.
DATA   WA_FIELDNAME TYPE TY_FIELDNAME.

WA_FIELDNAME-FIELD = 'Table Names'.
APPEND WA_FIELDNAME TO WT_FIELDNAME.

LOOP AT lt_table_types into wa_table_types.
WA_FILE = WA_TABLE_TYPES- table_type.
APPEND WA_FILE TO WT_FILE.
ENDLOOP.

    Call function 'EXCEL_OLE_STANDARD_DAT'
       exporting
            file_name                 = wf_filename
          tables
            data_tab                  = wt_file
            fieldnames                = wt_fieldname
       exceptions
            file_not_exist            = 1
            filename_expected         = 2
            communication_error       = 3
            ole_object_method_error   = 4
            ole_object_property_error = 5
            invalid_filename          = 6
            invalid_pivot_fields      = 7
            download_problem          = 8
            OTHERS                    = 9.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 12:37:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-types/m-p/8212667#M1627482</guid>
      <dc:creator>surajarafath</dc:creator>
      <dc:date>2011-10-27T12:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Table types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-types/m-p/8212668#M1627483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 11:30:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-types/m-p/8212668#M1627483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-28T11:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Table types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-types/m-p/8212669#M1627484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sendil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the help of your code I am able to download Z table types names but not description, length etc other fields of table types. Kindly provide me full code with the names and fields of table types to be download.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Varunsh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 07:38:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-types/m-p/8212669#M1627484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-31T07:38:59Z</dc:date>
    </item>
  </channel>
</rss>

