<?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/2329195#M512272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Here is the link which explaines how to create a New BAPI with screen shots&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/abap/bapi/example.htm" target="test_blank"&gt;http://www.erpgenie.com/abap/bapi/example.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3106649"&gt;&lt;/A&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>Tue, 05 Jun 2007 08:49:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-05T08:49:42Z</dc:date>
    <item>
      <title>BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2329192#M512269</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;    Could anybody give sample example to bapi.How to create new bapi and &lt;/P&gt;&lt;P&gt;     use it.While coding.(example code required for this.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;SAISRI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 07:39:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2329192#M512269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T07:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2329193#M512270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check following URL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/sap/abap/bapi/example.htm" target="test_blank"&gt;http://www.erpgenie.com/sap/abap/bapi/example.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award points if found useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Indrajit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 07:48:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2329193#M512270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T07:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2329194#M512271</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;BAPIs are standardized programming interfaces (methods) enabling external applications to access business processes and data in the R/3 System.&lt;/P&gt;&lt;P&gt;BAPIs provide stable and standardized methods to achieve seamless integration between the R/3 System and external applications, legacy systems and add-ons.&lt;/P&gt;&lt;P&gt;BAPIs are defined in the BOR(Business object repository) as methods of SAP business object types that carry out specific business functions. &lt;/P&gt;&lt;P&gt;BAPIs are implemented as RFC-enabled function modules and are created in the Function Builder of the ABAP Workbench.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The process of defining and implementing a BAPI consists of the &lt;/P&gt;&lt;P&gt;following steps &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Describing the Scenario the BAPI is Used in &lt;/P&gt;&lt;P&gt;Reviewing the BAPI Concept and BAPI Scenario &lt;/P&gt;&lt;P&gt;Defining a BAPI and Its Interface &lt;/P&gt;&lt;P&gt;Creating Individual Programming Objects &lt;/P&gt;&lt;P&gt;Testing the BAPI &lt;/P&gt;&lt;P&gt;Releasing and Freezing the BAPI .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction sw01.&lt;/P&gt;&lt;P&gt;Go to transaction sw01  (that is Tools-&amp;gt;Business Framework -&amp;gt; BAPI Development -&amp;gt;Business Object builder ) .&lt;/P&gt;&lt;P&gt;Select the business object ( generally of type BUS nnnn ) , according to the functional requirement for which the BAPI is being created.&lt;/P&gt;&lt;P&gt;Open the business object in change mode. Then Select Utilities -&amp;gt;API Methods -&amp;gt;Add method. &lt;/P&gt;&lt;P&gt;Then enter the name of the function module and select Continue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the next dialog box, following information needs to be specified :&lt;/P&gt;&lt;P&gt;	Method : Suggest an appropriate name for the method,&lt;/P&gt;&lt;P&gt;       Texts : Enter description for the BAPI,&lt;/P&gt;&lt;P&gt;       Radio buttons : Dialog, Synchronous, Instance-independent . BAPI &amp;#145;s are usually implemented synchronously.&lt;/P&gt;&lt;P&gt;       Now, select Next step.&lt;/P&gt;&lt;P&gt;To create the method select Yes in the next dialog box.&lt;/P&gt;&lt;P&gt;After the program has been generated and executed, check the program in the method just created&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the following link,,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/200dd1cc-589e-2910-98a9-bb2c48b78dfa" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/200dd1cc-589e-2910-98a9-bb2c48b78dfa&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;please reward if useful...&amp;lt;/b&amp;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;&lt;/P&gt;&lt;P&gt;Dinesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 08:41:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2329194#M512271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T08:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2329195#M512272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Here is the link which explaines how to create a New BAPI with screen shots&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/abap/bapi/example.htm" target="test_blank"&gt;http://www.erpgenie.com/abap/bapi/example.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3106649"&gt;&lt;/A&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>Tue, 05 Jun 2007 08:49:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2329195#M512272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T08:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2329196#M512273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BAPI stands for Business Application Programming Interface.  It is a set of interfaces to object-oriented programming methods that enable a programmer to integrate third-party software into the proprietary R/3 product from SAP. For specific business tasks such as uploading transactional data, BAPIs are implemented and stored in the R/3 system as remote function call (RFC) modules. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 5 different steps in BAPI. &lt;/P&gt;&lt;P&gt;- Create BAPI Structure &lt;/P&gt;&lt;P&gt;- Create BAPI Function Module or API Method. &lt;/P&gt;&lt;P&gt;- Create BAPI object &lt;/P&gt;&lt;P&gt;- Release BAPI Function Module. &lt;/P&gt;&lt;P&gt;- Release BAPI object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Step1.&amp;lt;/b&amp;gt; Creating BAPI Structure: &lt;/P&gt;&lt;P&gt;- Go to &amp;lt;SE11&amp;gt;. &lt;/P&gt;&lt;P&gt;- Select Data Type &amp;amp; Enter a name. &lt;/P&gt;&lt;P&gt;- Click on Create. &lt;/P&gt;&lt;P&gt;- Select Structure &amp;amp; hit ENTER. &lt;/P&gt;&lt;P&gt;- Enter the fields from your database. Make sure that the first field is the Primary Key Field. &lt;/P&gt;&lt;P&gt;- Then SAVE &amp;amp; ACTIVATE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Step 2.&amp;lt;/b&amp;gt; Creating BAPI module: &lt;/P&gt;&lt;P&gt;- Enter Transaction code &amp;lt;SE37&amp;gt;. &lt;/P&gt;&lt;P&gt;- Before entering any thing, from the present screen that you are in, select the menu &lt;/P&gt;&lt;P&gt;Goto -&amp;gt; Function Groups -&amp;gt; Create Group. &lt;/P&gt;&lt;P&gt;Enter a name (Note: This name Must start with ZBAPI) &lt;/P&gt;&lt;P&gt;Let this screen be as it is and open another window and there, enter transaction code &amp;lt;SE80&amp;gt;. &lt;/P&gt;&lt;P&gt;Click on Inactive Objects. &lt;/P&gt;&lt;P&gt;Select the group that you just created and click on Activate. &lt;/P&gt;&lt;P&gt;- Go back to &amp;lt;SE37&amp;gt; screen and enter a name and hit &amp;lt;ENTER&amp;gt;. Then enter the group name that you just created and activated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now click on the first Tab that says [ATTRIBUTES] and select the radio button that says remote-enabled module since we will be accessing this from any external system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then click on the second tab that says [IMPORT]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter a PARAMETER NAME, TYPE and the structure you created in the first step. Also select the check box &amp;#145;Pa&amp;#146;. All remotely enabled functional modules MUST be Pa enabled, where Pa means &amp;#145;Passed by Value&amp;#146; and if you don&amp;#146;t select &amp;#145;Pa&amp;#146;, then that means it will be passed by reference.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then click on tab that says [EXPORT]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter the following as is in the first three fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RETURN TYPE BAPIRETURN (These 3 field values are always same) &lt;/P&gt;&lt;P&gt;Here also select &amp;#145;Pa&amp;#146; meaning Pass by value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: BAPIRETURN contains structure with message fields. &lt;/P&gt;&lt;P&gt;Then SAVE and ACTIVATE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Step 3.&amp;lt;/b&amp;gt; Creating BAPI object: &lt;/P&gt;&lt;P&gt;- Enter Tr.Code &amp;lt;SWO1&amp;gt; (Note. It is letter &amp;#145;O&amp;#146; and not Zero). &lt;/P&gt;&lt;P&gt;- Enter a name and then click on create. Enter details. &lt;/P&gt;&lt;P&gt;- Enter Application &amp;#145;M&amp;#146;, if you are using standard table Mara. If you are using your own database then select &amp;#145;Z&amp;#146; at the bottom. &lt;/P&gt;&lt;P&gt;- Then hit &amp;lt;ENTER&amp;gt;. &lt;/P&gt;&lt;P&gt;- Now we have to add &amp;#145;Methods&amp;#146;. High light METHODS and then select the following from the menu: Goto Utilities -&amp;gt; API Methods -&amp;gt; Add Methods. &lt;/P&gt;&lt;P&gt;- Enter function Module name and hit &amp;lt;ENTER&amp;gt;. &lt;/P&gt;&lt;P&gt;- Select the second FORWARD ARROW button (&amp;gt;)to go to next step. &lt;/P&gt;&lt;P&gt;- Check if every thing looks ok and again click on FORWARD ARROW button (&amp;gt;). &lt;/P&gt;&lt;P&gt;- Then select &amp;#145;YES&amp;#146; and click on &amp;lt;SAVE&amp;gt;. &lt;/P&gt;&lt;P&gt;- Now on a different screen goto TR.CODE &amp;lt;SE37&amp;gt;. Enter Function Module name and select from the top menu Function Module -&amp;gt; Release -&amp;gt; Release. &lt;/P&gt;&lt;P&gt;- Goback to TR.CODE &amp;lt;SWO1&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here select the menu combination shown below in the same order. &lt;/P&gt;&lt;P&gt;- Edit -&amp;gt; Change Release Status -&amp;gt; Object Type Component -&amp;gt; To Implemented. &lt;/P&gt;&lt;P&gt;- Edit -&amp;gt; Change Release Status -&amp;gt; Object Type Component -&amp;gt; To Released. &lt;/P&gt;&lt;P&gt;- Edit -&amp;gt; Change Release Status -&amp;gt; Object Type -&amp;gt; To Implemented. &lt;/P&gt;&lt;P&gt;- Edit -&amp;gt; Change Release Status -&amp;gt; Object Type -&amp;gt; To Released. &lt;/P&gt;&lt;P&gt;- Then click on &amp;lt;SAVE&amp;gt;. &lt;/P&gt;&lt;P&gt;- Then click on Generate Button (4th button from left hand side looks like spinning wheel). &lt;/P&gt;&lt;P&gt;- Then Click on the button that says &amp;#145;PROGRAM&amp;#146; to see the source code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To check if this is present in work flow goto transaction code &amp;lt;BAPI&amp;gt;. &lt;/P&gt;&lt;P&gt;Here it shows business object repository. &lt;/P&gt;&lt;P&gt;- First click on the middle button and then select &amp;#147;ALL&amp;#148; and hit ENTER. &lt;/P&gt;&lt;P&gt;- Goto tab [ALPHABETICAL] and look for the object that you created. This shows that the BAPI object has been created successfully.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 03:29:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2329196#M512273</guid>
      <dc:creator>Yogitha</dc:creator>
      <dc:date>2007-06-06T03:29:51Z</dc:date>
    </item>
  </channel>
</rss>

