<?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: Export internal table into exel pattern in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-into-exel-pattern/m-p/979866#M71674</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the model of the excel document (header of document and header of the table). I need export my internal date from my program into this excel document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Aug 2005 05:48:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-08-25T05:48:58Z</dc:date>
    <item>
      <title>Export internal table into exel pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-into-exel-pattern/m-p/979861#M71669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you tell me how can I export the internal table into exel pattern?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2005 05:21:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-into-exel-pattern/m-p/979861#M71669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-25T05:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Export internal table into exel pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-into-exel-pattern/m-p/979862#M71670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;concatenate field1 field2 field3... fieldn into &amp;lt;field string&amp;gt; separated by CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regds&lt;/P&gt;&lt;P&gt;gv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2005 05:29:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-into-exel-pattern/m-p/979862#M71670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-25T05:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Export internal table into exel pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-into-exel-pattern/m-p/979863#M71671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use this FM . This looks good with yellow color for the headings and green for key fields. I've given it in a FORM ENDFORM. Just copy and paste it in ur code and make changes in the itab names and field names as needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IT_COLS LIKE GXXLT_V OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: IT_ONLINE LIKE GXXLT_O OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: IT_PRINT LIKE GXXLT_P OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)Load the actual data into the itab it_qual_com.&lt;/P&gt;&lt;P&gt;2)PERFORM EXCEL_GENERATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bingo this will work. Please award points for the same if this was useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM EXCEL_GENERATION.&lt;/P&gt;&lt;P&gt;IND = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NAME = 'Emp No'.&lt;/P&gt;&lt;P&gt;IND = IND + 1.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NO = IND.&lt;/P&gt;&lt;P&gt;Append it_cols.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NAME = 'Name'.&lt;/P&gt;&lt;P&gt;IND = IND + 1.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NO = IND.&lt;/P&gt;&lt;P&gt;Append it_cols.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NAME = 'Date of Joining'.&lt;/P&gt;&lt;P&gt;IND = IND + 1.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NO = IND.&lt;/P&gt;&lt;P&gt;Append it_cols.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NAME = 'Confirmed'.&lt;/P&gt;&lt;P&gt;IND = IND + 1.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NO = IND.&lt;/P&gt;&lt;P&gt;Append it_cols.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NAME = 'Role Code'.&lt;/P&gt;&lt;P&gt;IND = IND + 1.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NO = IND.&lt;/P&gt;&lt;P&gt;Append it_cols.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NAME = 'Role Description'.&lt;/P&gt;&lt;P&gt;IND = IND + 1.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NO = IND.&lt;/P&gt;&lt;P&gt;Append it_cols.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NAME = 'Job Band'.&lt;/P&gt;&lt;P&gt;IND = IND + 1.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NO = IND.&lt;/P&gt;&lt;P&gt;Append it_cols.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NAME = 'Skill'.&lt;/P&gt;&lt;P&gt;IND = IND + 1.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NO = IND.&lt;/P&gt;&lt;P&gt;Append it_cols.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NAME = 'Additional Weightage'.&lt;/P&gt;&lt;P&gt;IND = IND + 1.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NO = IND.&lt;/P&gt;&lt;P&gt;Append it_cols.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NAME = 'Progeon Experience(months)'.&lt;/P&gt;&lt;P&gt;IND = IND + 1.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NO = IND.&lt;/P&gt;&lt;P&gt;Append it_cols.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NAME = 'Prev. Relevant Experience(months)'.&lt;/P&gt;&lt;P&gt;IND = IND + 1.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NO = IND.&lt;/P&gt;&lt;P&gt;Append it_cols.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NAME = 'Total Experience(months)'.&lt;/P&gt;&lt;P&gt;IND = IND + 1.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NO = IND.&lt;/P&gt;&lt;P&gt;Append it_cols.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NAME = 'PU/Dept'.&lt;/P&gt;&lt;P&gt;IND = IND + 1.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NO = IND.&lt;/P&gt;&lt;P&gt;Append it_cols.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NAME = 'DU'.&lt;/P&gt;&lt;P&gt;IND = IND + 1.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NO = IND.&lt;/P&gt;&lt;P&gt;Append it_cols.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NAME = 'Location'.&lt;/P&gt;&lt;P&gt;IND = IND + 1.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NO = IND.&lt;/P&gt;&lt;P&gt;Append it_cols.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NAME = 'Age'.&lt;/P&gt;&lt;P&gt;IND = IND + 1.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NO = IND.&lt;/P&gt;&lt;P&gt;Append it_cols.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NAME = 'Date of Birth'.&lt;/P&gt;&lt;P&gt;IND = IND + 1.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NO = IND.&lt;/P&gt;&lt;P&gt;Append it_cols.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NAME = 'Gender'.&lt;/P&gt;&lt;P&gt;IND = IND + 1.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NO = IND.&lt;/P&gt;&lt;P&gt;Append it_cols.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NAME = 'Birth Place'.&lt;/P&gt;&lt;P&gt;IND = IND + 1.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NO = IND.&lt;/P&gt;&lt;P&gt;Append it_cols.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NAME = 'State'.&lt;/P&gt;&lt;P&gt;IND = IND + 1.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NO = IND.&lt;/P&gt;&lt;P&gt;Append it_cols.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NAME = 'Nationality'.&lt;/P&gt;&lt;P&gt;IND = IND + 1.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NO = IND.&lt;/P&gt;&lt;P&gt;Append it_cols.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NAME = 'PB'.&lt;/P&gt;&lt;P&gt;IND = IND + 1.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NO = IND.&lt;/P&gt;&lt;P&gt;Append it_cols.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NAME = 'PSB'.&lt;/P&gt;&lt;P&gt;IND = IND + 1.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NO = IND.&lt;/P&gt;&lt;P&gt;Append it_cols.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NAME = 'Stream Code'.&lt;/P&gt;&lt;P&gt;IND = IND + 1.&lt;/P&gt;&lt;P&gt;IT_COLS-COL_NO = IND.&lt;/P&gt;&lt;P&gt;Append it_cols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'XXL_SIMPLE_API'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;N_KEY_COLS = 1&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;COL_TEXT = IT_COLS&lt;/P&gt;&lt;P&gt;DATA = IT_QUAL_COM "data itab&lt;/P&gt;&lt;P&gt;ONLINE_TEXT = IT_ONLINE&lt;/P&gt;&lt;P&gt;PRINT_TEXT = IT_PRINT&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;DIM_MISMATCH_DATA = 1&lt;/P&gt;&lt;P&gt;FILE_OPEN_ERROR = 2&lt;/P&gt;&lt;P&gt;FILE_WRITE_ERROR = 3&lt;/P&gt;&lt;P&gt;INV_WINSYS = 4&lt;/P&gt;&lt;P&gt;INV_XXL = 5&lt;/P&gt;&lt;P&gt;OTHERS = 6&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;P&gt;ENDFORM. "EXCEL_GENERATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2005 05:29:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-into-exel-pattern/m-p/979863#M71671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-25T05:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Export internal table into exel pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-into-exel-pattern/m-p/979864#M71672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Also, if your requirement is mere exporting into Excel Sheet, then you can also use this FM &lt;/P&gt;&lt;P&gt;'MS_EXCEL_OLE_STANDARD_DAT' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2005 05:32:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-into-exel-pattern/m-p/979864#M71672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-25T05:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Export internal table into exel pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-into-exel-pattern/m-p/979865#M71673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HELLO JUST USE THIS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;    FILENAME                      = 'C:/FILE.XLS'&lt;/P&gt;&lt;P&gt;    FILETYPE                      = 'DAT'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    data_tab                      = ITAB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2005 05:41:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-into-exel-pattern/m-p/979865#M71673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-25T05:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Export internal table into exel pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-into-exel-pattern/m-p/979866#M71674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the model of the excel document (header of document and header of the table). I need export my internal date from my program into this excel document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2005 05:48:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-into-exel-pattern/m-p/979866#M71674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-25T05:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Export internal table into exel pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-into-exel-pattern/m-p/979867#M71675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'GUI_DOWNLOAD' is the function module for your purpose. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To me its the best available option. just use the  Import parameter &lt;/P&gt;&lt;P&gt;FILETYPE = 'XLS'   (defualt is 'ASC')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2005 05:58:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-into-exel-pattern/m-p/979867#M71675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-25T05:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Export internal table into exel pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-into-exel-pattern/m-p/979868#M71676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use FM 'SAP_CONVERT_TO_XLS_FORMAT' or even you can do it using interface I_OI_SPREADSHEET ( SAPRDEMO_TABLES_IN_EXCEL ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'SAP_CONVERT_TO_XLS_FORMAT'&lt;/P&gt;&lt;P&gt;             exporting&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              I_FIELD_SEPERATOR = seper&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              I_LINE_HEADER = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                 I_FILENAME = P_FILE&lt;/P&gt;&lt;P&gt;              tables&lt;/P&gt;&lt;P&gt;                  I_TAB_SAP_DATA = itab&lt;/P&gt;&lt;P&gt;              exceptions&lt;/P&gt;&lt;P&gt;                  CONVERSION_FAILED = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Svetlin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. If you find an answer useful, please assign reward points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2005 06:11:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-into-exel-pattern/m-p/979868#M71676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-25T06:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Export internal table into exel pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-into-exel-pattern/m-p/979869#M71677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ashish Jain:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with GUI_DOWNLOAD allowed file types are BIN and ASC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you are saying is that, you have a template (EXCEL) and you want to open this and fill data from your ABAP right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need OLE programming. Check the following link for a very good tutorial by Serdar Simsekler  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;on that&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/technologies/an" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/technologies/an&lt;/A&gt; easy reference for ole automation.article&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2005 06:24:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-into-exel-pattern/m-p/979869#M71677</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-08-25T06:24:36Z</dc:date>
    </item>
  </channel>
</rss>

