<?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: how to get subrc in this function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-subrc-in-this-function-module/m-p/2419654#M540123</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data return type BAPIRET2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all useful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jun 2007 03:20:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-26T03:20:16Z</dc:date>
    <item>
      <title>how to get subrc in this function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-subrc-in-this-function-module/m-p/2419648#M540117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL FUNCTION 'FI_PERIOD_CHECK'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;         I_BUKRS          = 'C553'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        I_OPVAR          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          I_GJAHR          = it_out-datains1+0(4)&lt;/P&gt;&lt;P&gt;          I_KOART          = 'S'&lt;/P&gt;&lt;P&gt;         I_KONTO          = 'zzzzzzzzzz'&lt;/P&gt;&lt;P&gt;          I_MONAT          = L_IODM&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        ERROR_PERIOD     = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        ERROR_PERIOD_ACC = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        OTHERS           = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&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;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;ENDIF.&lt;/P&gt;&lt;P&gt;when i am testing this function module i am getting error_period_acc =2.&lt;/P&gt;&lt;P&gt;but i used this one in program like above code i am getting subrc=0.&lt;/P&gt;&lt;P&gt;i have doubt in this one is we can comment exceptions or uncomment.&lt;/P&gt;&lt;P&gt;i want sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;how can i get&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 16:09:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-subrc-in-this-function-module/m-p/2419648#M540117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T16:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to get subrc in this function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-subrc-in-this-function-module/m-p/2419649#M540118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'FI_PERIOD_CHECK'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              i_bukrs          = cashin_header-bukrs&lt;/P&gt;&lt;P&gt;              i_gjahr          = i_gjahr&lt;/P&gt;&lt;P&gt;              i_koart          = 'D'&lt;/P&gt;&lt;P&gt;              i_monat          = i_poper&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              error_period     = 1&lt;/P&gt;&lt;P&gt;              error_period_acc = 2&lt;/P&gt;&lt;P&gt;              OTHERS           = 3.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BALW_BAPIRETURN_GET2'&lt;/P&gt;&lt;P&gt;           EXPORTING&lt;/P&gt;&lt;P&gt;                type   = sy-msgty&lt;/P&gt;&lt;P&gt;                cl     = sy-msgid&lt;/P&gt;&lt;P&gt;                number = sy-msgno&lt;/P&gt;&lt;P&gt;                par1   = sy-msgv1&lt;/P&gt;&lt;P&gt;                par2   = sy-msgv2&lt;/P&gt;&lt;P&gt;                par3   = sy-msgv3&lt;/P&gt;&lt;P&gt;                par4   = sy-msgv4&lt;/P&gt;&lt;P&gt;           IMPORTING&lt;/P&gt;&lt;P&gt;                return = return.&lt;/P&gt;&lt;P&gt;      APPEND return.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 16:30:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-subrc-in-this-function-module/m-p/2419649#M540118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T16:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to get subrc in this function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-subrc-in-this-function-module/m-p/2419650#M540119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the parameters ,I mean are you passing valid values or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_KOART NE '+'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you will get message &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FI_PERIOD_CHECK'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;I_BUKRS = 'C553'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_OPVAR = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I_GJAHR = it_out-datains1+0(4)&lt;/P&gt;&lt;P&gt;I_KOART = &amp;lt;b&amp;gt;'+'&amp;lt;/b&amp;gt;  -&amp;gt; pass + value and see the results&lt;/P&gt;&lt;P&gt;I_KONTO = 'zzzzzzzzzz'&lt;/P&gt;&lt;P&gt;I_MONAT = L_IODM&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ERROR_PERIOD = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ERROR_PERIOD_ACC = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OTHERS = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 16:31:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-subrc-in-this-function-module/m-p/2419650#M540119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T16:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to get subrc in this function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-subrc-in-this-function-module/m-p/2419651#M540120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i can comment EXCEPTIONS&lt;/P&gt;&lt;P&gt; or no comment?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 16:37:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-subrc-in-this-function-module/m-p/2419651#M540120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T16:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to get subrc in this function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-subrc-in-this-function-module/m-p/2419652#M540121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dont comment the exceptions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 16:43:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-subrc-in-this-function-module/m-p/2419652#M540121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T16:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to get subrc in this function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-subrc-in-this-function-module/m-p/2419653#M540122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;return = return.&lt;/P&gt;&lt;P&gt;APPEND return.&lt;/P&gt;&lt;P&gt;in this one return type.&lt;/P&gt;&lt;P&gt;how to declare.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 03:16:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-subrc-in-this-function-module/m-p/2419653#M540122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T03:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to get subrc in this function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-subrc-in-this-function-module/m-p/2419654#M540123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data return type BAPIRET2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all useful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 03:20:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-subrc-in-this-function-module/m-p/2419654#M540123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T03:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to get subrc in this function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-subrc-in-this-function-module/m-p/2419655#M540124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when any error is raised by raise &amp;lt;exception name&amp;gt; the sy-subrc is getting the value according to their decvlaration. In your case when&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;raise ERROR_PERIOD&amp;lt; sy-subrc = 1 return&amp;gt;&lt;/P&gt;&lt;P&gt;raise ERROR_PERIOD_ACC &amp;lt;sy-subrc = 2 return&amp;gt;&lt;/P&gt;&lt;P&gt;raise OTHERS  &amp;lt;sy-subrc = 3 return&amp;gt;&lt;/P&gt;&lt;P&gt;if above statement are executed it will return the sy-subrc value as stated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for getting this you have to un-comment the all the exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 03:50:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-subrc-in-this-function-module/m-p/2419655#M540124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T03:50:40Z</dc:date>
    </item>
  </channel>
</rss>

