<?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: Http request handler - Application log (SLG1) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/http-request-handler-application-log-slg1/m-p/11080220#M1901828</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;"&gt;Konstantinos,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is quite strange. If I understood how you have done the coding, correctly, it seems there is some database rollback happening in between your Application Log Update and sending the response back . When you don't have the code to send the response back the data is getting updated as RFC call is issuing the COMMIT automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am guessing you are using BAL_LOG_CREATE/BAL_DB_SAVE FMs to update your application log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so , and if possible to debug I will approach the issue like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Long way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I will debug until BAL_DB_SAVE calls the FM BAL_DB_INTERNAL_NO_UPDATE_TASK in which the tables BALDAT and BALHDR are updated via INSERT/UPDATE statement. After the statement since there will be implicit COMMIT due to INSERT/UPDATE the data will be shown via SE16/SE16N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Then I will execute the following steps where we are sending the response and doing F6 in each Method call and see if the data is getting disappeared. or not to find out the reason for rollback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Short way ( May work actually ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Trying to pass&amp;nbsp; I_2TH_CONNECTION and&amp;nbsp; I_2TH_CONNECT_COMMIT eq ABAP_TRUE in FM BAL_DB_SAVE or simply issuing COMMIT WORK after BAL_DB_SAVE. I know we do not need to issue commit in RFC calls but it can actually work sometimes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jun 2015 10:17:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-06-17T10:17:43Z</dc:date>
    <item>
      <title>Http request handler - Application log (SLG1)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/http-request-handler-application-log-slg1/m-p/11080219#M1901827</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;I have an HTTP request handler class which is used by a service defined in SICF. The request handler calls a Function Module that creates a log (application log) and at some point saves the log. Then execution returns to the http request handler which sends the response to the caller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I am facing is that afterwards if I call transaction SLG1 to see the created application log entry it is not there!! If, however, I remove from the http request handler class the code that sends the response to the caller and re-execute and then I call again transaction SLG1 the log is there!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone got any idea why this is happening? the code to send the response to the caller is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* SERVER TYPE REF TO IF_HTTP_SERVER&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HTTP Server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&amp;nbsp; lv_response &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;REF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;IF_HTTP_RESPONSE&amp;nbsp; &lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_xml_string &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;xstring&amp;nbsp; &lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S55"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lcl_cl_http_server &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;REF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;cl_http_server&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S55"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_rc &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;i.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_response &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;server&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;response&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S31"&gt;* set data of response&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;METHOD &lt;/SPAN&gt;LV_RESPONSE&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;SET_DATA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lv_xml_string&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S31"&gt;* widening cast&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; lcl_cl_http_server ?= server&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CLEAR&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;lv_rc&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;METHOD &lt;/SPAN&gt;lcl_cl_http_server&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;SEND_RESPONSE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RECEIVING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RC &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lv_rc&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Konstantinos&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 09:10:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/http-request-handler-application-log-slg1/m-p/11080219#M1901827</guid>
      <dc:creator>konstantinos_vassiliadis</dc:creator>
      <dc:date>2015-06-17T09:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Http request handler - Application log (SLG1)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/http-request-handler-application-log-slg1/m-p/11080220#M1901828</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;"&gt;Konstantinos,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is quite strange. If I understood how you have done the coding, correctly, it seems there is some database rollback happening in between your Application Log Update and sending the response back . When you don't have the code to send the response back the data is getting updated as RFC call is issuing the COMMIT automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am guessing you are using BAL_LOG_CREATE/BAL_DB_SAVE FMs to update your application log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so , and if possible to debug I will approach the issue like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Long way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I will debug until BAL_DB_SAVE calls the FM BAL_DB_INTERNAL_NO_UPDATE_TASK in which the tables BALDAT and BALHDR are updated via INSERT/UPDATE statement. After the statement since there will be implicit COMMIT due to INSERT/UPDATE the data will be shown via SE16/SE16N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Then I will execute the following steps where we are sending the response and doing F6 in each Method call and see if the data is getting disappeared. or not to find out the reason for rollback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Short way ( May work actually ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Trying to pass&amp;nbsp; I_2TH_CONNECTION and&amp;nbsp; I_2TH_CONNECT_COMMIT eq ABAP_TRUE in FM BAL_DB_SAVE or simply issuing COMMIT WORK after BAL_DB_SAVE. I know we do not need to issue commit in RFC calls but it can actually work sometimes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 10:17:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/http-request-handler-application-log-slg1/m-p/11080220#M1901828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-17T10:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Http request handler - Application log (SLG1)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/http-request-handler-application-log-slg1/m-p/11080221#M1901829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again Rudra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually the Short way method of simply performing explicit commit after log save worked!!! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help,&lt;/P&gt;&lt;P&gt;Konstantinos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 10:30:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/http-request-handler-application-log-slg1/m-p/11080221#M1901829</guid>
      <dc:creator>konstantinos_vassiliadis</dc:creator>
      <dc:date>2015-06-17T10:30:45Z</dc:date>
    </item>
  </channel>
</rss>

