<?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: Short dump with function module - Exception problem - how to avoid thi s ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-function-module-exception-problem-how-to-avoid-thi-s/m-p/1884801#M371268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare your if statements in this way ..i.e, conditions separated by braces &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF &amp;lt;b&amp;gt;(&amp;lt;/b&amp;gt; I_GJAHR IS INITIAL&amp;lt;b&amp;gt; )&amp;lt;/b&amp;gt; OR&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;(&amp;lt;/b&amp;gt; I_MONAT IS INITIAL&amp;lt;b&amp;gt; ).&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To get the latest month of i_prctr selection.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT * FROM zgxmit&lt;/P&gt;&lt;P&gt;UP TO 1 ROWS&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF e_zgxmit&lt;/P&gt;&lt;P&gt;WHERE zprctr = i_prctr&lt;/P&gt;&lt;P&gt;ORDER BY ZMONAT DESCENDING.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;raise no_entry_found.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSEIF NOT &amp;lt;b&amp;gt;(&amp;lt;/b&amp;gt; I_GJAHR IS INITIAL &amp;lt;b&amp;gt;)&amp;lt;/b&amp;gt; AND&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;(&amp;lt;/b&amp;gt; I_MONAT IS INITIAL&amp;lt;b&amp;gt; ).&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE *&lt;/P&gt;&lt;P&gt;FROM zgxmit&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF e_zgxmit&lt;/P&gt;&lt;P&gt;WHERE zprctr = i_prctr&lt;/P&gt;&lt;P&gt;AND zgjahr = i_gjahr&lt;/P&gt;&lt;P&gt;AND zmonat = i_monat.&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;RAISE no_entry_found.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jan 2007 15:50:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-23T15:50:33Z</dc:date>
    <item>
      <title>Short dump with function module - Exception problem - how to avoid thi s ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-function-module-exception-problem-how-to-avoid-thi-s/m-p/1884800#M371267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Short Dump is occuring  in the below function module , when no user entry found in ZGXMIT for a specific period.  ( Below is the funtion module code. )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  It should not short dump but just return the exception.  &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;How can i do this in the below code inorder to avoid short dump or &lt;/P&gt;&lt;P&gt;How can i do coding while calling this function module inorder to avoid short dump.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; clear: e_zgxmit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF I_GJAHR IS INITIAL OR&lt;/P&gt;&lt;P&gt;     I_MONAT IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  To get the latest month of i_prctr selection.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     SELECT * FROM zgxmit&lt;/P&gt;&lt;P&gt;              UP TO 1 ROWS&lt;/P&gt;&lt;P&gt;              INTO CORRESPONDING FIELDS OF e_zgxmit&lt;/P&gt;&lt;P&gt;              WHERE zprctr = i_prctr&lt;/P&gt;&lt;P&gt;              ORDER BY ZMONAT DESCENDING.&lt;/P&gt;&lt;P&gt;     ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;      raise no_entry_found.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSEIF NOT I_GJAHR IS INITIAL AND&lt;/P&gt;&lt;P&gt;         NOT I_MONAT IS INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE *&lt;/P&gt;&lt;P&gt;           FROM zgxmit&lt;/P&gt;&lt;P&gt;           INTO CORRESPONDING FIELDS OF e_zgxmit&lt;/P&gt;&lt;P&gt;           WHERE zprctr = i_prctr&lt;/P&gt;&lt;P&gt;           AND   zgjahr = i_gjahr&lt;/P&gt;&lt;P&gt;           AND   zmonat = i_monat.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      RAISE no_entry_found.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 15:47:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-function-module-exception-problem-how-to-avoid-thi-s/m-p/1884800#M371267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T15:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Short dump with function module - Exception problem - how to avoid thi s ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-function-module-exception-problem-how-to-avoid-thi-s/m-p/1884801#M371268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare your if statements in this way ..i.e, conditions separated by braces &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF &amp;lt;b&amp;gt;(&amp;lt;/b&amp;gt; I_GJAHR IS INITIAL&amp;lt;b&amp;gt; )&amp;lt;/b&amp;gt; OR&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;(&amp;lt;/b&amp;gt; I_MONAT IS INITIAL&amp;lt;b&amp;gt; ).&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To get the latest month of i_prctr selection.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT * FROM zgxmit&lt;/P&gt;&lt;P&gt;UP TO 1 ROWS&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF e_zgxmit&lt;/P&gt;&lt;P&gt;WHERE zprctr = i_prctr&lt;/P&gt;&lt;P&gt;ORDER BY ZMONAT DESCENDING.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;raise no_entry_found.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSEIF NOT &amp;lt;b&amp;gt;(&amp;lt;/b&amp;gt; I_GJAHR IS INITIAL &amp;lt;b&amp;gt;)&amp;lt;/b&amp;gt; AND&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;(&amp;lt;/b&amp;gt; I_MONAT IS INITIAL&amp;lt;b&amp;gt; ).&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE *&lt;/P&gt;&lt;P&gt;FROM zgxmit&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF e_zgxmit&lt;/P&gt;&lt;P&gt;WHERE zprctr = i_prctr&lt;/P&gt;&lt;P&gt;AND zgjahr = i_gjahr&lt;/P&gt;&lt;P&gt;AND zmonat = i_monat.&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;RAISE no_entry_found.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 15:50:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-function-module-exception-problem-how-to-avoid-thi-s/m-p/1884801#M371268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T15:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Short dump with function module - Exception problem - how to avoid thi s ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-function-module-exception-problem-how-to-avoid-thi-s/m-p/1884802#M371269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So that it does not short dump, you must handle the exception from the caller.  So when you call the function module, you need to have the exception listed, then it will not dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'ZFUNCTION'
     exceptions
          no_entry_found = 1
          other                = 2.

