<?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/3381669#M811896</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; Go Through This link, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://saptechnical.com/Tutorials/BAPI/BAPIMainPage.htm" target="test_blank"&gt;http://saptechnical.com/Tutorials/BAPI/BAPIMainPage.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Hope its solve ur problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Remember To Reward Points&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Still U want Docu's on this View My Business Card For Details&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Fareedas&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Mar 2008 07:17:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-10T07:17:08Z</dc:date>
    <item>
      <title>BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3381665#M811892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello  friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone plz tell me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 10:54:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3381665#M811892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T10:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3381666#M811893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is BAPI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI stands for Business API(Application Program Interface).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A BAPI is remotely enabled function module ie it can be invoked from remote programs like standalone JAVA programs, web interface etc..&lt;/P&gt;&lt;P&gt;You can make your function module remotely enabled in attributes of Function module but&lt;/P&gt;&lt;P&gt;A BAPI are standard SAP function modules provided by SAP for remote access. Also they are part of Businees Objest Repository(BOR).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following standardized BAPIs are provided: &lt;/P&gt;&lt;P&gt;Reading instances of SAP business objects &lt;/P&gt;&lt;P&gt;GetList ( ) With the BAPI GetList you can select a range of object key values, for example, company codes and material numbers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BAPI GetList() is a class method. &lt;/P&gt;&lt;P&gt;GetDetail() With the BAPI GetDetail() the details of an instance of a business object type are retrieved and returned to the calling program. The instance is identified via its key. The BAPI GetDetail() is an instance method. BAPIs that can create, change or delete instances of a business object type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following BAPIs of the same object type have to be programmed so that they can be called several times within one transaction. For example, if, after sales order 1 has been created, a second sales order 2 is created in the same transaction, the second BAPI call must not affect the consistency of the sales order 2. After completing the transaction with a COMMIT WORK, both the orders are saved consistently in the database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create( ) and CreateFromData! ( ) &lt;/P&gt;&lt;P&gt;The BAPIs Create() and CreateFromData() create an instance of an SAP business object type, for example, a purchase order. These BAPIs are class methods. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change( ) &lt;/P&gt;&lt;P&gt;The BAPI Change() changes an existing instance of an SAP business object type, for example, a purchase order. The BAPI Change () is an instance method. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete( ) and Undelete( ) The BAPI Delete() deletes an instance of an SAP business object type from the database or sets a deletion flag. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BAPI Undelete() removes a deletion flag. These BAPIs are instance methods. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cancel ( ) Unlike the BAPI Delete(), the BAPI Cancel() cancels an instance of a business object type. The instance to be cancelled remains in the database and an additional instance is created and this is the one that is actually canceled. The Cancel() BAPI is an instance method. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add&amp;lt;subobject&amp;gt; ( ) and Remove&amp;lt;subobject&amp;gt; ( ) The BAPI Add&amp;lt;subobject&amp;gt; adds a subobject to an existing object inst! ance and the BAPI and Remove&amp;lt;subobject&amp;gt; removes a subobject from an object instance. These BAPIs are instance methods. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI-step by step&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/bapi/example.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/bapi/example.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just refer to the link below&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapmaterial.com/?gclid=CN322K28t4sCFQ-WbgodSGbK2g" target="test_blank"&gt;http://www.sapmaterial.com/?gclid=CN322K28t4sCFQ-WbgodSGbK2g&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;list of all bapis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.planetsap.com/LIST_ALL_BAPIs.htm" target="test_blank"&gt;http://www.planetsap.com/LIST_ALL_BAPIs.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for BAPI's&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap/bapiintro.pdf" target="test_blank"&gt;http://www.sappoint.com/abap/bapiintro.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap/bapiprg.pdf" target="test_blank"&gt;http://www.sappoint.com/abap/bapiprg.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap/bapiactx.pdf" target="test_blank"&gt;http://www.sappoint.com/abap/bapiactx.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap/bapilst.pdf" target="test_blank"&gt;http://www.sappoint.com/abap/bapilst.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap/bapiexer.pdf" target="test_blank"&gt;http://www.sappoint.com/abap/bapiexer.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://service.sap.com/ale" target="test_blank"&gt;http://service.sap.com/ale&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://service.sap.com/bapi" target="test_blank"&gt;http://service.sap.com/bapi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.planetsap.com/Bapi_main_page.htm" target="test_blank"&gt;http://www.planetsap.com/Bapi_main_page.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.topxml.com/sap/sap_idoc_xml.asp" target="test_blank"&gt;http://www.topxml.com/sap/sap_idoc_xml.asp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/" target="test_blank"&gt;http://www.sapdevelopment.co.uk/&lt;/A&gt;&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;Also refer to the following links..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/www.sap-img.com/bapi.htm" target="test_blank"&gt;www.sap-img.com/bapi.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/www.sap-img.com/abap/bapi-conventions.htm" target="test_blank"&gt;www.sap-img.com/abap/bapi-conventions.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/www.planetsap.com/Bapi_main_page.htm" target="test_blank"&gt;www.planetsap.com/Bapi_main_page.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/www.sapgenie.com/abap/bapi/index.htm" target="test_blank"&gt;www.sapgenie.com/abap/bapi/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Checkout !!&lt;/P&gt;&lt;P&gt;&lt;A href="http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html" target="test_blank"&gt;http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://techrepublic.com.com/5100-6329-1051160.html#" target="test_blank"&gt;http://techrepublic.com.com/5100-6329-1051160.html#&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U need to give the step_nr, item_nr, cond_count and cond_type so the correct conditon will be updated. If no condition exists for the given parameters, a new condition will be created.&lt;/P&gt;&lt;P&gt;U can find these parameters for a particular condition type in table KONV.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

