<?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: Report excel in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-excel/m-p/3215656#M766736</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;u can use OLE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jan 2008 07:48:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-07T07:48:51Z</dc:date>
    <item>
      <title>Report excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-excel/m-p/3215655#M766735</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;  In reports how to put the output data into excel file ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 07:43:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-excel/m-p/3215655#M766735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T07:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Report excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-excel/m-p/3215656#M766736</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;u can use OLE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 07:48:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-excel/m-p/3215656#M766736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T07:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Report excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-excel/m-p/3215657#M766737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please explain clealy and  is it possible to give any sample report&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 07:51:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-excel/m-p/3215657#M766737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T07:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Report excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-excel/m-p/3215658#M766738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zmm_basic_data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report to View Detail Of Material Master BASIC DATA. &lt;/P&gt;&lt;P&gt;Start Date 07.05.2007 &lt;/P&gt;&lt;P&gt;Request No.-GR3K931783 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: mara,marc,makt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gi_mara LIKE mara OCCURS 1 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;gi_marc LIKE marc OCCURS 1 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;gi_makt LIKE makt OCCURS 1 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF gi_download OCCURS 1,&lt;/P&gt;&lt;P&gt;matnr LIKE mara-matnr,"material no&lt;/P&gt;&lt;P&gt;maktx LIKE makt-maktx,"material description&lt;/P&gt;&lt;P&gt;matkl LIKE mara-matkl,"material group&lt;/P&gt;&lt;P&gt;werks LIKE marc-werks,"plant&lt;/P&gt;&lt;P&gt;ekgrp LIKE marc-ekgrp,"purchasing group&lt;/P&gt;&lt;P&gt;spart LIKE mara-spart,"division&lt;/P&gt;&lt;P&gt;meins LIKE mara-meins,"base uit of measure&lt;/P&gt;&lt;P&gt;bismt LIKE mara-bismt,"old material no.&lt;/P&gt;&lt;P&gt;prdha LIKE mara-prdha,"product hierarchy&lt;/P&gt;&lt;P&gt;brgew LIKE mara-brgew,"gross weight&lt;/P&gt;&lt;P&gt;ntgew LIKE mara-ntgew,"net weight&lt;/P&gt;&lt;P&gt;gewei LIKE mara-gewei,"weight unit&lt;/P&gt;&lt;P&gt;volum LIKE mara-volum,"volume&lt;/P&gt;&lt;P&gt;voleh LIKE mara-voleh,"volume unit&lt;/P&gt;&lt;P&gt;zeinr LIKE mara-zeinr,"document no.&lt;/P&gt;&lt;P&gt;zeiar LIKE mara-zeiar,"document type&lt;/P&gt;&lt;P&gt;zeivr LIKE mara-zeivr,"document version&lt;/P&gt;&lt;P&gt;zeifo LIKE mara-zeifo,"page format of document&lt;/P&gt;&lt;P&gt;blanz LIKE mara-blanz,"number of sheets&lt;/P&gt;&lt;P&gt;spras LIKE makt-spras,"language key&lt;/P&gt;&lt;P&gt;END OF gi_download.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF gi_fieldnames OCCURS 1,&lt;/P&gt;&lt;P&gt;mandt(50),&lt;/P&gt;&lt;P&gt;END OF gi_fieldnames.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*file path and file name data declaration.&lt;/P&gt;&lt;P&gt;DATA: stripped_name LIKE rlgrap-filename,&lt;/P&gt;&lt;P&gt;file_path LIKE rlgrap-filename.&lt;/P&gt;&lt;P&gt;DATA: inpath LIKE ltran-path01,&lt;/P&gt;&lt;P&gt;file LIKE ltran-file01,&lt;/P&gt;&lt;P&gt;outpath LIKE ltran-path02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field Symbols ************ &lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;mara&amp;gt; LIKE gi_mara.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;marc&amp;gt; LIKE gi_marc.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;makt&amp;gt; LIKE gi_makt.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;download&amp;gt; LIKE gi_download.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: SKIP.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_werks FOR marc-werks.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_ekgrp FOR marc-ekgrp.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_matnr FOR mara-matnr.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_matkl FOR mara-matkl.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_spart FOR mara-spart.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: SKIP.&lt;/P&gt;&lt;P&gt;PARAMETER fnm TYPE rlgrap-filename OBLIGATORY.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: SKIP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR fnm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'KD_GET_FILENAME_ON_F4'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;static = 'X'&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;file_name = fnm&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;mask_too_long = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;IF sy-subrc 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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*For fetching the baisc data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************************************************************&lt;/P&gt;&lt;P&gt;*Getting the general data based on material no,division and material&lt;/P&gt;&lt;P&gt;*group.&lt;/P&gt;&lt;P&gt;*******************************************************************&lt;/P&gt;&lt;P&gt;SELECT * FROM mara INTO TABLE gi_mara&lt;/P&gt;&lt;P&gt;WHERE matnr IN s_matnr&lt;/P&gt;&lt;P&gt;AND spart IN s_spart&lt;/P&gt;&lt;P&gt;AND matkl IN s_matkl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************************************************************&lt;/P&gt;&lt;P&gt;*Getting the plant data based on material no,plant and purchasing&lt;/P&gt;&lt;P&gt;*group.&lt;/P&gt;&lt;P&gt;*******************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT gi_mara[] IS INITIAL.&lt;/P&gt;&lt;P&gt;SELECT * FROM marc INTO TABLE gi_marc&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN gi_mara&lt;/P&gt;&lt;P&gt;WHERE matnr EQ gi_mara-matnr&lt;/P&gt;&lt;P&gt;AND werks IN s_werks&lt;/P&gt;&lt;P&gt;AND ekgrp IN s_ekgrp.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************&lt;/P&gt;&lt;P&gt;*Getting the material description based on material no&lt;/P&gt;&lt;P&gt;***********************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT gi_mara[] IS INITIAL.&lt;/P&gt;&lt;P&gt;SELECT * FROM makt INTO TABLE gi_makt&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN gi_mara&lt;/P&gt;&lt;P&gt;WHERE matnr = gi_mara-matnr.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fetching all data into single internal table ******** &lt;/P&gt;&lt;P&gt;SORT gi_mara BY matnr.&lt;/P&gt;&lt;P&gt;SORT gi_makt BY matnr.&lt;/P&gt;&lt;P&gt;SORT gi_marc BY matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****&lt;STRONG&gt;Transfering the data into gi_download&lt;/STRONG&gt;*******&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF s_werks] IS INITIAL and s_ekgrp[ IS INITIAL.&lt;/P&gt;&lt;P&gt;LOOP AT gi_mara ASSIGNING &amp;lt;mara&amp;gt;.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING &amp;lt;mara&amp;gt; TO gi_download.&lt;/P&gt;&lt;P&gt;READ TABLE gi_marc ASSIGNING &amp;lt;marc&amp;gt;&lt;/P&gt;&lt;P&gt;WITH KEY matnr = &amp;lt;mara&amp;gt;-matnr&lt;/P&gt;&lt;P&gt;BINARY SEARCH.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;MOVE &amp;lt;marc&amp;gt;-werks TO gi_download-werks.&lt;/P&gt;&lt;P&gt;MOVE &amp;lt;marc&amp;gt;-ekgrp TO gi_download-ekgrp.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE gi_makt ASSIGNING &amp;lt;makt&amp;gt;&lt;/P&gt;&lt;P&gt;WITH KEY matnr = &amp;lt;mara&amp;gt;-matnr&lt;/P&gt;&lt;P&gt;BINARY SEARCH.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;MOVE &amp;lt;makt&amp;gt;-maktx TO gi_download-maktx.&lt;/P&gt;&lt;P&gt;MOVE &amp;lt;makt&amp;gt;-spras TO gi_download-spras.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;APPEND gi_download.&lt;/P&gt;&lt;P&gt;CLEAR gi_download.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;LOOP AT gi_marc ASSIGNING &amp;lt;marc&amp;gt;.&lt;/P&gt;&lt;P&gt;READ TABLE gi_mara ASSIGNING &amp;lt;mara&amp;gt;&lt;/P&gt;&lt;P&gt;WITH KEY matnr = &amp;lt;marc&amp;gt;-matnr&lt;/P&gt;&lt;P&gt;BINARY SEARCH.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING &amp;lt;mara&amp;gt; TO gi_download.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE gi_makt ASSIGNING &amp;lt;makt&amp;gt;&lt;/P&gt;&lt;P&gt;WITH KEY matnr = &amp;lt;marc&amp;gt;-matnr&lt;/P&gt;&lt;P&gt;BINARY SEARCH.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;MOVE &amp;lt;makt&amp;gt;-maktx TO gi_download-maktx.&lt;/P&gt;&lt;P&gt;MOVE &amp;lt;makt&amp;gt;-spras TO gi_download-spras.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE &amp;lt;marc&amp;gt;-werks TO gi_download-werks.&lt;/P&gt;&lt;P&gt;MOVE &amp;lt;marc&amp;gt;-ekgrp TO gi_download-ekgrp.&lt;/P&gt;&lt;P&gt;APPEND gi_download.&lt;/P&gt;&lt;P&gt;CLEAR gi_download.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF gi_download[] IS INITIAL.&lt;/P&gt;&lt;P&gt;MESSAGE i001(sa) WITH 'Data not found'.&lt;/P&gt;&lt;P&gt;LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******&lt;STRONG&gt;Downloading the basic data&lt;/STRONG&gt;********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gi_fieldnames-mandt = 'Material no'.&lt;/P&gt;&lt;P&gt;APPEND gi_fieldnames.&lt;/P&gt;&lt;P&gt;CLEAR gi_fieldnames.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gi_fieldnames-mandt = 'Material description'.&lt;/P&gt;&lt;P&gt;APPEND gi_fieldnames.&lt;/P&gt;&lt;P&gt;CLEAR gi_fieldnames.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gi_fieldnames-mandt = 'Material group'.&lt;/P&gt;&lt;P&gt;APPEND gi_fieldnames.&lt;/P&gt;&lt;P&gt;CLEAR gi_fieldnames.&lt;/P&gt;&lt;P&gt;gi_fieldnames-mandt = 'Plant'.&lt;/P&gt;&lt;P&gt;APPEND gi_fieldnames.&lt;/P&gt;&lt;P&gt;CLEAR gi_fieldnames.&lt;/P&gt;&lt;P&gt;gi_fieldnames-mandt = 'Purchasing group'.&lt;/P&gt;&lt;P&gt;APPEND gi_fieldnames.&lt;/P&gt;&lt;P&gt;CLEAR gi_fieldnames.&lt;/P&gt;&lt;P&gt;gi_fieldnames-mandt = 'Division'.&lt;/P&gt;&lt;P&gt;APPEND gi_fieldnames.&lt;/P&gt;&lt;P&gt;CLEAR gi_fieldnames.&lt;/P&gt;&lt;P&gt;gi_fieldnames-mandt = 'Base uit of measure'.&lt;/P&gt;&lt;P&gt;APPEND gi_fieldnames.&lt;/P&gt;&lt;P&gt;CLEAR gi_fieldnames.&lt;/P&gt;&lt;P&gt;gi_fieldnames-mandt = 'Old material no.'.&lt;/P&gt;&lt;P&gt;APPEND gi_fieldnames.&lt;/P&gt;&lt;P&gt;CLEAR gi_fieldnames.&lt;/P&gt;&lt;P&gt;gi_fieldnames-mandt = 'Product hierarchy'.&lt;/P&gt;&lt;P&gt;APPEND gi_fieldnames.&lt;/P&gt;&lt;P&gt;CLEAR gi_fieldnames.&lt;/P&gt;&lt;P&gt;gi_fieldnames-mandt = 'Gross weight'.&lt;/P&gt;&lt;P&gt;APPEND gi_fieldnames.&lt;/P&gt;&lt;P&gt;CLEAR gi_fieldnames.&lt;/P&gt;&lt;P&gt;gi_fieldnames-mandt = 'Net weight'.&lt;/P&gt;&lt;P&gt;APPEND gi_fieldnames.&lt;/P&gt;&lt;P&gt;CLEAR gi_fieldnames.&lt;/P&gt;&lt;P&gt;gi_fieldnames-mandt = 'Weight unit'.&lt;/P&gt;&lt;P&gt;APPEND gi_fieldnames.&lt;/P&gt;&lt;P&gt;CLEAR gi_fieldnames.&lt;/P&gt;&lt;P&gt;gi_fieldnames-mandt = 'Volume'.&lt;/P&gt;&lt;P&gt;APPEND gi_fieldnames.&lt;/P&gt;&lt;P&gt;CLEAR gi_fieldnames.&lt;/P&gt;&lt;P&gt;gi_fieldnames-mandt = 'Volume unit'.&lt;/P&gt;&lt;P&gt;APPEND gi_fieldnames.&lt;/P&gt;&lt;P&gt;CLEAR gi_fieldnames.&lt;/P&gt;&lt;P&gt;gi_fieldnames-mandt = 'Document no.'.&lt;/P&gt;&lt;P&gt;APPEND gi_fieldnames.&lt;/P&gt;&lt;P&gt;CLEAR gi_fieldnames.&lt;/P&gt;&lt;P&gt;gi_fieldnames-mandt = 'Document type'.&lt;/P&gt;&lt;P&gt;APPEND gi_fieldnames.&lt;/P&gt;&lt;P&gt;CLEAR gi_fieldnames.&lt;/P&gt;&lt;P&gt;gi_fieldnames-mandt = 'Document version'.&lt;/P&gt;&lt;P&gt;APPEND gi_fieldnames.&lt;/P&gt;&lt;P&gt;CLEAR gi_fieldnames.&lt;/P&gt;&lt;P&gt;gi_fieldnames-mandt = 'Page format of document'.&lt;/P&gt;&lt;P&gt;APPEND gi_fieldnames.&lt;/P&gt;&lt;P&gt;CLEAR gi_fieldnames.&lt;/P&gt;&lt;P&gt;gi_fieldnames-mandt = 'Number of sheets'.&lt;/P&gt;&lt;P&gt;APPEND gi_fieldnames.&lt;/P&gt;&lt;P&gt;CLEAR gi_fieldnames.&lt;/P&gt;&lt;P&gt;gi_fieldnames-mandt = 'Language key'.&lt;/P&gt;&lt;P&gt;APPEND gi_fieldnames.&lt;/P&gt;&lt;P&gt;CLEAR gi_fieldnames. CALL FUNCTION 'SO_SPLIT_FILE_AND_PATH'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;full_name = fnm&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;stripped_name = stripped_name&lt;/P&gt;&lt;P&gt;file_path = file_path&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;x_error = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc 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;CLEAR fnm.&lt;/P&gt;&lt;P&gt;CONCATENATE file_path stripped_name INTO fnm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: inpath,file,stripped_name,file_path,outpath.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;filename = fnm&lt;/P&gt;&lt;P&gt;filetype = 'DAT'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;data_tab = gi_download&lt;/P&gt;&lt;P&gt;fieldnames = gi_fieldnames&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;file_open_error = 1&lt;/P&gt;&lt;P&gt;file_write_error = 2&lt;/P&gt;&lt;P&gt;invalid_filesize = 3&lt;/P&gt;&lt;P&gt;invalid_type = 4&lt;/P&gt;&lt;P&gt;no_batch = 5&lt;/P&gt;&lt;P&gt;unknown_error = 6&lt;/P&gt;&lt;P&gt;invalid_table_width = 7&lt;/P&gt;&lt;P&gt;gui_refuse_filetransfer = 8&lt;/P&gt;&lt;P&gt;customer_error = 9&lt;/P&gt;&lt;P&gt;OTHERS = 10.&lt;/P&gt;&lt;P&gt;IF sy-subrc 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;ELSE.&lt;/P&gt;&lt;P&gt;MESSAGE i003(sa) WITH 'File downloaded successfuly' fnm.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 07:52:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-excel/m-p/3215658#M766738</guid>
      <dc:creator>rahul2000</dc:creator>
      <dc:date>2008-01-07T07:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Report excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-excel/m-p/3215659#M766739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can use the FM&lt;/P&gt;&lt;P&gt;SAP_CONVERT_TO_XLS_FORMAT&lt;/P&gt;&lt;P&gt;to convert itab data to excel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this module to send an internal table in excel format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more solutions  check thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[ thread|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="692619"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 07:53:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-excel/m-p/3215659#M766739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T07:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Report excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-excel/m-p/3215660#M766740</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;OLE is Object Link Enabling.&lt;/P&gt;&lt;P&gt;Here u can play with MS word or Excel at the Frontend using SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can uplaod data from Excel and Download it into another or same excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: xlsfile(64) type c default&lt;/P&gt;&lt;P&gt;            'C:ptmatrix.xls'.&lt;/P&gt;&lt;P&gt;tables usr03.&lt;/P&gt;&lt;P&gt;data: users like usr03 occurs 100 with header line&lt;/P&gt;&lt;P&gt;     ,items type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants: ok type i value 0.&lt;/P&gt;&lt;P&gt;include ole2incl.&lt;/P&gt;&lt;P&gt;data: excel     type ole2_object,&lt;/P&gt;&lt;P&gt;      workbook  type ole2_object,&lt;/P&gt;&lt;P&gt;      sheet     type ole2_object,&lt;/P&gt;&lt;P&gt;      cell      type ole2_object,&lt;/P&gt;&lt;P&gt;      row       type ole2_object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Create an Excel object and start Excel.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   create object excel 'EXCEL.APPLICATION'.&lt;/P&gt;&lt;P&gt;   if sy-subrc ne ok.&lt;/P&gt;&lt;P&gt;     message i000 with sy-msgli.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Create an Excel workbook Object.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   call method  of excel 'WORKBOOKS' = workbook .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Put Excel in background&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   set property of excel 'VISIBLE' = 0 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Collect the data to the transfer.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   select * from usr03 into table users.&lt;/P&gt;&lt;P&gt;   describe table users lines items.&lt;/P&gt;&lt;P&gt;   check items &amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Put Excel in front.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   set property of excel 'VISIBLE' = 1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Transfer the header line to Excel.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   call method  of workbook&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       'NEW'  EXPORTING #1 = XLSFILE.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       'OPEN'  exporting #1 = xlsfile.&lt;/P&gt;&lt;P&gt;   call method  of excel     'RANGE' = cell exporting #1 = 'A1'.&lt;/P&gt;&lt;P&gt;   set property of cell      'VALUE' = 'BNAME' .&lt;/P&gt;&lt;P&gt;   call method  of excel     'RANGE' = cell exporting #1 = 'B1'.&lt;/P&gt;&lt;P&gt;   set property of cell      'VALUE' = 'NAME1' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Transfer the internal table values to Excel&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   loop at users.&lt;/P&gt;&lt;P&gt;     call method of excel 'ROWS' = row  exporting #1 = '2' .&lt;/P&gt;&lt;P&gt;     call method of row 'INSERT' no flush.&lt;/P&gt;&lt;P&gt;     call method of excel 'RANGE' = cell no flush exporting #1 = 'A2' .&lt;/P&gt;&lt;P&gt;     set property of cell 'VALUE' = users-bname no flush.&lt;/P&gt;&lt;P&gt;     call method of excel 'RANGE' = cell no flush exporting #1 = 'B2' .&lt;/P&gt;&lt;P&gt;     set property of cell 'VALUE' = users-name1 no flush.&lt;/P&gt;&lt;P&gt;   endloop.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; release and exit Excel.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   call method of excel 'SAVE'.&lt;/P&gt;&lt;P&gt;   call method of excel 'QUIT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Free all objects&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   free object cell.&lt;/P&gt;&lt;P&gt;   free object workbook.&lt;/P&gt;&lt;P&gt;   free object excel.&lt;/P&gt;&lt;P&gt;   excel-handle = -1.&lt;/P&gt;&lt;P&gt;   free object row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reward if helpful&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Preeti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 07:57:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-excel/m-p/3215660#M766740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T07:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Report excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-excel/m-p/3215661#M766741</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;You have many options.&lt;/P&gt;&lt;P&gt;1 There are some function modults.&lt;/P&gt;&lt;P&gt;2. using menu mainter also u can send the report output to excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT 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 'Suresh',&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 = 'KOTHUR SREEKANTH REDDY'.&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..........................&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;t_sema-col_no = 1.&lt;/P&gt;&lt;P&gt;t_sema-col_typ = 'STR'.&lt;/P&gt;&lt;P&gt;t_sema-col_ops = 'DFT'.&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 = 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>Mon, 07 Jan 2008 08:50:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-excel/m-p/3215661#M766741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T08:50:29Z</dc:date>
    </item>
  </channel>
</rss>

