<?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: message problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-problem/m-p/7082417#M1506173</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not well cleared with the qn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be you can set a flag inside the loop. And after the loop just chk whether the flag is set or not. If it is set, then display the message and clear the flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, hope, p1 is the new input and inside the loop you can directly check with the work area u2013 u2018lt_t7ehs00_srv_prot-pnumberu2019. Why you are reading again inside the loop.  Hope, you have some reason for that and it will be helpful if you can brief that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Selva K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jul 2010 11:54:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-06T11:54:41Z</dc:date>
    <item>
      <title>message problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-problem/m-p/7082416#M1506172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi masters,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have TC where i have 5 records... &lt;/P&gt;&lt;P&gt;if user enters the same records  i should tel the user that record already exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have given the logic it identifies the existing reocrd but as am in loop it goes 5 times and issues 5 times the message .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it not possible to give the message only once if so how can i get it pls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my code : &lt;/P&gt;&lt;P&gt;     it is in a loop.... if the loop has 5 records it issues 5times how can i avoid it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        read table lt_t7ehs00_srv_prot with key pnumber = p1..&lt;/P&gt;&lt;P&gt;        if  sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        MESSAGE 'Record already exits' type 'W'.&lt;/P&gt;&lt;P&gt;       endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: please use more descriptive subject lines from now on.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Jul 6, 2010 5:22 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 07:57:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-problem/m-p/7082416#M1506172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-06T07:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: message problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-problem/m-p/7082417#M1506173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not well cleared with the qn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be you can set a flag inside the loop. And after the loop just chk whether the flag is set or not. If it is set, then display the message and clear the flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, hope, p1 is the new input and inside the loop you can directly check with the work area u2013 u2018lt_t7ehs00_srv_prot-pnumberu2019. Why you are reading again inside the loop.  Hope, you have some reason for that and it will be helpful if you can brief that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Selva K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 11:54:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-problem/m-p/7082417#M1506173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-06T11:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: message problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-problem/m-p/7082418#M1506174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Pasalabasker,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my code : &lt;/P&gt;&lt;P&gt;it is in a loop.... if the loop has 5 records it issues 5times how can i avoid it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table lt_t7ehs00_srv_prot with key pnumber = p1..&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;MESSAGE 'Record already exits' type 'W'.&lt;/P&gt;&lt;P&gt;exit.    **&amp;lt;----&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;write this to exit from the loop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Md Ziauddin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 15:05:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-problem/m-p/7082418#M1506174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-06T15:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: message problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-problem/m-p/7082419#M1506175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you and appriciated for the replies...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorted with the message below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE i055(zfiex) WITH p1(4).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jul 2010 06:15:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-problem/m-p/7082419#M1506175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-07T06:15:26Z</dc:date>
    </item>
  </channel>
</rss>