If sy-subrc  = 1.
  Write:/ 'No Entries Found'.
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 15:51:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-function-module-exception-problem-how-to-avoid-thi-s/m-p/1884802#M371269</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-01-23T15:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Short dump with function module - Exception problem - how to avoid thi s ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-function-module-exception-problem-how-to-avoid-thi-s/m-p/1884803#M371270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you define the exception "no_entry_found" in the exceptions tab of function module.  If you have and the dump is happening at the caller program, ensure you catch the exception:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FUNCTION'&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;no_entry_found = 1&lt;/P&gt;&lt;P&gt;OTHERS = 99.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;  handle exceptions.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hith&lt;/P&gt;&lt;P&gt;Sunil Achyut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 15:53:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-function-module-exception-problem-how-to-avoid-thi-s/m-p/1884803#M371270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T15:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Short dump with function module - Exception problem - how to avoid thi s ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-function-module-exception-problem-how-to-avoid-thi-s/m-p/1884804#M371271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whenever we use any FMs. It is advised not to comment out or remove the EXCEPTION handler in the calling program. Otherwise it may dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 15:58:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-function-module-exception-problem-how-to-avoid-thi-s/m-p/1884804#M371271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T15:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Short dump with function module - Exception problem - how to avoid thi s ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-function-module-exception-problem-how-to-avoid-thi-s/m-p/1884805#M371272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANK YOU VERY MUCH .&lt;/P&gt;&lt;P&gt;I am calling this function module three times in my program :&lt;/P&gt;&lt;P&gt;Instead using   &amp;lt;b&amp;gt;WRITE : / 'no_entry_found'.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;Shall I display system message or information message .&lt;/P&gt;&lt;P&gt;will it work.&lt;/P&gt;&lt;P&gt;Like &amp;lt;b&amp;gt;MESSAFE s(100)ZG   Text-011.    "no_entry_found for this period &amp;lt;/b&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new of using thsi exception of function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_prctrs. &lt;/P&gt;&lt;P&gt;    CLEAR: izgxmit. &lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'Z_GL_GET_ZGXMIT' &lt;/P&gt;&lt;P&gt;      EXPORTING &lt;/P&gt;&lt;P&gt;        i_prctr        = it_prctrs-lg_locnum &lt;/P&gt;&lt;P&gt;*{ Start of changes - JVALAPA - CMS 6901 &lt;/P&gt;&lt;P&gt;        I_GJAHR = P_YEAR &lt;/P&gt;&lt;P&gt;        I_MONAT = P_PERIOD &lt;/P&gt;&lt;P&gt;*} End  of changes - JVALAPA - CMS 6901 &lt;/P&gt;&lt;P&gt;      IMPORTING &lt;/P&gt;&lt;P&gt;        e_zgxmit       = izgxmit &lt;/P&gt;&lt;P&gt;      EXCEPTIONS &lt;/P&gt;&lt;P&gt;        no_entry_found = 1 &lt;/P&gt;&lt;P&gt;        OTHERS         = 2. &lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0. &lt;/P&gt;&lt;P&gt;      IF  ( izgxmit-bal_xmit = 'X' OR izgxmit-inc_xmit = 'X' ) and &lt;/P&gt;&lt;P&gt;            izgxmit-zgjahr = p_year and izgxmit-zmonat = p_period. "XXXX &lt;/P&gt;&lt;P&gt;        g_tbl_zgbsis_itab-prctr   = izgxmit-zprctr. &lt;/P&gt;&lt;P&gt;        g_tbl_zgbsis_itab-rpt_loc = izgxmit-rpt_loc. &lt;/P&gt;&lt;P&gt;        APPEND g_tbl_zgbsis_itab. CLEAR: g_tbl_zgbsis_itab. &lt;/P&gt;&lt;P&gt;      ENDIF. &lt;/P&gt;&lt;P&gt;*{ Start of changes - JVALAPA - CMS 6901 &lt;/P&gt;&lt;P&gt;   ELSEIF sy-subrc = 1. &lt;/P&gt;&lt;P&gt;   WRITE : / 'no_entry_found'. &lt;/P&gt;&lt;P&gt;*} End  of changes - JVALAPA - CMS 6901 &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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_________________________________ &lt;/P&gt;&lt;P&gt;    clear: izgxmit.                                                "XXXX &lt;/P&gt;&lt;P&gt;    call function 'Z_GL_GET_ZGXMIT'                                "XXXX &lt;/P&gt;&lt;P&gt;         exporting                                                 "XXXX &lt;/P&gt;&lt;P&gt;         i_prctr             = it_zgxmit-zprctr                    "XXXX &lt;/P&gt;&lt;P&gt;*{ Start of changes - JVALAPA - CMS 6901 &lt;/P&gt;&lt;P&gt;         I_GJAHR             = P_YEAR &lt;/P&gt;&lt;P&gt;         I_MONAT             = P_PERIOD &lt;/P&gt;&lt;P&gt;*} End  of changes - JVALAPA - CMS 6901 &lt;/P&gt;&lt;P&gt;         importing                                                 "XXXX &lt;/P&gt;&lt;P&gt;              e_zgxmit       = izgxmit                             "XXXX &lt;/P&gt;&lt;P&gt;         exceptions                                                "XXXX &lt;/P&gt;&lt;P&gt;              no_entry_found = 1                                   "XXXX &lt;/P&gt;&lt;P&gt;              others         = 2.                                  "XXXX &lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.                                               "XXXX &lt;/P&gt;&lt;P&gt;      if it_zgxmit-zgjahr = izgxmit-zgjahr and                     "XXXX &lt;/P&gt;&lt;P&gt;         it_zgxmit-zmonat = izgxmit-zmonat.                        "XXXX &lt;/P&gt;&lt;P&gt;        it_zgxmit-z500_xmit = izgxmit-z500_xmit.                   "XXXX &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Start of changes - JVALAPA - CMS 6901 &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        IF izgxmit-inc_xmit &amp;lt;&amp;gt; ' ' AND it_zgxmit-inc_xmit = 'P'. &lt;/P&gt;&lt;P&gt;          it_zgxmit-inc_xmit = izgxmit-inc_xmit. &lt;/P&gt;&lt;P&gt;        ENDIF. &lt;/P&gt;&lt;P&gt;        IF izgxmit-bal_xmit &amp;lt;&amp;gt; ' ' AND it_zgxmit-bal_xmit = 'P'. &lt;/P&gt;&lt;P&gt;          it_zgxmit-bal_xmit = izgxmit-bal_xmit. &lt;/P&gt;&lt;P&gt;        ENDIF. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;End  of changes - JVALAPA - CMS 6901 &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      else.                                                        "XXXX &lt;/P&gt;&lt;P&gt;        it_zgxmit-z500_xmit = ' '.                                 "XXXX &lt;/P&gt;&lt;P&gt;      endif.                                                       "XXXX &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Start of changes - JVALAPA - CMS 6901 &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    elseif sy-subrc = 1. &lt;/P&gt;&lt;P&gt;    WRITE : / 'no_entry_found'. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;End  of changes - JVALAPA - CMS 6901 &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endif.                                                         "XXXX &lt;/P&gt;&lt;P&gt;    append it_zgxmit. clear it_zgxmit. &lt;/P&gt;&lt;P&gt;  endloop. &lt;/P&gt;&lt;P&gt;_____________________________________ &lt;/P&gt;&lt;P&gt;  LOOP AT izccod_t. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'Z_GL_GET_ZGXMIT' &lt;/P&gt;&lt;P&gt;      EXPORTING &lt;/P&gt;&lt;P&gt;        i_prctr              = izccod_t-lg_locnum &lt;/P&gt;&lt;P&gt;        I_GJAHR              = p_year &lt;/P&gt;&lt;P&gt;        I_MONAT              = p_period &lt;/P&gt;&lt;P&gt;     IMPORTING &lt;/P&gt;&lt;P&gt;        E_ZGXMIT             = wa_zgxmit &lt;/P&gt;&lt;P&gt;     EXCEPTIONS &lt;/P&gt;&lt;P&gt;       NO_ENTRY_FOUND       = 1 &lt;/P&gt;&lt;P&gt;       OTHERS               = 2 &lt;/P&gt;&lt;P&gt;              . &lt;/P&gt;&lt;P&gt;    IF sy-subrc = 1. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 16:13:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-function-module-exception-problem-how-to-avoid-thi-s/m-p/1884805#M371272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T16:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Short dump with function module - Exception problem - how to avoid thi s ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-function-module-exception-problem-how-to-avoid-thi-s/m-p/1884806#M371273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depends on what your requirement is, if you have to stop processing when no entries are found you can use Message type 'E'.  If however, your requirement is to display a message to the user then Message type 'I' would work.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hith&lt;/P&gt;&lt;P&gt;Sunil Achyut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 16:23:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-function-module-exception-problem-how-to-avoid-thi-s/m-p/1884806#M371273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T16:23:43Z</dc:date>
    </item>
  </channel>
</rss>

