<?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: internal table to excel sheet. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-excel-sheet/m-p/3626518#M873714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this Function module..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call function 'SDIXML_DOM_TO_XML'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kavitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Apr 2008 07:03:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-16T07:03:09Z</dc:date>
    <item>
      <title>internal table to excel sheet.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-excel-sheet/m-p/3626515#M873711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to transfer the data from  2 internal table to same excel  with diferent sheet.&lt;/P&gt;&lt;P&gt;my requirement is like this  i want to give single file name. &lt;/P&gt;&lt;P&gt; if  only 1 internal table contain data then that should display in the  specified excel.&lt;/P&gt;&lt;P&gt;if  2 internal table contain data then it should display in the specified excel with two sheets.&lt;/P&gt;&lt;P&gt;Thanks in advance..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 06:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-excel-sheet/m-p/3626515#M873711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T06:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: internal table to excel sheet.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-excel-sheet/m-p/3626516#M873712</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;Please refer the link below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c05db2ca-569e-2910-0784-fc06cc3be31d" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c05db2ca-569e-2910-0784-fc06cc3be31d&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 06:38:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-excel-sheet/m-p/3626516#M873712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T06:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: internal table to excel sheet.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-excel-sheet/m-p/3626517#M873713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yah its possible&lt;/P&gt;&lt;P&gt;u can see the sample code in this : &lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/creating%2bexcel%2bwith%2bmore%2bthan%2bone%2bpage" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/creating%2bexcel%2bwith%2bmore%2bthan%2bone%2bpage&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c05db2ca-569e-2910-0784-fc06cc3be31d" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c05db2ca-569e-2910-0784-fc06cc3be31d&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 06:39:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-excel-sheet/m-p/3626517#M873713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T06:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: internal table to excel sheet.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-excel-sheet/m-p/3626518#M873714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this Function module..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call function 'SDIXML_DOM_TO_XML'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kavitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 07:03:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-excel-sheet/m-p/3626518#M873714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T07:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: internal table to excel sheet.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-excel-sheet/m-p/3626519#M873715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Often we face situations where we need to download internal table contents onto an Excel sheet. We are familiar with the function module WS_DOWNLOAD. Though this function module downloads the contents onto the Excel sheet, there cannot be any column headings or we cannot differentiate the primary keys just by seeing the Excel sheet. For this purpose, we can use the function module XXL_FULL_API. The Excel sheet which is generated by this function module contains the column headings and the key columns are highlighted with a different color. Other options that are available with this function module are we can swap two columns or supress a field from displaying on the Excel sheet. The simple code for the usage of this function module is given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program code :&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;REPORT Z_Excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES:&lt;/P&gt;&lt;P&gt;  sflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;header data................................&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA :&lt;/P&gt;&lt;P&gt;  header1 LIKE gxxlt_p-text VALUE 'Raj',&lt;/P&gt;&lt;P&gt;  header2 LIKE gxxlt_p-text VALUE 'Excel sheet'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table for holding the SFLIGHT data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA BEGIN OF t_sflight OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE sflight.&lt;/P&gt;&lt;P&gt;DATA END   OF t_sflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table for holding the horizontal key.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA BEGIN OF  t_hkey OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE gxxlt_h.&lt;/P&gt;&lt;P&gt;DATA END   OF t_hkey .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table for holding the vertical key.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA BEGIN OF t_vkey OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE gxxlt_v.&lt;/P&gt;&lt;P&gt;DATA END   OF t_vkey .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table for holding the online text....&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA BEGIN OF t_online OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE gxxlt_o.&lt;/P&gt;&lt;P&gt;DATA END   OF t_online.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table to hold print text.............&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA BEGIN OF t_print OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE gxxlt_p.&lt;/P&gt;&lt;P&gt;DATA END   OF t_print.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table to hold SEMA data..............&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA BEGIN OF t_sema OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE gxxlt_s.&lt;/P&gt;&lt;P&gt;DATA END   OF t_sema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Retreiving data from sflight.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT * FROM sflight&lt;/P&gt;&lt;P&gt;         INTO TABLE t_sflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Text which will be displayed online is declared here....&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;t_online-line_no    = '1'.&lt;/P&gt;&lt;P&gt;t_online-info_name  = 'Created by'.&lt;/P&gt;&lt;P&gt;t_online-info_value = 'Raj'. &lt;/P&gt;&lt;P&gt;APPEND t_online.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Text which will be printed out..........................&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;t_print-hf     = 'H'.&lt;/P&gt;&lt;P&gt;t_print-lcr    = 'L'.&lt;/P&gt;&lt;P&gt;t_print-line_no = '1'.&lt;/P&gt;&lt;P&gt;t_print-text   = 'This is the header'.&lt;/P&gt;&lt;P&gt;APPEND t_print.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_print-hf     = 'F'.&lt;/P&gt;&lt;P&gt;t_print-lcr    = 'C'.&lt;/P&gt;&lt;P&gt;t_print-line_no = '1'.&lt;/P&gt;&lt;P&gt;t_print-text   = 'This is the footer'.&lt;/P&gt;&lt;P&gt;APPEND t_print.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Defining the vertical key columns.......&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;t_vkey-col_no   = '1'.&lt;/P&gt;&lt;P&gt;t_vkey-col_name = 'MANDT'.&lt;/P&gt;&lt;P&gt;APPEND t_vkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_vkey-col_no   = '2'.&lt;/P&gt;&lt;P&gt;t_vkey-col_name = 'CARRID'.&lt;/P&gt;&lt;P&gt;APPEND t_vkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_vkey-col_no   = '3'.&lt;/P&gt;&lt;P&gt;t_vkey-col_name = 'CONNID'.&lt;/P&gt;&lt;P&gt;APPEND t_vkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_vkey-col_no   = '4'.&lt;/P&gt;&lt;P&gt;t_vkey-col_name = 'FLDATE'.&lt;/P&gt;&lt;P&gt;APPEND t_vkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Header text for the data columns................&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_hkey-row_no = '1'.&lt;/P&gt;&lt;P&gt;t_hkey-col_no = 1.&lt;/P&gt;&lt;P&gt;t_hkey-col_name = 'PRICE'.&lt;/P&gt;&lt;P&gt;APPEND t_hkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_hkey-col_no = 2.&lt;/P&gt;&lt;P&gt;t_hkey-col_name = 'CURRENCY'.&lt;/P&gt;&lt;P&gt;APPEND t_hkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_hkey-col_no = 3.&lt;/P&gt;&lt;P&gt;t_hkey-col_name = 'PLANETYPE'.&lt;/P&gt;&lt;P&gt;APPEND t_hkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_hkey-col_no = 4.&lt;/P&gt;&lt;P&gt;t_hkey-col_name = 'SEATSMAX'.&lt;/P&gt;&lt;P&gt;APPEND t_hkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_hkey-col_no = 5.&lt;/P&gt;&lt;P&gt;t_hkey-col_name = 'SEATSOCC'.&lt;/P&gt;&lt;P&gt;APPEND t_hkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_hkey-col_no = 6.&lt;/P&gt;&lt;P&gt;t_hkey-col_name = 'PAYMENTSUM'.&lt;/P&gt;&lt;P&gt;APPEND t_hkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;populating the SEMA data.......................... t_sema-col_no  = 1. t_sema-col_typ = 'STR'. t_sema-col_ops = 'DFT'. APPEND t_sema.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_sema-col_no = 2.&lt;/P&gt;&lt;P&gt;APPEND t_sema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_sema-col_no = 3.&lt;/P&gt;&lt;P&gt;APPEND t_sema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_sema-col_no = 4.&lt;/P&gt;&lt;P&gt;APPEND t_sema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_sema-col_no = 5.&lt;/P&gt;&lt;P&gt;APPEND t_sema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_sema-col_no = 6.&lt;/P&gt;&lt;P&gt;APPEND t_sema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_sema-col_no = 7.&lt;/P&gt;&lt;P&gt;APPEND t_sema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_sema-col_no = 8.&lt;/P&gt;&lt;P&gt;APPEND t_sema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_sema-col_no = 9.&lt;/P&gt;&lt;P&gt;APPEND t_sema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_sema-col_no = 10.&lt;/P&gt;&lt;P&gt;t_sema-col_typ = 'NUM'.&lt;/P&gt;&lt;P&gt;t_sema-col_ops = 'ADD'.&lt;/P&gt;&lt;P&gt;APPEND t_sema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'XXL_FULL_API'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DATA_ENDING_AT          = 54&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DATA_STARTING_AT        = 5&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   filename                = 'TESTFILE'&lt;/P&gt;&lt;P&gt;   header_1                = header1&lt;/P&gt;&lt;P&gt;   header_2                = header2&lt;/P&gt;&lt;P&gt;   no_dialog               = 'X'&lt;/P&gt;&lt;P&gt;   no_start                = ' '&lt;/P&gt;&lt;P&gt;    n_att_cols              = 6&lt;/P&gt;&lt;P&gt;    n_hrz_keys              = 1&lt;/P&gt;&lt;P&gt;    n_vrt_keys              = 4&lt;/P&gt;&lt;P&gt;   sema_type               = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SO_TITLE                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    data                    = t_sflight&lt;/P&gt;&lt;P&gt;    hkey                    = t_hkey&lt;/P&gt;&lt;P&gt;    online_text             = t_online&lt;/P&gt;&lt;P&gt;    print_text              = t_print&lt;/P&gt;&lt;P&gt;    sema                    = t_sema&lt;/P&gt;&lt;P&gt;    vkey                    = t_vkey&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   cancelled_by_user       = 1&lt;/P&gt;&lt;P&gt;   data_too_big            = 2&lt;/P&gt;&lt;P&gt;   dim_mismatch_data       = 3&lt;/P&gt;&lt;P&gt;   dim_mismatch_sema       = 4&lt;/P&gt;&lt;P&gt;   dim_mismatch_vkey       = 5&lt;/P&gt;&lt;P&gt;   error_in_hkey           = 6&lt;/P&gt;&lt;P&gt;   error_in_sema           = 7&lt;/P&gt;&lt;P&gt;   file_open_error         = 8&lt;/P&gt;&lt;P&gt;   file_write_error        = 9&lt;/P&gt;&lt;P&gt;   inv_data_range          = 10&lt;/P&gt;&lt;P&gt;   inv_winsys              = 11&lt;/P&gt;&lt;P&gt;   inv_xxl                 = 12&lt;/P&gt;&lt;P&gt;   OTHERS                  = 13&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 11:10:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-excel-sheet/m-p/3626519#M873715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T11:10:32Z</dc:date>
    </item>
  </channel>
</rss>

