<?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 ZBAPI Creation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/zbapi-creation/m-p/5962491#M1337914</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;I am creating ZBAPI with the import parameters as PERNR &amp;amp; SUBTY&lt;/P&gt;&lt;P&gt;and export parameters are RETURN1 &amp;amp; RETURN2&lt;/P&gt;&lt;P&gt;and table parameter is IT_ZITEMS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BAPI is fine till creation in SE37 but when i am trying to add the method as API Method in BOR, it is giving me the following error :&lt;/P&gt;&lt;P&gt;" BAPI &amp;amp;1: BAPI function module &amp;amp;2 has no return parameter "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one tell me wt is the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for ur reply...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------" /&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jul 2009 10:29:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-30T10:29:42Z</dc:date>
    <item>
      <title>ZBAPI Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/zbapi-creation/m-p/5962491#M1337914</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;I am creating ZBAPI with the import parameters as PERNR &amp;amp; SUBTY&lt;/P&gt;&lt;P&gt;and export parameters are RETURN1 &amp;amp; RETURN2&lt;/P&gt;&lt;P&gt;and table parameter is IT_ZITEMS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BAPI is fine till creation in SE37 but when i am trying to add the method as API Method in BOR, it is giving me the following error :&lt;/P&gt;&lt;P&gt;" BAPI &amp;amp;1: BAPI function module &amp;amp;2 has no return parameter "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one tell me wt is the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for ur reply...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------" /&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 10:29:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/zbapi-creation/m-p/5962491#M1337914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T10:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: ZBAPI Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/zbapi-creation/m-p/5962492#M1337915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The return table BAPIRET2 should be as a TABLE parameter not export parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 10:35:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/zbapi-creation/m-p/5962492#M1337915</guid>
      <dc:creator>alex_m</dc:creator>
      <dc:date>2009-07-30T10:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: ZBAPI Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/zbapi-creation/m-p/5962493#M1337916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must have a returned parameter or table with the name RETURN and a type like BAPIRET2 in your function module, look at [Return Parameters (Error Handling)|http://help.sap.com/saphelp_utilities472/helpdata/en/a5/3ec9f74ac011d1894e0000e829fbbd/frameset.htm] in [BAPI Programming Guide Reference (CA-BFA)|http://help.sap.com/saphelp_utilities472/helpdata/en/a5/3ec8074ac011d1894e0000e829fbbd/frameset.htm].&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;You have to create a parameter named Return for every BAPI. This parameter returns exception messages or success messages to the calling program. &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;also &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The export parameter Return can be implemented as follows:&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;As a structure, whereby it must be defined in the function module as an export parameter, as well as in the method in the BOR.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;As a table, whereby it must be defined in the function module as a table parameter, as well as in the method in the BOR as an export parameter.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Look also at parameters' name (RETURN1, 2 and IT_ITEMS are not meaningful)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;The names you choose for the function module parameters are used in the Business Object Repository (BOR) as the names of the associated method parameters. The names of BAPI parameters in the BOR and the names of the parameters in the associated function module must be identical. For this reason parameters in function modules must have meaningful names in English to ensure the BAPI method call can be carried out without any problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When assigning parameter names follow the guidelines below:&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;The names must be in English.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Choose meaningful names and do not use abbreviations.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 10:46:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/zbapi-creation/m-p/5962493#M1337916</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-07-30T10:46:22Z</dc:date>
    </item>
  </channel>
</rss>

