<?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: Regarding BAPI Function Module in BDC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-function-module-in-bdc/m-p/2512575#M568265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to call the function module 'BAPI_GL_ACC_EXISTENCECHECK' twice, then only you will check the both. based on LV_RETURN heck for the other company code, if the first Company code is having the GL accoutn then no need to check for the second comnay code, if the first one is not having then check the for the second one, if the both company codes does not have the GL accoutn then pass the message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jul 2007 06:28:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-12T06:28:43Z</dc:date>
    <item>
      <title>Regarding BAPI Function Module in BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-function-module-in-bdc/m-p/2512574#M568264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam using the following function module&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_GL_ACC_EXISTENCECHECK'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;companycode = 'IN14'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;glacct = lv_saknr&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;return = lv_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this function module we are having Company Code as IN14, i need to give both IN14 and IN25 i,e i need to use this program for IN14 and IN25.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in Advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will provide points for best solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 06:20:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-function-module-in-bdc/m-p/2512574#M568264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T06:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI Function Module in BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-function-module-in-bdc/m-p/2512575#M568265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to call the function module 'BAPI_GL_ACC_EXISTENCECHECK' twice, then only you will check the both. based on LV_RETURN heck for the other company code, if the first Company code is having the GL accoutn then no need to check for the second comnay code, if the first one is not having then check the for the second one, if the both company codes does not have the GL accoutn then pass the message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 06:28:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-function-module-in-bdc/m-p/2512575#M568265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T06:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI Function Module in BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-function-module-in-bdc/m-p/2512576#M568266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to call the function module twice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead you can write two select statements to check for tables t001, ska1 and skb1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select t001&lt;SUB&gt;bukrs t001&lt;/SUB&gt;ktopl ska1&lt;SUB&gt;saknr into table itab1 from t001 join ska1 where t001&lt;/SUB&gt;ktopl = ska1&lt;SUB&gt;ktopl and ska1&lt;/SUB&gt;saknr in (IN14, IN25 ).&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;select saknr from skb1 into table it_saknr for all entries in itab1 where skb1&lt;SUB&gt;bukrs = itab1-bukrs and skb1&lt;/SUB&gt;saknr = itab1-saknr.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;read table it_saknr index 1 into wa_saknr.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;take the first one in the internal table &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;does not exist.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;does not exist.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 08:20:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-function-module-in-bdc/m-p/2512576#M568266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T08:20:06Z</dc:date>
    </item>
  </channel>
</rss>

