Bapi and RFC are not at the same level. It cannot be said that bapi functions and RFC functions are considered to have an inevitable relationship and difference. For example, ask a question: what kind of person can be divided into? Answer: man and old man ~~, As we all know, men are gender-based and old people are age-based. Bapi is provided by SAP
Functions based on Business Objects The key is that they process business objects related to R/3, such as document sales orders, organizations: companies, etc. They are a series of entities. ---- "Bapi (Business Application Programming Interface) Is Object-Oriented Program A group of program interfaces in the design method. It allows programmers to integrate third-party software into R/3 proprietary products through SAP. In order to complete some special business tasks, such as uploading transaction data, the R/3 system has bapi built in. " Steps for creating a bapi: (1) create a function module (2) Add a Business Object and create a business object T-code: swo1 RFC is
Inter-System Communication (Remote funciton call) A man may also be an old man. A bapi function can often be an RFC function (I don't know if all bapis can be called Based on RFC technology, but at least most of them can be said, In Java, bapi is called because this bapi function has the RFC feature. )
Bapi is a good idea in SAP, And it targets all business objects. When I first learned ABAP/4, I couldn't understand the '4' in "ABAP/4" in SAP, but thought it was more like a scripting language, at most like C, however, since I started to use bapi, I realized that sap says ABAP is a 4G Language.
When calling bapi externally, such as Java, You can process orders, materials, employees, and factories in SAP as an object. This processing is so simple, just a few wordsCodeThe key is:
1. Collect the data required by the bapi function, that is, the bapi input parameters, Java, SAP screen, or even web pages. It is just a Data Collector! (Make necessary data checks to ensure they are correct, but even if they are not correct, bapi will return an error message.) After the collection is complete, bapi is sent as a parameter, the rest is done by bapi, so you don't have to worry about it!
2. Receive information returned by bapi, that is, bapi output parameters, and "translate" them into appropriate forms for users.