<?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: Getting OK_CODE in LSMW in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-ok-code-in-lsmw/m-p/7743358#M1581961</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your comment..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you said, I'm processing the session with the option 'Display error only'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to get the value of SY-COMM, which is empty in 'Display error only' mode. But, in 'foreground' mode the SY-COMM filled with 'UPD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here's the different between the 2 option :&lt;/P&gt;&lt;P&gt;A) Foreground mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OK_CODE = SY-COMM. -----------------&amp;gt; The value of OK_CODE is 'UPD'
IF OK_CODE = 'UPD'
   XXX                                     --------------------&amp;gt; this line got executed
END IF&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B) Display error only mode&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OK_CODE = SY-COMM. -----------------&amp;gt; The value of OK_CODE is empty
IF OK_CODE = 'UPD'
   XXX                                     --------------------&amp;gt; this line not executed.
END IF&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rully&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Mar 2011 04:15:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-03-30T04:15:50Z</dc:date>
    <item>
      <title>Getting OK_CODE in LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-ok-code-in-lsmw/m-p/7743356#M1581959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some problem down here. I want to get value of SY-UCOMM when running LSMW with the options 'Display error only'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually when I'm using foreground processing, The SY-UCOMM value is not empty, but when I using 'Display error only', THE sy-ucomm is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do I have to add something in my code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ok_code = SY-UCOMM.
IF ok_code = 'UPD'.
XXX
END IF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rully&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 03:10:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-ok-code-in-lsmw/m-p/7743356#M1581959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-30T03:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Getting OK_CODE in LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-ok-code-in-lsmw/m-p/7743357#M1581960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi Expert,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I have some problem down here. I want to get value of SY-UCOMM when running LSMW with the options 'Display error only'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt;&lt;STRONG&gt;its not a LSMW anymore , you are running/processing  the session , so whats your requirement ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Usually when I'm using foreground processing, The SY-UCOMM value is not empty, but when I using 'Display error only', THE sy-ucomm is empty.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; do I have to add something in my code?&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;ok_code = SY-UCOMM.
&amp;gt; IF ok_code = 'UPD'.
&amp;gt; XXX
&amp;gt; END IF.&lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thank you&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Rully&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 03:51:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-ok-code-in-lsmw/m-p/7743357#M1581960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-30T03:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Getting OK_CODE in LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-ok-code-in-lsmw/m-p/7743358#M1581961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your comment..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you said, I'm processing the session with the option 'Display error only'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to get the value of SY-COMM, which is empty in 'Display error only' mode. But, in 'foreground' mode the SY-COMM filled with 'UPD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here's the different between the 2 option :&lt;/P&gt;&lt;P&gt;A) Foreground mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OK_CODE = SY-COMM. -----------------&amp;gt; The value of OK_CODE is 'UPD'
IF OK_CODE = 'UPD'
   XXX                                     --------------------&amp;gt; this line got executed
END IF&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B) Display error only mode&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OK_CODE = SY-COMM. -----------------&amp;gt; The value of OK_CODE is empty
IF OK_CODE = 'UPD'
   XXX                                     --------------------&amp;gt; this line not executed.
END IF&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rully&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 04:15:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-ok-code-in-lsmw/m-p/7743358#M1581961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-30T04:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting OK_CODE in LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-ok-code-in-lsmw/m-p/7743359#M1581962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 00:45:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-ok-code-in-lsmw/m-p/7743359#M1581962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-31T00:45:38Z</dc:date>
    </item>
  </channel>
</rss>

