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

BAPIs - are they useful?

Howdy again partners,

Listen I've heard about these things called BAPIs and they seem really neat.

Now my question is this:

What are the bad points about using them?

There must be a catch! Rather than having to code lots of selects from different tables to get material details I could just use a bAPI which would be quicker and easier to code for.

Are BAPIs really slow?

Are they full of bugs!!!

Please do tell me - I'd be much obliged.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Dec 08, 2004 at 05:51 PM

    BAPIs are nothing more than Remote Enabled Function Modules. These FMs contain the code to perform some business function.

    Just because they are BAPIs

    1) does not necessarily make them slow in performance, i believe that they actually perform better than a BDC.

    2) does not mean they are full of bugs, in a lot of cases they are performing the same code that a dialog program performs without the screens. So if the BAPI is buggy, then probably so is it's dialog counterpart.

    Hope this helps,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2004 at 09:33 PM

    BAPI's are useful in the following: Internet scenarios, XML interfaces, R/3 distributed systems (ALE), mass/initial data transfer, business workflow, capturing business logic in your own custom programs.

    BAPI's are indeed remote enabled function modules and can be called just like any other RFC in your own programs. BAPI's, however, are also methods of business objects (thus the "B" in the name).

    Consider the following: BAPI's should NOT be created for every function that may be useful to external programs (e.g. unit of measure conversion). BAPI's should only be created if there is a business object that has methods. If there is no business object, then a normal RFC should be used instead of creating a BAPI.

    By the way, BAPI's do not use OO code. They do use an OO model, and the connectors make them look OO to the outside world by looking at the BOR (Business Object Repository) to see what methods are there. Currently, there does not appear to be any plans at SAP to make BAPI's use ABAP Objects; i.e. they will be using RFC's in the future too. If anyone has heard differently, please post a reply.

    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.