<?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: creating zbapi in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-zbapi/m-p/3455855#M830266</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;this the step by step procedure..&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;&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;Step1. Creating BAPI Structure: &lt;/P&gt;&lt;P&gt;&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;Note: Always BAPI should be in a development class with request number (Not Local Object). &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;Step 2. Creating BAPI module: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter TR.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 TR.CODE &amp;lt;SE80). &lt;/P&gt;&lt;P&gt;Click on the Third ICON that says 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;Notice that the group you created will disappear from the list of inactive objects. &lt;/P&gt;&lt;P&gt;&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;NOTE: When you release a function module the respective group will be attached to that particular application.&lt;/P&gt;&lt;P&gt; It cannot be used for any other application. NEVER include an already existing group that is attached to another module. &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 &lt;/P&gt;&lt;P&gt;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( here from date and to date), TYPE and the structure you created in the first step. Also select the check box &amp;#145;Pa&amp;#146;. &lt;/P&gt;&lt;P&gt;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;,&lt;/P&gt;&lt;P&gt;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;&lt;/P&gt;&lt;P&gt;Then SAVE and ACTIVATE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 3. Creating BAPI object: &lt;/P&gt;&lt;P&gt;&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;NOTE: Make sure that that Object Type and Program name are SAME. &lt;/P&gt;&lt;P&gt;&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: &lt;/P&gt;&lt;P&gt;Goto Utilities -&amp;gt; API Methods -&amp;gt; Add Methods. &lt;/P&gt;&lt;P&gt;&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;&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 TR.CODE &amp;lt;BAPI&amp;gt;. &lt;/P&gt;&lt;P&gt;Here it shows business object repository. &lt;/P&gt;&lt;P&gt;&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arunsri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Feb 2008 10:08:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-25T10:08:12Z</dc:date>
    <item>
      <title>creating zbapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-zbapi/m-p/3455853#M830264</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;Pls can you help me&lt;/P&gt;&lt;P&gt;how to create zbapi for material list&lt;/P&gt;&lt;P&gt;based on parameters like fromdate to todate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i enter fromdate  to todate all the materials should display&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;mars&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 09:37:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-zbapi/m-p/3455853#M830264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T09:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: creating zbapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-zbapi/m-p/3455854#M830265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dude,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this link helps you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saptechnical.com/Tutorials/BAPI/BAPIMainPage.htm" target="test_blank"&gt;http://www.saptechnical.com/Tutorials/BAPI/BAPIMainPage.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lakshmanan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 09:56:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-zbapi/m-p/3455854#M830265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T09:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: creating zbapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-zbapi/m-p/3455855#M830266</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;this the step by step procedure..&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;&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;Step1. Creating BAPI Structure: &lt;/P&gt;&lt;P&gt;&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;Note: Always BAPI should be in a development class with request number (Not Local Object). &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;Step 2. Creating BAPI module: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter TR.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 TR.CODE &amp;lt;SE80). &lt;/P&gt;&lt;P&gt;Click on the Third ICON that says 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;Notice that the group you created will disappear from the list of inactive objects. &lt;/P&gt;&lt;P&gt;&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;NOTE: When you release a function module the respective group will be attached to that particular application.&lt;/P&gt;&lt;P&gt; It cannot be used for any other application. NEVER include an already existing group that is attached to another module. &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 &lt;/P&gt;&lt;P&gt;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( here from date and to date), TYPE and the structure you created in the first step. Also select the check box &amp;#145;Pa&amp;#146;. &lt;/P&gt;&lt;P&gt;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;,&lt;/P&gt;&lt;P&gt;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;&lt;/P&gt;&lt;P&gt;Then SAVE and ACTIVATE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 3. Creating BAPI object: &lt;/P&gt;&lt;P&gt;&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;NOTE: Make sure that that Object Type and Program name are SAME. &lt;/P&gt;&lt;P&gt;&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: &lt;/P&gt;&lt;P&gt;Goto Utilities -&amp;gt; API Methods -&amp;gt; Add Methods. &lt;/P&gt;&lt;P&gt;&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;&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 TR.CODE &amp;lt;BAPI&amp;gt;. &lt;/P&gt;&lt;P&gt;Here it shows business object repository. &lt;/P&gt;&lt;P&gt;&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arunsri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 10:08:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-zbapi/m-p/3455855#M830266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T10:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: creating zbapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-zbapi/m-p/3455856#M830267</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;Please remember that BAPI is a function module that you will have to create via SE37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While creating it must be set as 'Remote Enabled', else it won't be a BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To pass parameters to a BAPI, structure is a must, even if its only one filed that you pass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BAPI return parameter is RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your function module you have to design your logic accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please don't forget to release the BAPI in appropriate steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 10:15:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-zbapi/m-p/3455856#M830267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T10:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: creating zbapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-zbapi/m-p/3455857#M830268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;STEP 1 - Define a structures for the BAPI&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this step structures for the parameters and tables of the function module used for &lt;/P&gt;&lt;P&gt;the BAPI are defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Data type -&amp;gt; Structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define the following structures:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZBAPI_ORDER_STATUS_IMPORT which contains the following fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ORDERID Order number (Keyfield)&lt;/P&gt;&lt;P&gt;SPRAS Language&lt;/P&gt;&lt;P&gt;ExcludeInactive - Checkbox - Exclude inactive status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZBAPISTAT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJNR like JEST-OBJNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STAT like JEST-STAT&lt;/P&gt;&lt;P&gt;INACT like JEST-INACT&lt;/P&gt;&lt;P&gt;TXT04 like TJ02T-TXT04&lt;/P&gt;&lt;P&gt;TXT30 likeTJ02T-TXT30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Important note:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will have to define a structure for every parameter in the BAPI. You cannot use &lt;/P&gt;&lt;P&gt;the same structures used in existing applications because BAPI structures are frozen &lt;/P&gt;&lt;P&gt;when BAPIs are released and then there are restrictions on changing them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZBAPI_ORDER_STATUS_IMPORT&lt;/P&gt;&lt;P&gt;ZBAPI_ORDER_S&lt;/P&gt;&lt;P&gt;TATUS_IMPORT&lt;/P&gt;&lt;P&gt;ZBAPISTAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;STEP 2 - Write Function Module&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Important notes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each BAPI must have its own function group.&lt;/P&gt;&lt;P&gt;Under the attrbutes tab remember to select Processing Type Remote Enabled &lt;/P&gt;&lt;P&gt;module, otherwise the function module cannot be invoked via RFC and used as a &lt;/P&gt;&lt;P&gt;BAPI&lt;/P&gt;&lt;P&gt;Import/Export parameters can only be BY VALUE for an RFC enabled function &lt;/P&gt;&lt;P&gt;module&lt;/P&gt;&lt;P&gt;We are only creating one BAPI in this example, but you can create related BAPIs &lt;/P&gt;&lt;P&gt;in the same function pool, so they will be able to share global data.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;attributes&lt;/P&gt;&lt;P&gt;Import Parameters&lt;/P&gt;&lt;P&gt;Export Parameters&lt;/P&gt;&lt;P&gt;Tables&lt;/P&gt;&lt;P&gt;Code&lt;/P&gt;&lt;P&gt;Notes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The subroutine SET_RETURN_MESSAGE is a standard routine used for BAPIs that use the BAPIRETURN structure&lt;/P&gt;&lt;P&gt;In form Z_BAPI_GET_ORDER_SYSTEM_STATUS there is a test IF 1 = 2. If the test is true a mesage is displayed. The condition will obviously never be true, and we will never want to display a message in a BAPI. The reason why it &lt;/P&gt;&lt;P&gt;is included is, that it create a reference for the message, so that the WHERE USED funstionallity can be used for the message. This is the SAP standard way to handle it, copied from the Company Code GetList BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE LZBAPISTATUSUXX&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;  THIS FILE IS GENERATED BY THE FUNCTION LIBRARY.             *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NEVER CHANGE IT MANUALLY, PLEASE!                           *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*****************************************************************&lt;/P&gt;&lt;P&gt;INCLUDE LZBAPISTATUSU02.&lt;/P&gt;&lt;P&gt;"Z_BAPI_GET_ORDER_SYSTEM_STATUS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE LZBAPISTATUSTOP - Global data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION-POOL ZBAPISTATUS.                  "MESSAGE-ID Z3&lt;/P&gt;&lt;P&gt;Types:&lt;/P&gt;&lt;P&gt;begin of Type_tj02t,&lt;/P&gt;&lt;P&gt;istat  like tj02t-istat,&lt;/P&gt;&lt;P&gt;txt04  like tj02t-txt04,&lt;/P&gt;&lt;P&gt;txt30  like tj02t-txt30,&lt;/P&gt;&lt;P&gt;end of type_tj02t.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Declarations for TABLE parameter&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;T_BAPISTAT like ZBAPISTAT occurs 0,&lt;/P&gt;&lt;P&gt;G_BAPISTAT like ZBAPISTAT,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Table for object texts&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;t_tj02t    type type_tj02t occurs 0,&lt;/P&gt;&lt;P&gt;g_tj02t    type type_tj02t.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Structure for return messages&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;BEGIN OF MESSAGE,&lt;/P&gt;&lt;P&gt;MSGTY LIKE SY-MSGTY,&lt;/P&gt;&lt;P&gt;MSGID LIKE SY-MSGID,&lt;/P&gt;&lt;P&gt;MSGNO LIKE SY-MSGNO,&lt;/P&gt;&lt;P&gt;MSGV1 LIKE SY-MSGV1,&lt;/P&gt;&lt;P&gt;MSGV2 LIKE SY-MSGV2,&lt;/P&gt;&lt;P&gt;MSGV3 LIKE SY-MSGV3,&lt;/P&gt;&lt;P&gt;MSGV4 LIKE SY-MSGV4,&lt;/P&gt;&lt;P&gt;END OF MESSAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE LZBAPISTATUSF01 - Subroutines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***INCLUDE LZBAPISTATUSF01 .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  SET_RETURN_MESSAGE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This routine is used for setting the BAPI return message.&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;The routine is a standard routine for BAPIs that handles the message&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;structure for the BAPIRETURN structure. It has been copied from the&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BAPI Company Code Getlist&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_MESSAGE  text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     &amp;lt;--P_RETURN  text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form SET_RETURN_MESSAGE USING    VALUE(P_MESSAGE)   LIKE MESSAGE&lt;/P&gt;&lt;P&gt;CHANGING P_RETURN  LIKE BAPIRETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK NOT MESSAGE IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BALW_BAPIRETURN_GET'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;TYPE       = P_MESSAGE-MSGTY&lt;/P&gt;&lt;P&gt;CL         = P_MESSAGE-MSGID&lt;/P&gt;&lt;P&gt;NUMBER     = P_MESSAGE-MSGNO&lt;/P&gt;&lt;P&gt;PAR1       = P_MESSAGE-MSGV1&lt;/P&gt;&lt;P&gt;PAR2       = P_MESSAGE-MSGV2&lt;/P&gt;&lt;P&gt;PAR3       = P_MESSAGE-MSGV3&lt;/P&gt;&lt;P&gt;PAR4       = P_MESSAGE-MSGV4&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         LOG_NO     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         LOG_MSG_NO = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;BAPIRETURN = P_RETURN&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;OTHERS     = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " SET_RETURN_MESSAGE&lt;/P&gt;&lt;P&gt;FUNCTION Z_BAPI_GET_ORDER_STATUS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION z_bapi_get_order_system_status.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(I_AUFNR) TYPE  AUFNR&lt;/P&gt;&lt;P&gt;*"     VALUE(I_SPRAS) TYPE  SPRAS DEFAULT SY-LANGU&lt;/P&gt;&lt;P&gt;*"     VALUE(I_EXCLUDEINACTIVE) TYPE  CHAR1 OPTIONAL&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(RETURN) TYPE  BAPIRETURN&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      T_BAPISTAT STRUCTURE  ZBAPISTAT&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;**&lt;/P&gt;&lt;P&gt;*"Local interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(I_AUFNR) TYPE  AUFNR&lt;/P&gt;&lt;P&gt;*"     VALUE(I_SPRAS) TYPE  SPRAS DEFAULT SY-LANGU&lt;/P&gt;&lt;P&gt;*"     VALUE(I_EXCLUDEINACTIVE) TYPE  CHAR1 OPTIONAL&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(RETURN) TYPE  BAPIRET2&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      T_BAPISTAT STRUCTURE  ZBAPISTAT&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;l_aufnr LIKE afko-aufnr,&lt;/P&gt;&lt;P&gt;l_objnr LIKE jest-objnr.&lt;/P&gt;&lt;P&gt;&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;Check if order exists&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;********************************************&lt;/P&gt;&lt;P&gt;SELECT SINGLE aufnr&lt;/P&gt;&lt;P&gt;FROM afko&lt;/P&gt;&lt;P&gt;INTO  l_aufnr&lt;/P&gt;&lt;P&gt;WHERE aufnr = BAPI_ORDER_STATUS_IMPORT-orderid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;CLEAR message.&lt;/P&gt;&lt;P&gt;message-msgty = 'E'.&lt;/P&gt;&lt;P&gt;message-msgid = 'Z3'.&lt;/P&gt;&lt;P&gt;message-msgno = '000'.&lt;/P&gt;&lt;P&gt;message-msgv1 = BAPI_ORDER_STATUS_IMPORT-orderid.&lt;/P&gt;&lt;P&gt;PERFORM set_return_message USING    message&lt;/P&gt;&lt;P&gt;      CHANGING return.&lt;/P&gt;&lt;P&gt;IF 1 = 2.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    The only reason to include this statement, that will obviously&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    never execute, is that it will create a referecence so that you&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    can find out where a particular message is being used. This&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    functionality is used by the BAPIs programmed by SAP&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;MESSAGE e000(z3).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;CHECK return IS INITIAL.&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;Read order status&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;********************************************&lt;/P&gt;&lt;P&gt;CONCATENATE 'OR' BAPI_ORDER_STATUS_IMPORT-orderid INTO l_objnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF BAPI_ORDER_STATUS_IMPORT-i_excludeinactive = 'X'.&lt;/P&gt;&lt;P&gt;SELECT objnr stat inact&lt;/P&gt;&lt;P&gt;FROM  jest&lt;/P&gt;&lt;P&gt;INTO  TABLE t_bapistat&lt;/P&gt;&lt;P&gt;WHERE objnr = l_objnr AND&lt;/P&gt;&lt;P&gt;inact &amp;lt;&amp;gt; 'X'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;SELECT objnr stat inact&lt;/P&gt;&lt;P&gt;FROM  jest&lt;/P&gt;&lt;P&gt;INTO  TABLE t_bapistat&lt;/P&gt;&lt;P&gt;WHERE objnr = l_objnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  No object status found&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CLEAR message.&lt;/P&gt;&lt;P&gt;message-msgty = 'E'.&lt;/P&gt;&lt;P&gt;message-msgid = 'Z3'.&lt;/P&gt;&lt;P&gt;message-msgno = '001'.&lt;/P&gt;&lt;P&gt;message-msgv1 = BAPI_ORDER_STATUS_IMPORT-orderid.&lt;/P&gt;&lt;P&gt;PERFORM set_return_message USING    message&lt;/P&gt;&lt;P&gt;      CHANGING return.&lt;/P&gt;&lt;P&gt;IF 1 = 2.&lt;/P&gt;&lt;P&gt;MESSAGE e001(z3).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;CHECK return IS INITIAL.&lt;/P&gt;&lt;P&gt;&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;Read order status texts&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;********************************************&lt;/P&gt;&lt;P&gt;SELECT istat txt04 txt30&lt;/P&gt;&lt;P&gt;FROM tj02t&lt;/P&gt;&lt;P&gt;INTO TABLE t_tj02t&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN t_bapistat&lt;/P&gt;&lt;P&gt;WHERE istat = t_bapistat-stat AND&lt;/P&gt;&lt;P&gt;spras = BAPI_ORDER_STATUS_IMPORT-i_spras.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT t_tj02t BY istat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT t_bapistat INTO g_bapistat.&lt;/P&gt;&lt;P&gt;READ TABLE t_tj02t&lt;/P&gt;&lt;P&gt;WITH KEY istat = g_bapistat-stat BINARY SEARCH&lt;/P&gt;&lt;P&gt;INTO g_tj02t.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;MOVE:&lt;/P&gt;&lt;P&gt;g_tj02t-txt04 TO g_bapistat-txt04,&lt;/P&gt;&lt;P&gt;g_tj02t-txt30 TO g_bapistat-txt30.&lt;/P&gt;&lt;P&gt;MODIFY t_bapistat FROM g_bapistat TRANSPORTING txt04 txt30.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;STEP 3 - Create the API Method Using the BAPI WIZARD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;follow this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapmaterial.com/bapi_step3.html" target="test_blank"&gt;http://www.sapmaterial.com/bapi_step3.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;STEP 4 - Final steps&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the Business object has been checked and the documentation created, the follwing steps must be carried out:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Release the BAPI function module (in the Function Builder).&lt;/P&gt;&lt;P&gt;Release the business object type (in the BOR ObjectType -&amp;gt; Change release status to -&amp;gt; Implemented ).&lt;/P&gt;&lt;P&gt;Release the BAPI as a method in the BOR (Release the methods you has created - Set the cursor on the method then&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;For potential write BAPIs: Release the IDoc and its segments&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can now display the BAPI in the BAPI Explorer:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the link is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapmaterial.com/bapi_step4.html" target="test_blank"&gt;http://www.sapmaterial.com/bapi_step4.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;do reward if helpful&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 10:34:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-zbapi/m-p/3455857#M830268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T10:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: creating zbapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-zbapi/m-p/3455858#M830269</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;Please refer to the link below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saptechnical.com/Tutorials/BAPI/CustomBAPICreation/page1.htm" target="test_blank"&gt;http://www.saptechnical.com/Tutorials/BAPI/CustomBAPICreation/page1.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 10:38:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-zbapi/m-p/3455858#M830269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T10:38:21Z</dc:date>
    </item>
  </channel>
</rss>

