<?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 Error while creating own BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-own-bapi/m-p/3942917#M943096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trying this step-by-step guide with own names&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf" target="test_blank"&gt;http://www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Got two errors:&lt;/P&gt;&lt;P&gt;1. In SWO1 while trying to add api methods he said:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI &amp;amp;1: The name of the function module &amp;amp;2 does not begin with 'BAPI'&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;Searching in forum, I found that my structures have to begin with ZBAPI. But&lt;/P&gt;&lt;P&gt;why the tutorial can do this? In tutorial the structure is named ZVEND. Why they&lt;/P&gt;&lt;P&gt;can do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The second error is telling me, that I have no return parameter. Thats not true.&lt;/P&gt;&lt;P&gt;In my export tab of my function module, I have included a Parameter BAPIRET2 TYPE BAPIRET2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to insert a table like this:&lt;/P&gt;&lt;P&gt;RETURN TYPE BAPIRETURN&lt;/P&gt;&lt;P&gt;He is telling me that "TABLES parameters are obsolete"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In every tutorial they are using like, but I am not able to use LIKE, only TYPE is this something they changed in the SAP version &amp;gt; 4.7 ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does every BAPI needs a return structure or table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone have some good documents about how to create an own bapi let me know. &lt;/P&gt;&lt;P&gt;But please no short description or 1000 links like this: &lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3707935"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jun 2008 16:50:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-02T16:50:30Z</dc:date>
    <item>
      <title>Error while creating own BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-own-bapi/m-p/3942917#M943096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trying this step-by-step guide with own names&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf" target="test_blank"&gt;http://www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Got two errors:&lt;/P&gt;&lt;P&gt;1. In SWO1 while trying to add api methods he said:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI &amp;amp;1: The name of the function module &amp;amp;2 does not begin with 'BAPI'&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;Searching in forum, I found that my structures have to begin with ZBAPI. But&lt;/P&gt;&lt;P&gt;why the tutorial can do this? In tutorial the structure is named ZVEND. Why they&lt;/P&gt;&lt;P&gt;can do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The second error is telling me, that I have no return parameter. Thats not true.&lt;/P&gt;&lt;P&gt;In my export tab of my function module, I have included a Parameter BAPIRET2 TYPE BAPIRET2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to insert a table like this:&lt;/P&gt;&lt;P&gt;RETURN TYPE BAPIRETURN&lt;/P&gt;&lt;P&gt;He is telling me that "TABLES parameters are obsolete"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In every tutorial they are using like, but I am not able to use LIKE, only TYPE is this something they changed in the SAP version &amp;gt; 4.7 ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does every BAPI needs a return structure or table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone have some good documents about how to create an own bapi let me know. &lt;/P&gt;&lt;P&gt;But please no short description or 1000 links like this: &lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3707935"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 16:50:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-own-bapi/m-p/3942917#M943096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-02T16:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error while creating own BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-own-bapi/m-p/3942918#M943097</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;Here are the answers for your queries.  (Version 4.7)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.  The function module name should start with "ZBAPI" the &lt;/P&gt;&lt;P&gt;     one we are creating our own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     All the structures we refer for parameters in function moudle&lt;/P&gt;&lt;P&gt;     should also start with "ZBAPI" &lt;/P&gt;&lt;P&gt;     (eg., Import Params: VBELN LIKE ZVBAK-VBELN).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.  There must be a return parameter in Export List in the &lt;/P&gt;&lt;P&gt;     function module like the one below. Its a BAPI standard &lt;/P&gt;&lt;P&gt;     return variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Export Params:RETURN LIKE ZBAPIRETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     In BAPI Function modules we pass parameters as "pass &lt;/P&gt;&lt;P&gt;     by value". That's why Tables are not used as they are &lt;/P&gt;&lt;P&gt;     passed by reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Murthy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 17:31:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-own-bapi/m-p/3942918#M943097</guid>
      <dc:creator>former_member787646</dc:creator>
      <dc:date>2008-06-02T17:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error while creating own BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-own-bapi/m-p/3942919#M943098</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;There is a change in the following line..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export Params:RETURN LIKE &lt;DEL&gt;ZBAPIRETURN&lt;/DEL&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export Params:RETURN LIKE &lt;STRONG&gt;BAPIRETURN&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Murthy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 17:33:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-own-bapi/m-p/3942919#M943098</guid>
      <dc:creator>former_member787646</dc:creator>
      <dc:date>2008-06-02T17:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error while creating own BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-own-bapi/m-p/3942920#M943099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Export Params:RETURN LIKE &lt;STRONG&gt;BAPIRETURN&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying this, I got the error message: &lt;/P&gt;&lt;P&gt;LIKE as typingfor parameters is obsolete!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I just be able to use TYPE or TYPE TO REF.&lt;/P&gt;&lt;P&gt;Or am I wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 08:16:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-own-bapi/m-p/3942920#M943099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T08:16:00Z</dc:date>
    </item>
  </channel>
</rss>