&amp;amp;---------------------------------------------------------------------
*&amp;amp; Form saveTransactionJOCR
&amp;amp;---------------------------------------------------------------------


text


--------------------------------------------------------------------------------

--&amp;gt; p1 text 
&amp;lt;-- p2 text
--------------------------------------------------------------------------------
 FORM saveTransactionJOCR .
data: salesdocument like BAPIVBELN-VBELN,
order_header_inx like bapisdh1x,
order_header_in like bapisdh1,
return type standard table of bapiret2 with header line,
conditions_in type standard table of bapicond with header line,
conditions_inx type standard table of bapicondx with header line,
logic_switch like BAPISDLS,
step_nr like conditions_in-cond_st_no,
item_nr like conditions_in-itm_number,
cond_count like conditions_in-cond_count,
cond_type like conditions_in-cond_type.

salesdocument = wa_order_information-VBELN.

LOGIC_SWITCH-COND_HANDL = 'X'.

order_header_inx-updateflag = 'U'.

conditions 
clear conditions_in[].
clear conditions_inx[].

clear: step_nr,
item_nr,
cond_count,
cond_type.
step_nr = '710'.
item_nr = '000000'.
cond_count = '01'.
cond_type = 'ZCP2'.

CONDITIONS_IN-ITM_NUMBER = item_nr.
conditions_in-cond_st_no = step_nr.
CONDITIONS_IN-COND_COUNT = cond_count.
CONDITIONS_IN-COND_TYPE = cond_type.
CONDITIONS_IN-COND_VALUE = 666.
CONDITIONS_IN-CURRENCY = 'EUR'.

append conditions_in.

CONDITIONS_INX-ITM_NUMBER = item_nr.
conditions_inx-cond_st_no = step_nr.
CONDITIONS_INX-COND_COUNT = cond_count.
CONDITIONS_INX-COND_TYPE = cond_type.
CONDITIONS_INX-UPDATEFLAG = 'U'.
CONDITIONS_INX-COND_VALUE = 'X'.
CONDITIONS_INX-CURRENCY = 'X'.

append conditions_inx.

CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = salesdocument
ORDER_HEADER_IN = order_header_in
ORDER_HEADER_INX = order_header_inx
LOGIC_SWITCH = logic_switch
TABLES
RETURN = return
CONDITIONS_IN = conditions_in
CONDITIONS_INX = conditions_inx
.

if return-type ne 'E'.
commit work and wait.
endif.


ENDFORM. " saveTransactionJOCR

Bdc to Bapi

The steps to be followed are :
1. Find out the relevant BAPI (BAPI_SALESORDER_CHANGE for VA02).
for VA01 use BAPI_SALESORDER_CREATEFROMDAT2
2. Create a Z program and call the BAPi (same as a Funtion module call).
2. Now, if you see this BAPi, it has 
-&amp;gt; Importing structures. 
eg: SALESDOCUMENT: this will take the Sales order header data as input.
-&amp;gt; Tables parameters: 
eg: ORDER_ITEM_IN: this will take the line item data as input. 

Note :
Only specify fields that should be changed
Select these fields by entering an X in the checkboxes
Enter a U in the UPDATEFLAG field
Always specify key fields when changing the data, including in the checkboxes
The configuration is an exception here. If this needs to be changed, you need to complete it again fully.
Maintain quantities and dates in the schedule line data
Possible UPDATEFLAGS:
U = change
D = delete
I = add
Example
1. Delete the whole order
2. Delete order items
3. Change the order
4. Change the configuration

Notes
1. Minimum entry:
You must enter the order number in the SALESDOCUMENT structure.
You must always enter key fields for changes.
You must always specify the update indicator in the ORDER_HEADER_INX.

