Skip to Content
author's profile photo Former Member
Former Member

BAPI

Hi guys!

I am new to this BAPI.

can any one provide me a simple example of BAPI step by step procedure with JCO settings for integrating a simple java application

pls it is urgent!

thanks and regards

Ganesh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 14, 2006 at 10:36 AM

    Hai

    Bapi to create customer master

    -


    BAPI_CUSTOMER_CREATEFROMDATA

    BAPI_CUSTOMER_CREATEFROMDATA1

    Or you can use FM SD_CUSTOMER_MAINTAIN_ALL

    what is BAPI?

    BAPI stands for Business API(Application Program Interface).

    I have answered this question before..

    A BAPI is remotely enabled function module ie it can be invoked from remote programs like standalone JAVA programs, web interface etc..

    You can make your function module remotely enabled in attributes of Function module but

    A BAPI are standard SAP function modules provided by SAP for remote access. Also they are part of Businees Objest Repository(BOR).

    Please check out this thread..

    bapi

    Also refer to the following links..

    www.sappoint.com/abap/bapiintro.pdf

    www.sap-img.com/bapi.htm

    www.sap-img.com/abap/bapi-conventions.htm

    www.planetsap.com/Bapi_main_page.htm

    www.sapgenie.com/abap/bapi/index.htm

    Checkout !!

    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html

    http://techrepublic.com.com/5100-6329-1051160.html#

    http://www.sap-img.com/bapi.htm

    http://www.sap-img.com/abap/bapi-conventions.htm

    http://www.sappoint.com/abap/bapiintro.pdf

    Java Connector(JCO) can call not only BAPI's but also the function modules which are remotely enabled..

    BAPI's as i said earlier are remotely enabled function modules..

    Hence, JCO can call also BAPI's(n not only BAPI's as u mentioned).

    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

    -> Importing structures.

    eg: SALESDOCUMENT: this will take the Sales order header data as input.

    -> 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.

    Check the following Link

    http://www.sapgenie.com/abap/bapi/example.htm

    BAPI-step by step

    http://www.sapgenie.com/abap/bapi/example.htm

    Thanks & regards

    Sreenivasulu P

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 14, 2006 at 10:37 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 14, 2006 at 10:52 AM

    BAPIs. A nice way to work with your data without learning the SAP data model. BAPIs are functions that are "published" by SAP for customer use. They are very well documented and bring less surprises than internal functions. Go to transaction BAPI to get the tree of the functions by functional areas. In addition to simply using them for data extracts or updates you can look into their source code to understand how the data is organized (but this is not an easy task). BAPIs are the first thing to check if you need to update the data (the next thing would probably be BDC - described in Knowledge Corner as well). Using BAPIs for updates can speed up your program significantly (like 100 times!). You can use them to select the data, but of course if you know how to access the database directly, simple select will work faster. Sometimes BAPIs are the only way to get the data, as it is the case with accessing some objects in APO (that are stored only in "Livecache" memory).

    Refer the link below and also go through the BAPI transaction :

    http://www.planetsap.com/LIST_ALL_BAPIs.htm

    <b>Reward points if it helps.</b>

    Regards,

    Amit Mishra

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.