<?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: CL_BCS...: Mail Header Fields? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-bcs-mail-header-fields/m-p/9148519#M1710147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Venkat&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a really nice idea! If I would have the time, I'd implement it. Unfortunately the fix must be ready tonight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We've decided on a quick fix: filter the incoming mails with subjects starting with "Automatic reply:"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Dec 2012 13:26:57 GMT</pubDate>
    <dc:creator>UweFetzer_se38</dc:creator>
    <dc:date>2012-12-05T13:26:57Z</dc:date>
    <item>
      <title>CL_BCS...: Mail Header Fields?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-bcs-mail-header-fields/m-p/9148515#M1710143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello collegues,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Background:&lt;/P&gt;&lt;P&gt;On one hand we send emails to a large group of users (Solution Manager ITSM). As response the users can answer to these mails. The content of the answer will be stored in Solman tickets via a Mail-In interface.&lt;/P&gt;&lt;P&gt;The problem now is, that also ie. "Out-of-Office" notices are stored in the tickets. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two possible solutions (will work in Exchange environment at least): &lt;/P&gt;&lt;P&gt;- outgoing: usage of Mail header field "X-Auto-Response-Suppress" -&amp;gt; no automatic "Out-of-Office" mail will be created&lt;/P&gt;&lt;P&gt;- inbound: read "X-Auto-Response-Suppress" header field (already in all "Out-of-Office" mails) -&amp;gt; ignore mail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem: I couldn't find a solution yet to read/set any Mail header fields.&lt;/P&gt;&lt;P&gt;Is it possible to get access to the Mail Header Fields via CL_BCS... or other workarounds?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or do you have another idea to solve this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards and Thank you&lt;/P&gt;&lt;P&gt;Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 20:02:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-bcs-mail-header-fields/m-p/9148515#M1710143</guid>
      <dc:creator>UweFetzer_se38</dc:creator>
      <dc:date>2012-12-04T20:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: CL_BCS...: Mail Header Fields?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-bcs-mail-header-fields/m-p/9148516#M1710144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know about the mail handling in SolMan, but using BCS it should be quite possible to read the mail header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not have your mail as a BCS document yet, you could easily create it if you have the MIME data.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;CL_DOCUMENT_BCS=&amp;gt;CREATE_FROM_MIME().&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now this same class does have a method&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;GET_UOBJHEAD()&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;that returns the mail header as an internal table.&lt;/P&gt;&lt;P&gt;In case you already have got a SEND_REQUEST you would first have to read the document and then cast it to CL_DOCUMENT_BCS and then get the header.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;&amp;nbsp; lr_document TYPE REF TO IF_DOCUMENT_BCS,&lt;/P&gt;&lt;P&gt;&amp;nbsp; lr_doc type ref to CL_DOCUMENT_BCS,&lt;/P&gt;&lt;P&gt;&amp;nbsp; lr_header type soli_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lr_document = send_request-&amp;gt;document( ).&lt;/P&gt;&lt;P&gt;lr_doc ?= lr_document.&lt;/P&gt;&lt;P&gt;lr_header = lr_doc-&amp;gt;getu_objhead( 1 ).&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. Have not tried the coding myself yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers Carsten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 07:59:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-bcs-mail-header-fields/m-p/9148516#M1710144</guid>
      <dc:creator>CarstenKasper</dc:creator>
      <dc:date>2012-12-05T07:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: CL_BCS...: Mail Header Fields?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-bcs-mail-header-fields/m-p/9148517#M1710145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Carsten,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unfortunately it doesn't work, the object header is always empty.&lt;/P&gt;&lt;P&gt;I don't think, that the object header contains the mail header fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Documentation of FM SO_DOCUMENT_SEND_API1 (which uses the CL_BCS.. inside)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;OBJECT_HEADER&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; This table must contain the summarized data dependent on each object&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; type. SAPscript objects store information here about forms and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; styles, for example. Excel list viewer objects store the number of&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rows and columns amongst other things and PC objects store their&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; original file name.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But thank you though&lt;/P&gt;&lt;P&gt;Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 10:24:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-bcs-mail-header-fields/m-p/9148517#M1710145</guid>
      <dc:creator>UweFetzer_se38</dc:creator>
      <dc:date>2012-12-05T10:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: CL_BCS...: Mail Header Fields?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-bcs-mail-header-fields/m-p/9148518#M1710146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Uwe, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am assuming that the Exchange server is MS Exchange server. If you are using exchange server 2010 and 2007, There are a few web services which would help you in indentifying if a sender has an Out of office or not. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at the link below,&amp;nbsp; which explains the web service operation&amp;nbsp; in detail. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;200&amp;amp;:&lt;/P&gt;&lt;P&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/exchange/aa563465(v=exchg.80).aspx"&gt;http://msdn.microsoft.com/en-us/library/exchange/aa563465(v=exchg.80).aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2010:&lt;/P&gt;&lt;P&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/exchange/aa563465(v=exchg.140).aspx"&gt;http://msdn.microsoft.com/en-us/library/exchange/aa563465(v=exchg.140).aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you would be receiving these out of office emails&amp;nbsp; , within your corporate network &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1079/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 13:20:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-bcs-mail-header-fields/m-p/9148518#M1710146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-05T13:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: CL_BCS...: Mail Header Fields?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-bcs-mail-header-fields/m-p/9148519#M1710147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Venkat&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a really nice idea! If I would have the time, I'd implement it. Unfortunately the fix must be ready tonight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We've decided on a quick fix: filter the incoming mails with subjects starting with "Automatic reply:"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 13:26:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-bcs-mail-header-fields/m-p/9148519#M1710147</guid>
      <dc:creator>UweFetzer_se38</dc:creator>
      <dc:date>2012-12-05T13:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: CL_BCS...: Mail Header Fields?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-bcs-mail-header-fields/m-p/9148520#M1710148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you can call the AS_MIME_MESSAGE of the class CL_SEND_REQUEST_BCS to get the raw inbound message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Convert this from a xstring to a string and you could parse the result to extrtact the particular fields you are interested in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham Robbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 22:25:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-bcs-mail-header-fields/m-p/9148520#M1710148</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2012-12-05T22:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: CL_BCS...: Mail Header Fields?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-bcs-mail-header-fields/m-p/9148521#M1710149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Graham, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;already tried this. In the Mime part are only additional fields like Mime-type, encoding etc. and the message itself but not the header fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I'll give up and stay with the solution like I've mentioned above (subject). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 22:38:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-bcs-mail-header-fields/m-p/9148521#M1710149</guid>
      <dc:creator>UweFetzer_se38</dc:creator>
      <dc:date>2012-12-05T22:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: CL_BCS...: Mail Header Fields?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-bcs-mail-header-fields/m-p/9148522#M1710150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That seems a bit strange because I can see these fields in this test I did with an email sent from GMail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Received: by &lt;A href="http://mail-ia0-f170.google.com" target="_blank"&gt;mail-ia0-f170.google.com&lt;/A&gt; with SMTP id i1so3038818iaa.15
 for ; Wed, 05 Dec 2012 15:49:55 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=&lt;A href="http://google.com" target="_blank"&gt;google.com&lt;/A&gt;; s=20120113;
 h=mime-version:from:date:message-id:subject:to:content-type
 :x-gm-message-state;
 bh=pTqjOOtAB3JxWjEs66IbgR85KR0WpP9YGtg/TXmUtcw=;
 b=D9mV0WNto4SZdccPOi4afI+zt09ZCDMjyfuuB+Ke3OidiwPTJXvQuEsCzZy0483D/2
 zeT+87217zawuXq1oDWRGz8yfulLTehWOYebDyMFP5LNsc0BckYbNCnZBU+xgd3UUDSS
 MLQxWa7ryBX8NoHJJIyxLMrMqWhewnURhwkZnwAlxD1tQ/eOxayivkpi8yLti/+t9FT/
 Kw46qNtXrZYgHksHsbALo/LmkSrJkwlRv2fcpsz2bLrFfBrFvGAy+PpAQf+wwyhqaCah
 ew4/krBEjWwpZFky3z1QfJUc2VO0FyLRSeftFVj2Zbmph6VW3dNccwFjgfp+PvTeG5/r
 ndpw==
