<?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: email in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/email/m-p/3976928#M949844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to write ABAP to do that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- select the data&lt;/P&gt;&lt;P&gt;- open dataset&lt;/P&gt;&lt;P&gt;- call the function module to send the mail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jun 2008 17:45:25 GMT</pubDate>
    <dc:creator>markus_doehr2</dc:creator>
    <dc:date>2008-06-23T17:45:25Z</dc:date>
    <item>
      <title>email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email/m-p/3976927#M949843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i need to create a report that will fetch some data from a custom table and then a csv file is created with this information.&lt;/P&gt;&lt;P&gt;a batch job is run daily to check for new entries in this file.for any new entries a email is sent to a particular address with this text file as attachment?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can we do this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 17:41:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email/m-p/3976927#M949843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T17:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email/m-p/3976928#M949844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to write ABAP to do that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- select the data&lt;/P&gt;&lt;P&gt;- open dataset&lt;/P&gt;&lt;P&gt;- call the function module to send the mail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 17:45:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email/m-p/3976928#M949844</guid>
      <dc:creator>markus_doehr2</dc:creator>
      <dc:date>2008-06-23T17:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email/m-p/3976929#M949845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, this program generates a flat file in the application server DEV and execute an external program to send an email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fields are separated by '~'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The external program can be change by a function module to send an email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can run daily as a background job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZFILEMATERIALS.&lt;/P&gt;&lt;P&gt;tables: marc.&lt;/P&gt;&lt;P&gt;data: begin of it_marc occurs 0,&lt;/P&gt;&lt;P&gt;         matnr like marc-matnr, "material&lt;/P&gt;&lt;P&gt;         AUSDT like MARC-AUSDT, "Effective-Out Date&lt;/P&gt;&lt;P&gt;         NFMAT like MARC-NFMAT, "Follow-up material&lt;/P&gt;&lt;P&gt;         end of it_marc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:regsal type string.&lt;/P&gt;&lt;P&gt;DATA:  hlp_date   TYPE d.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of tabl occurs 500,&lt;/P&gt;&lt;P&gt;        line(400),&lt;/P&gt;&lt;P&gt;      end of tabl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lines type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: file(190)  type c DEFAULT&lt;/P&gt;&lt;P&gt;  '&lt;BR /&gt;DEV\Materials.txt' OBLIGATORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS P_mdm LIKE RLGRAP-FILENAME OBLIGATORY&lt;/P&gt;&lt;P&gt; default '"c:\program files\MAIL\mail.exe"'.&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;*Fill internal table:&lt;/P&gt;&lt;P&gt;  select  matnr AUSDT NFMAT into corresponding fields of table&lt;/P&gt;&lt;P&gt;    it_marc from marc where ausdt &amp;gt;= sy-datum and&lt;/P&gt;&lt;P&gt;    ausdt &amp;lt;= sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*create the flat file&lt;/P&gt;&lt;P&gt;try.&lt;/P&gt;&lt;P&gt;  OPEN DATASET file FOR OUTPUT IN TEXT MODE ENCODING NON-UNICODE.&lt;/P&gt;&lt;P&gt;*Create flat file&lt;/P&gt;&lt;P&gt;  loop at it_marc.&lt;/P&gt;&lt;P&gt;    concatenate it_marc-matnr it_marc-NFMAT C_DATE into regsal&lt;/P&gt;&lt;P&gt;      separated by '~'.&lt;/P&gt;&lt;P&gt;    transfer regsal to file.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;  close dataset file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;catch CX_SY_FILE_AUTHORITY CX_SY_FILE_OPEN CX_SY_FILE_OPEN_MODE.&lt;/P&gt;&lt;P&gt;  MESSAGE 'File access error, please verify'  TYPE 'I'.&lt;/P&gt;&lt;P&gt;  leave program.&lt;/P&gt;&lt;P&gt;endtry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Lunch  external program&lt;/P&gt;&lt;P&gt;if not it_marc[] is initial.&lt;/P&gt;&lt;P&gt;  refresh tabl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call 'SYSTEM' id 'COMMAND' field P_mdm&lt;/P&gt;&lt;P&gt;                id 'TAB'     field tabl[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  describe table tabl lines lines.&lt;/P&gt;&lt;P&gt;  loop at tabl.&lt;/P&gt;&lt;P&gt;    write:/01 tabl-line.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;  skip 2.&lt;/P&gt;&lt;P&gt;  if lines = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   write:/ 'NO Occurances were found'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    write:/ 'Command was successfully executed' color col_total.&lt;/P&gt;&lt;P&gt;    write:/ 'Number of entries in Search' color col_total,&lt;/P&gt;&lt;P&gt;             lines color 6.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*End lunch&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 19:58:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email/m-p/3976929#M949845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T19:58:42Z</dc:date>
    </item>
  </channel>
</rss>

