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


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


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


    Bapi to create customer master





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


    Also refer to the following links..

    Checkout !!,289142,sid21_gci948835,00.html

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


    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


    1. Delete the whole order

    2. Delete order items

    3. Change the order

    4. Change the configuration


    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

    BAPI-step by step

    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 :

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


    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.