<?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 data to Excel through a ABAP program run in batch mode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-excel-through-a-abap-program-run-in-batch-mode/m-p/4969747#M1158244</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   U can use the FM : XXL_FULL_API to down load the data into the XL file.&lt;/P&gt;&lt;P&gt;   But to my knowledge the file will not stored in the application server even if u run in the foreground or back ground. u can set the value for the parametr NO_START as X  or space to run in the baack ground&lt;/P&gt;&lt;P&gt;or fore goround mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The process is like this when u run the program using this FM, The file will be stored in the SAP INBOX.&lt;/P&gt;&lt;P&gt;There u can check the file after running the program in the back ground.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jan 2009 09:10:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-05T09:10:28Z</dc:date>
    <item>
      <title>Export data to Excel through a ABAP program run in batch mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-excel-through-a-abap-program-run-in-batch-mode/m-p/4969744#M1158241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  The requirement is that a ABAP report should run through background job, which will do the followiing :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   1) Collect data from predifined CRM tables ( Activity , Order for example ).&lt;/P&gt;&lt;P&gt;   2) Create a Excel file in a Application Server ( physical file server location ) location.&lt;/P&gt;&lt;P&gt;   3) Push the data collected in the step 1 to the Excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I have found 2 function modules which does the export to Excel after creating the Excel file. They are :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    a) XXL_FULL_API&lt;/P&gt;&lt;P&gt;    b) MS_EXCEL_OLE_STANDARD_DAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   But it seems that the ABAP report needs to run in the foreground ( correct me if i am wrong ) in order to create the Excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Please can anyone suggest a possible ABAP code to achieve OR how to use these FMs in background mode ?&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  The excel creation needs to be automated and send to a administrator email id every day, so the need of exporting the data in background mode arises.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Sudipta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 08:57:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-excel-through-a-abap-program-run-in-batch-mode/m-p/4969744#M1158241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T08:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Export data to Excel through a ABAP program run in batch mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-excel-through-a-abap-program-run-in-batch-mode/m-p/4969745#M1158242</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 FM XXL_FULL_API  there is a parameter NO_START its default is space try populating 'X' and it should help you to only store and not start the ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 09:02:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-excel-through-a-abap-program-run-in-batch-mode/m-p/4969745#M1158242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T09:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Export data to Excel through a ABAP program run in batch mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-excel-through-a-abap-program-run-in-batch-mode/m-p/4969746#M1158243</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 SM36, you can create a job(give your report prog name)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call the fun. module by storing all the values into final int. table it_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but u need to open one excel file in your desktop...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  v_file = 'C:\file.xls'.  " path should be like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                      = v_file&lt;/P&gt;&lt;P&gt;     filetype                      = 'xls'&lt;/P&gt;&lt;P&gt;  has_field_separator           = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_LENGTH                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  read_by_line                  = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DAT_MODE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CODEPAGE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IGNORE_CERR                   = ABAP_TRUE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  REPLACEMENT                   = '#'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CHECK_BOM                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VIRUS_SCAN_PROFILE            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILELENGTH                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                      = it_data&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   file_open_error               = 1&lt;/P&gt;&lt;P&gt;   file_read_error               = 2&lt;/P&gt;&lt;P&gt;   no_batch                      = 3&lt;/P&gt;&lt;P&gt;   gui_refuse_filetransfer       = 4&lt;/P&gt;&lt;P&gt;   invalid_type                  = 5&lt;/P&gt;&lt;P&gt;   no_authority                  = 6&lt;/P&gt;&lt;P&gt;   unknown_error                 = 7&lt;/P&gt;&lt;P&gt;   bad_data_format               = 8&lt;/P&gt;&lt;P&gt;   header_not_allowed            = 9&lt;/P&gt;&lt;P&gt;   separator_not_allowed         = 10&lt;/P&gt;&lt;P&gt;   header_too_long               = 11&lt;/P&gt;&lt;P&gt;   unknown_dp_error              = 12&lt;/P&gt;&lt;P&gt;   access_denied                 = 13&lt;/P&gt;&lt;P&gt;   dp_out_of_memory              = 14&lt;/P&gt;&lt;P&gt;   disk_full                     = 15&lt;/P&gt;&lt;P&gt;   dp_timeout                    = 16&lt;/P&gt;&lt;P&gt;   OTHERS                        = 17&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 09:07:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-excel-through-a-abap-program-run-in-batch-mode/m-p/4969746#M1158243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T09:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Export data to Excel through a ABAP program run in batch mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-excel-through-a-abap-program-run-in-batch-mode/m-p/4969747#M1158244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   U can use the FM : XXL_FULL_API to down load the data into the XL file.&lt;/P&gt;&lt;P&gt;   But to my knowledge the file will not stored in the application server even if u run in the foreground or back ground. u can set the value for the parametr NO_START as X  or space to run in the baack ground&lt;/P&gt;&lt;P&gt;or fore goround mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The process is like this when u run the program using this FM, The file will be stored in the SAP INBOX.&lt;/P&gt;&lt;P&gt;There u can check the file after running the program in the back ground.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 09:10:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-excel-through-a-abap-program-run-in-batch-mode/m-p/4969747#M1158244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T09:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Export data to Excel through a ABAP program run in batch mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-excel-through-a-abap-program-run-in-batch-mode/m-p/4969748#M1158245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sudipta...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know how to download into excel in background....but may be you can try this..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In background mode, the system field SY-BATCH is set to 'X'.... so check for this and use CALL TRANSACTION statement and call the tcode '%PC', and try using SET or GET PARAMETER to set the radiobutton .. to SPREADSHEET...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This transaction is generally used to download the ALV data into EXCEL file....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 09:26:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-excel-through-a-abap-program-run-in-batch-mode/m-p/4969748#M1158245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T09:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Export data to Excel through a ABAP program run in batch mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-excel-through-a-abap-program-run-in-batch-mode/m-p/4969749#M1158246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Thanks for the reply. But the requirement is to create the Excel file automatically , as the whole process will be run as a background job every day .&lt;/P&gt;&lt;P&gt;  How to go about it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sudipta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 09:59:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-to-excel-through-a-abap-program-run-in-batch-mode/m-p/4969749#M1158246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T09:59:57Z</dc:date>
    </item>
  </channel>
</rss>

