BAPI - Choosing The Right Strategy
- Ishnoor Singh Sethi
- Sep 24, 2021
- 3 min read
Updated: May 31, 2022

Business Application Programming Interface
(BAPI)
SAP BAPI (Business Application Programming Interface) is a standard interface to the business object models in SAP products.
BAPIs are the primary method through which customer code and third-party applications interact with SAP products. BAPIs wrap the internal layers of SAP's business object model to ensure that all business logic, validations and authorisation checks are executed properly when accessing or changing business objects.
BAPIs are implemented as function modules that call SAP internal code. Depending on which set of BAPIs is being used, they may call business object models defined using the Business Objects Processing Framework (BOPF) or legacy models defined using programs, tables and function modules.
Types of BAPIs —
Standard BAPI — BAPI created by SAP labs.
List of BAPIs in SAP ABAP — https://wiki.scn.sap.com/wiki/display/ABAP/List+of+BAPI%27s
2. Custom BAPI — BAPI created by users
Uploading data to standard table using standard BAPI (BAPI_BANK_CREATE) .
Coding Screen —


Key points in BAPI programs —

We got these two fields from the function that we called i.e “BAPI_BANK_CREATE”.
Steps to know particular data type for variables —
Step 1 - On “SE37” screen type the desired function module and click on display

Step 2 - Click on import button and you will see the importing parameters. Search for the desired data type or structure. In this case Bank_Address is the required field.

Step 3 - Double click on the Bank_Address and you will see the components in this structure. A variable of this structure type will contain all the components of the structure.

Step 4 - Now go back and click on export button and get the return data type.

Output —


Remote Function Call (RFC)
Communication between applications of different systems in the SAP environment includes connections between SAP systems as well as between SAP systems and non-SAP systems. Remote Function Call (RFC) is the standard SAP interface for communication between SAP systems. RFC calls a function to be executed in a remote system.
There is now a whole series of different RFC variants, each of which has different properties and is used for a specific purpose.
Custom BAPI
Step 1 - Create import and export structure using tcode “SE11”.
Step 2 - Create Function Module using import and export structure using tcode “SE37”.
Step 3 - After creation of Function Module convert it into RFC and release that RFC.
Step 4 - Create business object using tcode “SWO1”.
Step 5 - After BAPI creation we have to add RFC Function module into business object.
Step 6 - At last release business object components and component types and then finally release Business Object.
Step 1 - Create import and export structure using tcode “SE11”.
Import structure —


Enter required fields.

Save the structure in package.

Do same for Exporting structure —

Step 2 - Create Function Module using import and export structure using tcode “SE37”.





Step 3 - After creation of Function Module convert it into RFC and release that RFC.
To convert FM into RFC click on attribute button and select Remote Enabled Module radio button

Enter a return type variable as BAPI has a return type

Source Code —

To release click on SE37 screen type the name of the FM you want to release and then click on “Function Module” option in the top menu.

After that click on release and release.

Step 4 - Create business object using tcode “SWO1”.
Write name of the business object and click on create.

Fill the fields and for application field BAPI is always Cross-application

After filling click on the green tick and save it in package.

Business Object is formed

Step 5 - After BAPI creation we have to add RFC Function module into business object.
Click on utilities in the top menu then API methods and add methods.

After this type the function module created for this program and click on enter. Function module will successfully be entered in the business object.

Step 6 - At last release business object components and component types and then finally release Business Object.
To release click on edit in the top menu then change release status. Now you will see two options. We have to release both object and object components.

Click on object type , 4 options will appear. In order to release first we have to click on ‘To modeled’ then ‘To implemented’ and last on ‘To released’.

Tick symbol will ensure if the object type is successfully released or not.

Likewise do the process for Object type component
Tick ensures if object type component is released or not

Last step is to click on generate (circled icon) and our custom BAPI is successfully created.


ISHNOOR SINGH SETHI





The overall gameplay experience is quite enjoyable. The game runs smoothly, and I didn’t face any crashes or delays. It’s a reliable platform that offers a good balance between simplicity and entertainment. Sarana99
https://sv88a.it.com/ bữa thấy mấy đứa bạn gửi nên mình bấm vào coi thử cho biết thôi. Mình không rành mấy cái này lắm, chủ yếu xem trang có dễ nhìn, dễ hiểu không. Vào cái là thấy họ chia khu khá rõ, kiểu mỗi sảnh tách riêng nên lướt qua lại không bị rối mắt hay lẫn nội dung. Mình cũng để ý phần giao dịch họ nói là xử lý tự động, trạng thái hiển thị theo thời gian thực nên nhìn cảm giác minh bạch hơn, đỡ kiểu mù mờ không biết đang tới đâu. Nói chung mình chỉ xem vài phút mà vẫn nắm được bố cục vì các khối nội dung tách bạch và phần trạng…
https://o8bo.jp.net/ mình thấy bạn bè nhắc hoài nên tiện tay mở thử cho biết chứ cũng không có ý định “chơi” gì. Vào cái là thấy trang phản hồi nhanh, không phải chờ load lâu nên khá dễ chịu. Giao diện nhìn đơn giản, bố cục chia thành từng khối rõ ràng nên lướt xuống không bị rối mắt. Mình cũng để ý họ có phần hỏi đáp trình bày gọn, đọc kiểu lướt cũng nắm được ý, với lại dùng trực tiếp trên web nên khỏi phải cài thêm app (mình thuộc dạng lười cài đặt). Mấy nút menu đặt ngay chỗ dễ thấy, bấm qua lại cũng mượt, không bị giật. Nói chung cảm giác như họ sắp…
open 88 dạo này thấy mấy đứa bạn nói hoài nên mình cũng vào xem thử cho biết, kiểu tò mò giao diện thôi chứ không có ngồi lâu. Vừa mở lên là mình để ý ngay phần hướng dẫn truy cập an toàn với mấy dòng về bảo mật đặt khá rõ, nhìn cái là biết chỗ nào nên bấm để yên tâm. Mình cũng lướt qua đoạn giới thiệu thấy họ có nhắc giấy phép PAGCOR, ít nhất cảm giác họ ghi thông tin nguồn gốc đàng hoàng chứ không giấu giếm. Tổng thể trang nhìn sáng sủa, chữ dễ đọc, kéo xuống không bị rối mắt. Mấy khối nội dung chia tách gọn gàng và tiêu đề…
98win.com bữa thấy mấy đứa bạn nhắc hoài nên mình tò mò vào xem thử thôi, chứ cũng không đăng ký hay chơi gì. Vừa mở lên là thấy họ để phần liên quan tới bảo mật với chỗ truy cập an toàn khá rõ ràng, nhìn cái là nhận ra ngay chứ không phải mò trong mấy mục nhỏ. Lướt thêm chút thì thấy trong phần giới thiệu có nhắc tới giấy phép PAGCOR, kiểu ai hay để ý mấy chi tiết này chắc sẽ thấy liền. Mình thích cái cảm giác giao diện nhìn gọn, chữ không bị dày đặc, kéo xuống vẫn dễ theo dõi. Mấy khối nội dung tách ra rõ ràng và tiêu đề nổi…