<?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 Introducing an error log into existing application in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/introducing-an-error-log-into-existing-application/m-p/8787189#M1678845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an existing application that uses an engine. This engine (= function module) triggers messages of type S and E. &lt;/P&gt;&lt;P&gt;We now wanna offer a new UI (ABAP Dynpro) within that application, on this new UI all the messages from the engine shall be shown after a click at the "Error Log" button only.&lt;/P&gt;&lt;P&gt;Means I somehow have to force the system to not bring up a message directly on the UI, but to collect the message in an log (Apllication Log?). &lt;/P&gt;&lt;P&gt;I wanna do this without enhancing all the message statements in the engine!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found some information about a similar behavior during background processing:&lt;/P&gt;&lt;UL&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 10pt;"&gt;A message is not displayed, but instead is written as follows to the &lt;SPAN style="background: yellow;"&gt;background processing log (Joblog)&lt;/SPAN&gt; depending on the message type: &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; background: yellow; font-size: 10pt;"&gt;Messages of type "S" are written to the log and the program is continued. &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN"&gt;Messages of type "I" and "W" are written to the log&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 10pt;"&gt; and the program is continued. The user input Enter, which is required to continue the program, is generated automatically. &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 10pt;"&gt;Messages of type "E" and "A" are written to the log. A check is then performed and if applicable, the message is handled with &lt;A _jive_internal="true" href="https://answers.sap.com/community/sapevent:ABAPCALL_FUNCTION_PARAMETER"&gt;&lt;SPAN style="color: blue;"&gt;error_message&lt;/SPAN&gt;&lt;/A&gt;. If this is not the case, the message is also written to the log ....&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN"&gt;Is there anybody having an idea how I could introduce such &lt;/SPAN&gt;﻿log?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks! &lt;/P&gt;&lt;P&gt;Kerstin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 May 2012 15:36:02 GMT</pubDate>
    <dc:creator>kerstin_hambrecht</dc:creator>
    <dc:date>2012-05-29T15:36:02Z</dc:date>
    <item>
      <title>Introducing an error log into existing application</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/introducing-an-error-log-into-existing-application/m-p/8787189#M1678845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an existing application that uses an engine. This engine (= function module) triggers messages of type S and E. &lt;/P&gt;&lt;P&gt;We now wanna offer a new UI (ABAP Dynpro) within that application, on this new UI all the messages from the engine shall be shown after a click at the "Error Log" button only.&lt;/P&gt;&lt;P&gt;Means I somehow have to force the system to not bring up a message directly on the UI, but to collect the message in an log (Apllication Log?). &lt;/P&gt;&lt;P&gt;I wanna do this without enhancing all the message statements in the engine!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found some information about a similar behavior during background processing:&lt;/P&gt;&lt;UL&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 10pt;"&gt;A message is not displayed, but instead is written as follows to the &lt;SPAN style="background: yellow;"&gt;background processing log (Joblog)&lt;/SPAN&gt; depending on the message type: &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; background: yellow; font-size: 10pt;"&gt;Messages of type "S" are written to the log and the program is continued. &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN"&gt;Messages of type "I" and "W" are written to the log&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 10pt;"&gt; and the program is continued. The user input Enter, which is required to continue the program, is generated automatically. &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 10pt;"&gt;Messages of type "E" and "A" are written to the log. A check is then performed and if applicable, the message is handled with &lt;A _jive_internal="true" href="https://answers.sap.com/community/sapevent:ABAPCALL_FUNCTION_PARAMETER"&gt;&lt;SPAN style="color: blue;"&gt;error_message&lt;/SPAN&gt;&lt;/A&gt;. If this is not the case, the message is also written to the log ....&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN"&gt;Is there anybody having an idea how I could introduce such &lt;/SPAN&gt;﻿log?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks! &lt;/P&gt;&lt;P&gt;Kerstin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 15:36:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/introducing-an-error-log-into-existing-application/m-p/8787189#M1678845</guid>
      <dc:creator>kerstin_hambrecht</dc:creator>
      <dc:date>2012-05-29T15:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Introducing an error log into existing application</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/introducing-an-error-log-into-existing-application/m-p/8787190#M1678846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Kerstin Hambrecht wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Means I somehow have to force the system to not bring up a message directly on the UI, but to collect the message in an log (Apllication Log?). &lt;/P&gt;&lt;P&gt;I wanna do this without enhancing all the message statements in the engine!!&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I think you'll have to enhance the messaages so that they are not written, but collected instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 15:50:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/introducing-an-error-log-into-existing-application/m-p/8787190#M1678846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-29T15:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Introducing an error log into existing application</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/introducing-an-error-log-into-existing-application/m-p/8787191#M1678847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerstin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In most RFC's you have the return parameter, which will hold all the messages generated.&lt;/P&gt;&lt;P&gt;I am guessing you don't have that privilege. If the FM is trigerring the messages using MESSAGE keyword, then it will display this in the screen. You will have to disable this and add all the messages in a Return table as BAPIRET table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Shambu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 16:06:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/introducing-an-error-log-into-existing-application/m-p/8787191#M1678847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-29T16:06:08Z</dc:date>
    </item>
  </channel>
</rss>