Received: by 10.50.53.193 with SMTP id d1mr3914941igp.69.1354751394962; Wed,
 05 Dec 2012 15:49:54 -0800 (PST)
MIME-Version: 1.0
Received: by 10.231.147.195 with HTTP; Wed, 5 Dec 2012 15:49:34 -0800 (PST)
From: Graham Robinson Date: Thu, 6 Dec 2012 10:49:34 +1100
Message-ID: Subject: this is the subject
To: &lt;A href="mailto:wflow.test@dev.2-cliks.com" target="_blank"&gt;wflow.test@dev.2-cliks.com&lt;/A&gt;Content-Type: multipart/alternative; boundary=f46d04339b1ca7dbd304d023a37d
X-Gm-Message-State: ALoCoQmfiaWTBNtdfiQH3RFCTzkUdsd2kB+DvzZZuQGQMZfTurK2Qjox2aOGKRSJIYF28Nua7awj

--f46d04339b1ca7dbd304d023a37d
Content-Type: text/plain; charset=ISO-8859-1

This is the body

--f46d04339b1ca7dbd304d023a37d
Content-Type: text/html; charset=ISO-8859-1

This is the body&lt;BR /&gt;
--f46d04339b1ca7dbd304d023a37d--
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe MS Exchange works a different way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 23:54:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-bcs-mail-header-fields/m-p/9148522#M1710150</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2012-12-05T23:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: CL_BCS...: Mail Header Fields?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-bcs-mail-header-fields/m-p/9148523#M1710151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strange, will try again on Monday. Unfortunately Solman mail address is not reachable from outside, so can't compare with gmail.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 13:35:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-bcs-mail-header-fields/m-p/9148523#M1710151</guid>
      <dc:creator>UweFetzer_se38</dc:creator>
      <dc:date>2012-12-06T13:35:22Z</dc:date>
    </item>
  </channel>
</rss>

