<?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: New to BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-to-bapi/m-p/860364#M47925</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Margie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't use LIKE but you can use TYPE. So you use TYPE BAPIRET2 rather than LIKE BAPIRET2 (the result is the same its just semantics).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might want to think about making your RETURN field a TABLES parameter so that you can return multiple messages if required. Refer to BAPI_SALESORDER_CREATEFROMDAT2 as an example of this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 May 2005 07:29:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-05-21T07:29:53Z</dc:date>
    <item>
      <title>New to BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-to-bapi/m-p/860362#M47923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Purpose: I am trying to create a new BAPI to generate a list of Flight Customers that will display both Customer ID and Customer Name using FlightCustomer Business Object type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI name: Z_BAPI_GET_CUSTOMER_LIST&lt;/P&gt;&lt;P&gt;Processing type: Remote-enable module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I define a reference type?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting an error message of 'Reference Parameter are not allowed with RFC' when trying to define the following EXPORT parameters:&lt;/P&gt;&lt;P&gt;Parameter name: RETURN&lt;/P&gt;&lt;P&gt;Type spec: LIKE&lt;/P&gt;&lt;P&gt;Reference type: BAPIRET2&lt;/P&gt;&lt;P&gt;Pass type: no&lt;/P&gt;&lt;P&gt;Short text: Return parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise. Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2005 02:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-to-bapi/m-p/860362#M47923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-21T02:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: New to BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-to-bapi/m-p/860363#M47924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Collins,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't pass parameter by reference in a BAPI.&lt;/P&gt;&lt;P&gt;BAPI is remote enabled, if we pass parameters  by reference then it points to local memory address which has no meaning in the BAPI server, so you must pass parameters by value only. You can do it by checking the option Pass By Value in the EXPORT tab of BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear to you now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Narinder Hartala&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Narinder Hartala&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2005 04:47:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-to-bapi/m-p/860363#M47924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-21T04:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: New to BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-to-bapi/m-p/860364#M47925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Margie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't use LIKE but you can use TYPE. So you use TYPE BAPIRET2 rather than LIKE BAPIRET2 (the result is the same its just semantics).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might want to think about making your RETURN field a TABLES parameter so that you can return multiple messages if required. Refer to BAPI_SALESORDER_CREATEFROMDAT2 as an example of this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2005 07:29:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-to-bapi/m-p/860364#M47925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-21T07:29:53Z</dc:date>
    </item>
  </channel>
</rss>

