<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ABAP Tutorials &#187; Download</title>
	<atom:link href="http://www.abap-tutorials.com/tag/download/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.abap-tutorials.com</link>
	<description>ABAP Tutorials, Guides, Training, Manuals</description>
	<lastBuildDate>Thu, 17 Nov 2011 07:43:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>SAP ABAP Transferring Internal Table Contents to a file on the Application Server</title>
		<link>http://www.abap-tutorials.com/2011/07/01/sap-abap-transferring-internal-table-contents-to-a-file-on-the-application-server/</link>
		<comments>http://www.abap-tutorials.com/2011/07/01/sap-abap-transferring-internal-table-contents-to-a-file-on-the-application-server/#comments</comments>
		<pubDate>Fri, 01 Jul 2011 11:56:36 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ABAP]]></category>
		<category><![CDATA[Report]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[Upload Download]]></category>
		<category><![CDATA[application server]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[download data]]></category>
		<category><![CDATA[download file]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[flat file]]></category>
		<category><![CDATA[presentation server]]></category>

		<guid isPermaLink="false">http://www.abap-tutorials.com/?p=1884</guid>
		<description><![CDATA[In SAP ABAP you can transfer the contents of the internal table to a file. This is required when you wish to extract data from SAP tables into a flat file. This file can then be used to transfer data to another SAP or NON SAP system. This can also be used for an interfacing [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">In SAP ABAP you can transfer the contents of the internal table to a file. This is required when you wish to extract data from SAP tables into a flat file.</p>
<p style="text-align: justify;">This file can then be used to transfer data to another SAP or NON SAP system. This can also be used for an interfacing when you wish to transfer data on a daily or a weekly basis from R/3 to NON R/3 or SAP.</p>
<div style="width: 100%; float: left;">
<p style="text-align: justify;"><a href="http://www.abap-tutorials.com/wp-content/uploads/2011/07/download.jpg"><img class="aligncenter size-medium wp-image-1887" title="download" src="http://www.abap-tutorials.com/wp-content/uploads/2011/07/download-300x225.jpg" alt="download" width="300" height="225" /></a></p>
</div>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;">The command used to create a file on the application server is as follows.</p>
<p><span id="more-1884"></span></p>
<p><strong>OPEN DATASET</strong></p>
<p style="text-align: justify;">Download the sample code : <a href="http://www.abap-tutorials.com/wp-content/uploads/2011/07/download_to_app_server.txt">download_internal_table_to_app_server</a></p>
<p style="text-align: justify;">Once the file is downloaded to the Application Server, user can use the T-Code <strong>CG3y, </strong>to download the file from Application Server to Presentation Server.</p>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2011/08/06/upload-file-from-application-server-into-abap-internal-table-in-sa/' rel='bookmark' title='Upload File from Application Server into ABAP Internal Table in SAP'>Upload File from Application Server into ABAP Internal Table in SAP</a></li>
<li><a href='http://www.abap-tutorials.com/2009/11/18/abap-program-to-create-formatted-excel-using-xml/' rel='bookmark' title='ABAP program to create Formatted Excel File using XML'>ABAP program to create Formatted Excel File using XML</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/11/best-way-to-loop-at-standard-internal-table/' rel='bookmark' title='Best way to Loop At &#8216;Standard&#8217; Internal Table in ABAP'>Best way to Loop At &#8216;Standard&#8217; Internal Table in ABAP</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2011/07/01/sap-abap-transferring-internal-table-contents-to-a-file-on-the-application-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ABAP HR program to download Employee data</title>
		<link>http://www.abap-tutorials.com/2009/12/11/abap-hr-program-to-download-employee-data/</link>
		<comments>http://www.abap-tutorials.com/2009/12/11/abap-hr-program-to-download-employee-data/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 07:12:31 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ABAP HR]]></category>
		<category><![CDATA[Function Modules]]></category>
		<category><![CDATA[Report]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[Upload Download]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[employee data]]></category>
		<category><![CDATA[logical database]]></category>
		<category><![CDATA[PNP]]></category>

		<guid isPermaLink="false">http://www.abap-tutorials.com/?p=1153</guid>
		<description><![CDATA[Following program downloads Employee Data into Excel file(.xls). The selection criteria can be specified at the run time. It also uses Logical Database &#8216;PNP&#8217; ( to be specified in the program attributes) to retrieve various personnel data.       Program Code:   REPORT zdownempdata . INFOTYPES: 0000, 0001, 0007, 0008, 0121, 0615. NODES: pernr. TABLES: t001p. [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Following program downloads Employee Data into Excel file(.xls). The selection criteria can be specified at the run time. It also uses Logical Database &#8216;PNP&#8217; ( to be specified in the program attributes) to retrieve various personnel data.</p>
<div style="width: 100%; float: left;"><img class="aligncenter size-full wp-image-1154" title="download_empl_data" src="http://www.abap-tutorials.com/wp-content/uploads/2009/12/download_empl_data.jpg" alt="download_empl_data" width="614" height="445" /></div>
<p> </p>
<p style="text-align: justify;"> </p>
<p style="text-align: justify;"><span id="more-1153"></span></p>
<p style="text-align: justify;"> </p>
<p style="text-align: justify;"><strong><span style="color: #3366ff;">Program Code: </span></strong></p>
<p> </p>
<pre lang="ABAP">REPORT  zdownempdata  .

INFOTYPES: 0000, 0001, 0007, 0008, 0121, 0615.
NODES: pernr.
TABLES: t001p.

TYPES: BEGIN OF t_employee,
*        INCLUDE STRUCTURE hrms_biw_io_occupancy.
  begda	TYPE begda,
  endda	TYPE endda,
  pernr	TYPE pernr_d,
  rfpnr	TYPE rfpnr,
  bukrs	TYPE bukrs,
  werks	TYPE persa,
  btrtl	TYPE btrtl,
  persg	TYPE persg,
  persk	TYPE persk,
  orgeh	TYPE orgeh,
  stell	TYPE stell,
  plans	TYPE plans,
  kokrs	TYPE mast_coar,
  kostl	TYPE mast_cctr,
  abkrs	TYPE abkrs,
  molga	TYPE molga,
  trfar	TYPE trfar,
  trfgb	TYPE trfgb,
  trfkz	TYPE trfkz,
  trfgr	TYPE trfgr,
  trfst	TYPE trfst,
  bsgrd	TYPE bsgrd,
  ansal	TYPE ansal_15,
  ancur	TYPE ancur,
  empct	TYPE empct,
  stat2	TYPE stat2,
  ncsdate     TYPE hiredate,
  sltyp	TYPE p_sltyp,
  slreg	TYPE p_slreg,
  slgrp	TYPE p_slgrp,
  sllev	TYPE p_sllvl,
  ansvh	TYPE ansvh,
  vdsk1	TYPE vdsk1,
  sname	TYPE smnam,
 END OF t_employee.
DATA: it_employee TYPE STANDARD TABLE OF t_employee INITIAL SIZE 0,
      wa_employee TYPE t_employee.

TYPES: BEGIN OF t_emptexts,
*        INCLUDE STRUCTURE hrms_bw_txt_employee.
  DATEFROM  TYPE RSDATEFROM,
  DATETO  TYPE RSDATETO,
  PERNR	TYPE PERSNO,
  TXTMD	TYPE EMNAM,
 END OF t_emptexts.
DATA: it_emptexts TYPE STANDARD TABLE OF t_emptexts INITIAL SIZE 0,
      wa_emptexts TYPE t_emptexts.

TYPES: BEGIN OF t_contract,
*        INCLUDE STRUCTURE pa0615.
  pernr TYPE p0615-pernr,
  begda TYPE p0615-begda,
  endda TYPE p0615-endda,
  aedtm TYPE p0615-aedtm,
  ctype TYPE p0615-ctype,
  cbeg  TYPE p0615-cbeg,
  cend  TYPE p0615-cend,
 END OF t_contract.
DATA: it_contract TYPE STANDARD TABLE OF t_contract INITIAL SIZE 0,
      wa_contract TYPE t_contract.

DATA: it_tabemp TYPE filetable,
      gd_subrcemp TYPE i,
      it_tabempt TYPE filetable,
      gd_subrcempt TYPE i,
      it_tabcont TYPE filetable,
      gd_subrccont TYPE i.

DATA: gd_downfile TYPE string.

SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-001.
PARAMETERS: p_emp   LIKE rlgrap-filename,
            p_empt  LIKE rlgrap-filename,
            p_cont LIKE rlgrap-filename.
SELECTION-SCREEN END OF BLOCK block1.

***********************************************************************
*at selection-screen
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_emp.

  REFRESH: it_tabemp.
  CALL METHOD cl_gui_frontend_services=&gt;file_open_dialog
    EXPORTING
      window_title      = 'Select File'
      default_filename  = '*.xls'
      initial_directory = 'C:\'
      multiselection    = ' '  "No multiple selection
    CHANGING
      file_table        = it_tabemp
      rc                = gd_subrcemp.

  LOOP AT it_tabemp INTO p_emp.
  ENDLOOP.

***********************************************************************
*at selection-screen
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_empt.

  REFRESH: it_tabemp.
  CALL METHOD cl_gui_frontend_services=&gt;file_open_dialog
    EXPORTING
      window_title      = 'Select File'
      default_filename  = '*.xls'
      initial_directory = 'C:\'
      multiselection    = ' '  "No multiple selection
    CHANGING
      file_table        = it_tabempt
      rc                = gd_subrcempt.

  LOOP AT it_tabempt INTO p_empt.
  ENDLOOP.

***********************************************************************
*at selection-screen
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_cont.

  REFRESH: it_tabcont.
  CALL METHOD cl_gui_frontend_services=&gt;file_open_dialog
    EXPORTING
      window_title      = 'Select File'
      default_filename  = '*.xls'
      initial_directory = 'C:\'
      multiselection    = ' '  "No multiple selection
    CHANGING
      file_table        = it_tabcont
      rc                = gd_subrccont.

  LOOP AT it_tabcont INTO p_cont.
  ENDLOOP.

************************************************************************
*START-OF-SELECTION.
START-OF-SELECTION.

GET pernr.
* Selecting the latest infotype record
  rp_provide_from_last p0000 space pn-begda pn-endda.
  rp_provide_from_last p0001 space pn-begda pn-endda.
  rp_provide_from_last p0007 space pn-begda pn-endda.
  rp_provide_from_last p0008 space pn-begda pn-endda.
  rp_provide_from_last p0121 space pn-begda pn-endda.
  rp_provide_from_last p0615 space pn-begda pn-endda.

  MOVE-CORRESPONDING p0001 TO wa_employee.
  wa_employee-rfpnr = p0121-rfp01. "?????

  MOVE-CORRESPONDING p0007 TO wa_employee.
  MOVE-CORRESPONDING p0008 TO wa_employee.
  MOVE-CORRESPONDING p0000 TO wa_employee.

  SELECT SINGLE molga
    FROM t001p
    INTO wa_employee-molga
   WHERE werks EQ p0001-werks AND
         btrtl EQ p0001-btrtl.

  SELECT SINGLE trfkz
    FROM t503
    INTO wa_employee-trfkz
   WHERE persg EQ p0001-persg AND
         persk EQ p0001-persk.

  CALL FUNCTION 'HR_ENTRY_DATE'
    EXPORTING
      persnr                     = pernr-pernr
*   RCLAS                      =
*   BEGDA                      = '18000101'
*   ENDDA                      = '99991231'
*   VARKY                      =
   IMPORTING
      entrydate                  = wa_employee-ncsdate
* TABLES
*   ENTRY_DATES                =
 EXCEPTIONS
   ENTRY_DATE_NOT_FOUND       = 1
   PERNR_NOT_ASSIGNED         = 2
   OTHERS                     = 3
            .
  IF sy-subrc &lt;&gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

* append employee data
  APPEND wa_employee TO it_employee.
  CLEAR: wa_employee.

  wa_emptexts-datefrom = p0001-begda.
  wa_emptexts-dateto   = p0001-endda.
  wa_emptexts-pernr    = p0001-pernr.
  wa_emptexts-txtmd    = p0001-ename.

* append employee texts data
  APPEND wa_emptexts TO it_emptexts.
  CLEAR: wa_emptexts.

  MOVE-CORRESPONDING p0615 TO wa_contract.
* append employee contract data
  APPEND wa_contract TO it_contract.
  CLEAR: wa_contract.

************************************************************************
*END-OF-SELECTION.
END-OF-SELECTION.

* download employee data
  IF NOT p_emp IS INITIAL.
    gd_downfile = p_emp.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename              = gd_downfile
        filetype              = 'ASC'
        write_field_separator = 'X'
      TABLES
        data_tab              = it_employee.
    IF sy-subrc EQ 0.
      WRITE:/ 'Employee file downloaded to',
              gd_downfile.
    ELSE.
      WRITE:/ 'There was an error downloading Employee file to',
              gd_downfile.
    ENDIF.
  ENDIF.

* download employee texts data
  IF NOT p_empt IS INITIAL.
    gd_downfile = p_empt.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename              = gd_downfile
        filetype              = 'ASC'
        write_field_separator = 'X'
      TABLES
        data_tab              = it_emptexts.
    IF sy-subrc EQ 0.
      WRITE:/ 'Employee text file downloaded to',
              gd_downfile.
    ELSE.
      WRITE:/ 'There was an error downloading Employee text file to',
              gd_downfile.
    ENDIF.
  ENDIF.

* download contract data
  IF NOT p_cont IS INITIAL.
    gd_downfile = p_cont.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename              = gd_downfile
        filetype              = 'ASC'
        write_field_separator = 'X'
      TABLES
        data_tab              = it_contract.
    IF sy-subrc EQ 0.
      WRITE:/ 'Employee contract file downloaded to',
              gd_downfile.
    ELSE.
WRITE:/ 'There was an error downloading Employee contract file to',
              gd_downfile.
    ENDIF.
  ENDIF.</pre>
<p> </p>
<p>Before execution the program, browse for the file path and provide file name for files Employee Data, Employee Data Texts, and Employee Contract Data.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-1158" title="download_empl_data2" src="http://www.abap-tutorials.com/wp-content/uploads/2009/12/download_empl_data2.jpg" alt="download_empl_data2" width="450" height="335" /></p>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2009/11/20/macros-in-abap-hr-programming-i/' rel='bookmark' title='Macros in ABAP-HR Programming &#8211; I'>Macros in ABAP-HR Programming &#8211; I</a></li>
<li><a href='http://www.abap-tutorials.com/2009/12/07/maintain-hr-report-category/' rel='bookmark' title='Create HR Report Category in SAP'>Create HR Report Category in SAP</a></li>
<li><a href='http://www.abap-tutorials.com/2010/05/25/bdc-to-insert-wage-type-in-infotype-0008/' rel='bookmark' title='BDC to insert Wage Type in Infotype 0008 (Basic Pay)'>BDC to insert Wage Type in Infotype 0008 (Basic Pay)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2009/12/11/abap-hr-program-to-download-employee-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Download your SAP work II</title>
		<link>http://www.abap-tutorials.com/2009/07/20/download-your-sap-work-ii/</link>
		<comments>http://www.abap-tutorials.com/2009/07/20/download-your-sap-work-ii/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 05:52:13 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ABAP]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[Upload Download]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[modules]]></category>
		<category><![CDATA[program]]></category>
		<category><![CDATA[screens]]></category>

		<guid isPermaLink="false">http://naveenvishal.wordpress.com/?p=310</guid>
		<description><![CDATA[Mass Download is the successor to Direct Download, the same basic idea but with a totally new code base. New version 1.4.4 of Mass Download is now available having new features and bug fixes. The enhancements to the older version (1.3.1) are: 1.4.4 Fixed &#8211; Function includes were not found if prefaced by a namespace. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Mass Download</strong> is the successor to Direct Download, the same basic idea but with a totally new code base. New version 1.4.4 of Mass Download is now available having new features and bug fixes.</p>
<div id="attachment_311" class="wp-caption aligncenter" style="width: 460px"><img class="size-full wp-image-311" title="Mass Download - Initial Screen" src="http://naveenvishal.files.wordpress.com/2009/07/md-param-large.gif" alt="Mass Download - Initial Screen" width="450" height="526" /><p class="wp-caption-text">Mass Download - Initial Screen</p></div>
<p><span id="more-310"></span></p>
<p>The enhancements to the older version (1.3.1) are:</p>
<div>
<div>1.4.4</div>
<div>Fixed &#8211; Function includes were not found if prefaced by a namespace.<br />
Fixed &#8211; Methods are now linked to from the downloaded class.</div>
</div>
<div>
<div>1.4.3</div>
<div>Fixed &#8211; Removed hard coded breakpoint.<br />
Fixed &#8211; Methods in BAdi&#8217;s were not being downloaded if the BAdi name was longer than expected.<br />
Improved &#8211; Dictionary objects are now stored within one directory, multiple versions of the same objects are no longer written to the file system.</div>
</div>
<div>
<div>1.4.2</div>
<div>Fixed &#8211; Long runtime when downloading large function groups.<br />
Fixed &#8211; Global class methods were not being downloaded if they belonged to an interface.</div>
</div>
<div>
<div>1.4.1</div>
<div>Fixed &#8211; White space was missing in comment sections.<br />
Improved &#8211; Compatibility with 6.20 systems.</div>
</div>
<div>
<div>1.4</div>
<div>Fixed &#8211; Avoid possible automation error whilst picking a filename &#8211; Reported by Nuno Dionisio.<br />
Fixed &#8211; Wrong methods being downloaded for scanned class<br />
Fixed &#8211; Some dictionary structures were being skipped. Fixed &#8211; Redefined methods were being downloaded but without the code in them &#8211; reported by Walter Pointner.<br />
Improved &#8211; HTML output is now XHTML &amp; CSS compliant and complies with the W3C specification.<br />
Improved &#8211; HTML output now has a new look and feel.</div>
<div><strong>Download Link :</strong></div>
<div><a href="http://www.dalestech.com/products/massdownload.htm">http://www.dalestech.com/products/massdownload.htm</a></div>
</div>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2009/07/09/download-your-sap-work-i/' rel='bookmark' title='ABAP Program to Download your SAP work I'>ABAP Program to Download your SAP work I</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/20/saplink-share-your-developments/' rel='bookmark' title='SAPlink &#8211; Share your developments'>SAPlink &#8211; Share your developments</a></li>
<li><a href='http://www.abap-tutorials.com/2009/12/11/abap-hr-program-to-download-employee-data/' rel='bookmark' title='ABAP HR program to download Employee data'>ABAP HR program to download Employee data</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2009/07/20/download-your-sap-work-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ABAP Program to Download your SAP work I</title>
		<link>http://www.abap-tutorials.com/2009/07/09/download-your-sap-work-i/</link>
		<comments>http://www.abap-tutorials.com/2009/07/09/download-your-sap-work-i/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 09:47:27 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ABAP]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[Upload Download]]></category>
		<category><![CDATA[Utility]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[modules]]></category>
		<category><![CDATA[program]]></category>
		<category><![CDATA[programs]]></category>
		<category><![CDATA[reports]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[screens]]></category>
		<category><![CDATA[tables]]></category>

		<guid isPermaLink="false">http://naveenvishal.wordpress.com/?p=34</guid>
		<description><![CDATA[You might also be interested in these posts:Download your SAP work II ABAP HR program to download Employee data ABAP Program for Table Maintenance in SAP]]></description>
			<content:encoded><![CDATA[You might also be interested in these posts:Download your SAP work II ABAP HR program to download Employee data ABAP Program for Table Maintenance in SAP]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2009/07/09/download-your-sap-work-i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

