<?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: exceptions in function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/2064762#M427158</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whst is the structure of ERROR_COM?&lt;/P&gt;&lt;P&gt;IF it is not yet created, then try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First create a msg in a msg class using this text:&lt;/P&gt;&lt;P&gt;"Feed code &amp;amp; is not set-up in table (ZFEED), processing stopped"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now create the table as below:&lt;/P&gt;&lt;P&gt;ZFEED Number&lt;/P&gt;&lt;P&gt;Msg class&lt;/P&gt;&lt;P&gt;Msg Number&lt;/P&gt;&lt;P&gt;Date (These date n' time to track the things, if u want u can include the user name also)&lt;/P&gt;&lt;P&gt;Time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in ur function module populate these things in to table work area error_com and insert error_com.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Mar 2007 08:48:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-12T08:48:07Z</dc:date>
    <item>
      <title>exceptions in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/2064757#M427153</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 am reading feed code from a table (zfeed).if the feed code is not found in the table i've to do the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the feed is not found in this table then we need to error.&lt;/P&gt;&lt;P&gt; If sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;Issue error message &amp;#147;Feed code &amp;amp; is not setp-up in table (ZFEED), processing stopped.&lt;/P&gt;&lt;P&gt;This error message will be added to table (ERROR_COM)&lt;/P&gt;&lt;P&gt;Raise exit_processing.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to add this message in to the structure  (ERROR_COM) this structure &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR_NUMBER&lt;/P&gt;&lt;P&gt;MSG_CLASS&lt;/P&gt;&lt;P&gt;MSG_TYPE&lt;/P&gt;&lt;P&gt;MSG_TEXT&lt;/P&gt;&lt;P&gt;MSG_VARIABLE1&lt;/P&gt;&lt;P&gt;MSG_VARIABLE2&lt;/P&gt;&lt;P&gt;MSG_VARIABLE3&lt;/P&gt;&lt;P&gt;MSG_VARIABLE4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these are the fields in the structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i expect a detailed explanation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx,&lt;/P&gt;&lt;P&gt;Prajith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 07:50:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/2064757#M427153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T07:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: exceptions in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/2064758#M427154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just add like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lwa_error-level = 1.&lt;/P&gt;&lt;P&gt;        lwa_error-severity = 'E'.&lt;/P&gt;&lt;P&gt;        lwa_error-langu = sy-langu.&lt;/P&gt;&lt;P&gt;        lwa_error-ag = 'FTI_LDB_MESSAGE'.&lt;/P&gt;&lt;P&gt;        lwa_error-msgnr = 202.&lt;/P&gt;&lt;P&gt;       lwa_error-var1 = i_rfha.&lt;/P&gt;&lt;P&gt;        APPEND lwa_error TO e_t_error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error number  : Number of the mesage &lt;/P&gt;&lt;P&gt;class : msg class&lt;/P&gt;&lt;P&gt;text: Any tectxt to appear along with the msg&lt;/P&gt;&lt;P&gt;Var1..var4 can hold values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 08:02:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/2064758#M427154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T08:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: exceptions in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/2064759#M427155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srivijaya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can i use MESSAGE E007(AT) RAISING NOT_FOUND ?&lt;/P&gt;&lt;P&gt;is it possible to store all the data into the structure? i mean &lt;/P&gt;&lt;P&gt;all the message deatils?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx,&lt;/P&gt;&lt;P&gt;Prajith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 08:16:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/2064759#M427155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T08:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: exceptions in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/2064760#M427156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Prajith , &lt;/P&gt;&lt;P&gt;You could also raise the error msg using : &lt;/P&gt;&lt;P&gt;MESSAGE ID 'FTI_LDB_MESSAGE' TYPE 'E' NUMBER 313&lt;/P&gt;&lt;P&gt;        RAISING no_deal_num (0r) &lt;/P&gt;&lt;P&gt;the way u specified. &lt;/P&gt;&lt;P&gt;But this will not store the details into the structure. Rather it raises a message and exists. As i mentioned before, u have to create a workkarea ot type 'bapierr' or the way u wanted and append it to an internal table. Do u want to exist the pgm after the error occurs or maintain an error log and display in the last  ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 08:29:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/2064760#M427156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T08:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: exceptions in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/2064761#M427157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the way below :&lt;/P&gt;&lt;P&gt;If sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&amp;#147;Feed code &amp;amp; is not setp-up in table (ZFEED), processing stopped.&lt;/P&gt;&lt;P&gt;lwa-ERROR_NUMBER = 007.&lt;/P&gt;&lt;P&gt;lwa-MSG_CLASS = xyz.&lt;/P&gt;&lt;P&gt;MSG_TYPE = 'E'.&lt;/P&gt;&lt;P&gt;MSG_TEXT = 'Feedcode not in bla bla bla . .'.&lt;/P&gt;&lt;P&gt;MSG_VARIABLE1 =  Feedcode.&lt;/P&gt;&lt;P&gt;append lwa to itab_err.&lt;/P&gt;&lt;P&gt;MESSAGE E007(AT) RAISING NOT_FOUND .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 08:34:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/2064761#M427157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T08:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: exceptions in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/2064762#M427158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whst is the structure of ERROR_COM?&lt;/P&gt;&lt;P&gt;IF it is not yet created, then try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First create a msg in a msg class using this text:&lt;/P&gt;&lt;P&gt;"Feed code &amp;amp; is not set-up in table (ZFEED), processing stopped"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now create the table as below:&lt;/P&gt;&lt;P&gt;ZFEED Number&lt;/P&gt;&lt;P&gt;Msg class&lt;/P&gt;&lt;P&gt;Msg Number&lt;/P&gt;&lt;P&gt;Date (These date n' time to track the things, if u want u can include the user name also)&lt;/P&gt;&lt;P&gt;Time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in ur function module populate these things in to table work area error_com and insert error_com.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 08:48:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/2064762#M427158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T08:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: exceptions in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/2064763#M427159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanx for your help Sreevijaya and Jyothi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 13:36:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/2064763#M427159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T13:36:24Z</dc:date>
    </item>
  </channel>
</rss>