2. Commit control:
The BAPI does not run a database Commit, which means that the application must trigger the Commit so that the changes are read to the database. To do this, use the BAPI_TRANSACTION_COMMIT BAPI.

For further details... refer to the Function Module documentation for the BAPi.

Bapi to VB(Visual Basic)

Long back I had used the following flow structure to acheive the same.
Report -&amp;gt; SM59 RFC destination -&amp;gt; COM4ABAP -&amp;gt; VB.exe

my report uses the rfc destination to create a COM session with com4abap. com4abap calls the vb.exe and manages the flow of data between sap and vb exe.

You need to have com4abap.exe
If com4abap is installed you will find it in sapgui installatin directory , C:\Program Files\SAPpc\sapgui\RFCSDK\com4abap.
else refer OSS note 419822 for installation of com4abap


after making the settings in com4abap to point to the vb program and setting up rfc destination in sm59 to point to com4abap session , you can use the following function modules to call the vb code. 
for setting up com4abap and rfc destination please refer to the documentation for com4abap.



Invoke NEW DCOM session 
call function 'BEGIN_COM_SESSION'
exporting
service_dest = service_dest "(this will be a RFC destination created in SM59)
importing
worker_dest = worker_dest
exceptions
connect_to_dcom_service_failed = 1
connect_to_dcom_worker_failed = 2
others = 3.

call function 'create_com_instance' destination worker_dest
exporting
clsid = g_c_clsid
typelib = g_c_typelib
importing
instid = g_f_oid
exceptions
communication_failure = 1 message g_f_msg
system_failure = 2 message g_f_msg
invalid_instance_id = 3
others = 4.

call function 'com_invoke' destination worker_dest
exporting
%instid = g_f_oid
%method = 'UpdatePDF'
sntemp = g_v_const_filent
snsysid = sy-sysid
snflag = 'N'
tables
rssaptable = g_t_pdfdetail1
%return = g_t_pdfdetail1 "t_test
exceptions
communication_failure = 1 message g_f_msg
system_failure = 2 message g_f_msg
invalid_instance_id = 3
others = 4.

then close the com session , using
FM delete_com_instance
FM END_COM_SESSION 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 10:57:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3381666#M811893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T10:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3381667#M811894</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;   BOR Definition&lt;/P&gt;&lt;P&gt;All SAP Business Object types and SAP Interface Types and their methods are defined and described in the R/3 Business Object Repository (BOR). The Business Object Repository was introduced in R/3 Release 3.0, at the same as time as SAP Business Objects and SAP Business Workflow. Presently, the BOR is mainly used by SAP Business Workflow.&lt;/P&gt;&lt;P&gt;The BOR has two essential functions:&lt;/P&gt;&lt;P&gt;&amp;amp;#56256;&amp;amp;#56510;&lt;/P&gt;&lt;P&gt;It defines and describes SAP Business Objects and SAP Interface Types and their BAPIs.&lt;/P&gt;&lt;P&gt;&amp;amp;#56256;&amp;amp;#56510;&lt;/P&gt;&lt;P&gt;It creates instances of SAP Business Objects&lt;/P&gt;&lt;P&gt;BAPI programming&lt;/P&gt;&lt;P&gt;BAPIs are defined in the Business Object Repository (BOR) as methods of SAP Business Objects or SAP Interface Types and are implemented as function modules. The separation of a BAPI definition from its actual implementation enables you to access a BAPI in two ways:&lt;/P&gt;&lt;P&gt;&amp;amp;#56256;&amp;amp;#56510;&lt;/P&gt;&lt;P&gt;You can call the BAPI in the BOR through object-oriented method calls&lt;/P&gt;&lt;P&gt;&amp;amp;#56256;&amp;amp;#56510;&lt;/P&gt;&lt;P&gt;You can make RFC calls to the function module on which the BAPI is based &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STEP BY STEP PROCEDURE:&lt;/P&gt;&lt;P&gt;&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, 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;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 11:00:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3381667#M811894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T11:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3381668#M811895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello frds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually i want data to create operation,suboperation and sequence with help of BAPI_ROUTING_CREATE.all these three i want to create through this   BAPI_ROUTING_CREATE at one time.n&lt;/P&gt;&lt;P&gt;     not like first create operation,then suboperation and then sequence....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 11:00:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3381668#M811895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T11:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3381669#M811896</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; Go Through This link, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://saptechnical.com/Tutorials/BAPI/BAPIMainPage.htm" target="test_blank"&gt;http://saptechnical.com/Tutorials/BAPI/BAPIMainPage.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Hope its solve ur problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Remember To Reward Points&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Still U want Docu's on this View My Business Card For Details&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Fareedas&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 07:17:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3381669#M811896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T07:17:08Z</dc:date>
    </item>
  </channel>
</rss>

