<?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: exception handling in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/2031366#M416957</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;As u have to raise an exception when eid &amp;lt;&amp;gt;pid u have to loop generally and then read other wise u may not be able to read the needed rows and raise exception for the else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;READ TABLE itab into wa WITH KEY eid = pid.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;exception cx_hrpa_invalid_paramter have to be raised.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt; process normally&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this for every row it checks for feisibility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S.Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Mar 2007 06:26:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-14T06:26:19Z</dc:date>
    <item>
      <title>exception handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/2031361#M416952</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;  i have an internal table, itab with 3 columns.&lt;/P&gt;&lt;P&gt;eid, ename and edearttment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i also write a paramter statement&lt;/P&gt;&lt;P&gt; paramter: pid like eid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; now i write&lt;/P&gt;&lt;P&gt;   loop at itab where eid = pid.&lt;/P&gt;&lt;P&gt;        ......................&lt;/P&gt;&lt;P&gt;        ......................&lt;/P&gt;&lt;P&gt;   endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now if pid not equal to  eid i need an exception handling cx_hrpa_invalid_paramter.&lt;/P&gt;&lt;P&gt;if pid equals eid then it should proceed with its normal state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to do that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 07:57:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/2031361#M416952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-13T07:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: exception handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/2031362#M416953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at itab where eid = pid.&lt;/P&gt;&lt;P&gt;......................&lt;/P&gt;&lt;P&gt;......................&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;handle your exception logic here. If this is within a function module, you can simply raise an exception which can later be handled in the calling program&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 07:59:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/2031362#M416953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-13T07:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: exception handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/2031363#M416954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;   You can do it this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab.&lt;/P&gt;&lt;P&gt;READ TABLE itab into wa WITH KEY eid = pid.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;raise exception type cx_hrpa_invalid_paramter.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;normal processing&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 08:08:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/2031363#M416954</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-03-13T08:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: exception handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/2031364#M416955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let us this scenario:&lt;/P&gt;&lt;P&gt;In ITab you are having more than one entry of PID not equal to EID. then for the first occurance only you want to trigger exception and stop processing other entries? or you want to process all entires and just trigger exception in case you are having atleast one entry of "pid ne eid".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In first case you loop itab with out where. In loop use IF to chk the pid ne eid. In IF handle exception. and come out of loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other case also loop itba with out where. Use IF to know whether any entry is having PID ne EID. set a flag there. after the loop handle the exception&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 08:11:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/2031364#M416955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-13T08:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: exception handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/2031365#M416956</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;loop at itab where eid = pid.&lt;/P&gt;&lt;P&gt;......................&lt;/P&gt;&lt;P&gt;......................&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0. "This loop will return 4 if no entry found with eid = pid.&lt;/P&gt;&lt;P&gt; *throw your exception here.&lt;/P&gt;&lt;P&gt;endif.&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;Regards,&lt;/P&gt;&lt;P&gt;Richa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 14:40:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/2031365#M416956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-13T14:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: exception handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/2031366#M416957</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;As u have to raise an exception when eid &amp;lt;&amp;gt;pid u have to loop generally and then read other wise u may not be able to read the needed rows and raise exception for the else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;READ TABLE itab into wa WITH KEY eid = pid.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;exception cx_hrpa_invalid_paramter have to be raised.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt; process normally&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this for every row it checks for feisibility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S.Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2007 06:26:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-handling/m-p/2031366#M416957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-14T06:26:19Z</dc:date>
    </item>
  </channel>
</rss>

