<?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: BAPi in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2527277#M572626</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;go to sse37-&amp;gt;give BAPI name-&amp;gt; Display.&lt;/P&gt;&lt;P&gt;See the Documentation , by clicking button upper right.&lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2007 05:47:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-18T05:47:09Z</dc:date>
    <item>
      <title>BAPi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2527276#M572625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can i use this BAPi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_COMPANYCODE_GET_PERIOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hav com code and posting date.&lt;/P&gt;&lt;P&gt;what i hav to pass and what it wil giv &lt;/P&gt;&lt;P&gt;pl urgent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 05:44:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2527276#M572625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T05:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: BAPi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2527277#M572626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;go to sse37-&amp;gt;give BAPI name-&amp;gt; Display.&lt;/P&gt;&lt;P&gt;See the Documentation , by clicking button upper right.&lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 05:47:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2527277#M572626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T05:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: BAPi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2527278#M572627</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;&amp;lt;b&amp;gt;Retrieve fiscal year and period:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;The below code shows how to use function modules BAPI_COMPANYCODE_GET_PERIOD and &lt;/P&gt;&lt;P&gt;DETERMINE_PERIOD to retrieve fiscal year and fiscal period for a specific date.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.......................................................................&lt;/P&gt;&lt;P&gt;*: Report:  ZFISCALYR                                                  :&lt;/P&gt;&lt;P&gt;*:                                                                     :&lt;/P&gt;&lt;P&gt;*: Author:                                                                   :&lt;/P&gt;&lt;P&gt;*:                                                                     :&lt;/P&gt;&lt;P&gt;*: Date  :  2007                                                       :&lt;/P&gt;&lt;P&gt;*:                                                                     :&lt;/P&gt;&lt;P&gt;*: Description: Demonstrates how to return the corresponding fiscal    :&lt;/P&gt;&lt;P&gt;*:              year and posting period for a company code and posting :&lt;/P&gt;&lt;P&gt;*:              date or posting date and fiscal year variant.          :&lt;/P&gt;&lt;P&gt;*:.....................................................................:&lt;/P&gt;&lt;P&gt;REPORT  zfiscalyr NO STANDARD PAGE HEADING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:     p_bukrs TYPE ekko-bukrs,&lt;/P&gt;&lt;P&gt;                p_bedat TYPE ekko-bedat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gd_fiscalyr  TYPE bapi0002_4-fiscal_year,&lt;/P&gt;&lt;P&gt;      gd_fiscalp   TYPE bapi0002_4-fiscal_period.&lt;/P&gt;&lt;P&gt;DATA: gd_fiscalyr2 TYPE T009B-BDATJ,&lt;/P&gt;&lt;P&gt;      gd_fiscalp2  TYPE bapi0002_4-fiscal_period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gd_periv     TYPE t009-periv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;*START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get fiscal year and period - (requires date and company code)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION&amp;lt;b&amp;gt; 'BAPI_COMPANYCODE_GET_PERIOD'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      companycodeid = p_bukrs&lt;/P&gt;&lt;P&gt;      posting_date  = p_bedat&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      fiscal_year   = gd_fiscalyr&lt;/P&gt;&lt;P&gt;      fiscal_period = gd_fiscalp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Alternative fiscal year function module&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;- (requires date and fiscal year variant code from T009 table)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;gets first entry in fiscal year variant table (will need to choose&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;correct one from table rather than just using first entry)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT SINGLE periv&lt;/P&gt;&lt;P&gt;    FROM t009&lt;/P&gt;&lt;P&gt;    INTO gd_periv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get fiscal year and period&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'DETERMINE_PERIOD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      date                      = p_bedat&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   PERIOD_IN                 = '000'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      version                   = gd_periv&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;      period                    = gd_fiscalp2&lt;/P&gt;&lt;P&gt;      year                      = gd_fiscalyr2&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;      period_in_not_valid       = 1&lt;/P&gt;&lt;P&gt;      period_not_assigned       = 2&lt;/P&gt;&lt;P&gt;      version_undefined         = 3&lt;/P&gt;&lt;P&gt;      OTHERS                    = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;*END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  WRITE:/ 'From function module: BAPI_COMPANYCODE_GET_PERIOD',&lt;/P&gt;&lt;P&gt;        / 'Fiscal year is:', gd_fiscalyr,&lt;/P&gt;&lt;P&gt;        / 'Fiscal period is:', gd_fiscalp.&lt;/P&gt;&lt;P&gt;  SKIP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE:/ 'From function module: DETERMINE_PERIOD',&lt;/P&gt;&lt;P&gt;        / 'Fiscal year is:', gd_fiscalyr2,&lt;/P&gt;&lt;P&gt;        / 'Fiscal period is:', gd_fiscalp2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Pls reward all helpful points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ameet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 05:49:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2527278#M572627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T05:49:32Z</dc:date>
    </item>
  </channel>
</rss>

