<?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: Opening balance... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/opening-balance/m-p/2688080#M621725</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sudharsan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the given date in the selection screen the following code with fetch you the fiscal year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF s_budat IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    IF s_budat-high IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;      WHILE s_budat-low LE s_budat-high.&lt;/P&gt;&lt;P&gt;        i = s_budat+7(2).&lt;/P&gt;&lt;P&gt;        IF i &amp;gt; 3.&lt;/P&gt;&lt;P&gt;          s_gjahr = s_budat+3(4).&lt;/P&gt;&lt;P&gt;          APPEND s_gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;P&gt;          c = s_budat+3(4).&lt;/P&gt;&lt;P&gt;          s_gjahr = c - 1.&lt;/P&gt;&lt;P&gt;          APPEND  s_gjahr.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;        s_budat-low = s_budat-low + 1.&lt;/P&gt;&lt;P&gt;      ENDWHILE.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      i = s_budat+7(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF i &amp;gt; 3.&lt;/P&gt;&lt;P&gt;        s_gjahr = s_budat+3(4).&lt;/P&gt;&lt;P&gt;        APPEND s_gjahr.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        c = s_budat+3(4).&lt;/P&gt;&lt;P&gt;        s_gjahr = c - 1.&lt;/P&gt;&lt;P&gt;        APPEND  s_gjahr.&lt;/P&gt;&lt;P&gt;      ENDIF.&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;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Aug 2007 03:14:02 GMT</pubDate>
    <dc:creator>kiran_k8</dc:creator>
    <dc:date>2007-08-27T03:14:02Z</dc:date>
    <item>
      <title>Opening balance...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opening-balance/m-p/2688079#M621724</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;1. First i need to define fisycal year from jan to december.&lt;/P&gt;&lt;P&gt;please tell me how we will define a ficycal in my program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I need to calculate opening balance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my selection screen i having the date field BSIS-BUDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if customer will give the date from 1st April 2006 to 31st September2006 in selection screen&lt;/P&gt;&lt;P&gt;then i have to calculate opening balance from 1st jan 2006 to 31st March2006 and &lt;/P&gt;&lt;P&gt;debit and credit amounts for 1st April2006 to 31st september2006.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i calculate this.&lt;/P&gt;&lt;P&gt;please suggest me if possible please send me code for that defining fisycal year and calculations.&lt;/P&gt;&lt;P&gt;please help me it is very urgent to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sudharsan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2007 03:06:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opening-balance/m-p/2688079#M621724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-27T03:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Opening balance...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opening-balance/m-p/2688080#M621725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sudharsan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the given date in the selection screen the following code with fetch you the fiscal year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF s_budat IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    IF s_budat-high IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;      WHILE s_budat-low LE s_budat-high.&lt;/P&gt;&lt;P&gt;        i = s_budat+7(2).&lt;/P&gt;&lt;P&gt;        IF i &amp;gt; 3.&lt;/P&gt;&lt;P&gt;          s_gjahr = s_budat+3(4).&lt;/P&gt;&lt;P&gt;          APPEND s_gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;P&gt;          c = s_budat+3(4).&lt;/P&gt;&lt;P&gt;          s_gjahr = c - 1.&lt;/P&gt;&lt;P&gt;          APPEND  s_gjahr.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;        s_budat-low = s_budat-low + 1.&lt;/P&gt;&lt;P&gt;      ENDWHILE.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      i = s_budat+7(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF i &amp;gt; 3.&lt;/P&gt;&lt;P&gt;        s_gjahr = s_budat+3(4).&lt;/P&gt;&lt;P&gt;        APPEND s_gjahr.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        c = s_budat+3(4).&lt;/P&gt;&lt;P&gt;        s_gjahr = c - 1.&lt;/P&gt;&lt;P&gt;        APPEND  s_gjahr.&lt;/P&gt;&lt;P&gt;      ENDIF.&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;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2007 03:14:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opening-balance/m-p/2688080#M621725</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-08-27T03:14:02Z</dc:date>
    </item>
  </channel>
</rss>

