WhatsApp Button




top of page

BAPI - Choosing The Right Strategy

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 —

  1. Standard BAPI — BAPI created by SAP labs.


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

59 Comments


123 casino mình thấy bạn bè nhắc hoài nên cũng bấm vào coi thử cho biết thôi. Không phải kiểu ngồi đọc kỹ từng bài hay lục hết mọi thứ, mình chỉ xem giao diện có dễ nhìn, dễ bấm không. Vào cái là thấy trang làm khá gọn, khoảng trống vừa đủ nên không bị ngộp chữ, nhìn một lúc là quen mắt liền. Mình thích nhất là mấy mục được gom lại rõ ràng, chuyển qua lại không phải mò lâu, kiểu kéo nhẹ là thấy đúng chỗ cần. Màu sắc cũng không chói quá nên lướt trên điện thoại thấy ổn. Nói chung cảm giác dùng nhanh, không bị rối, nhất là cách họ chia nội dung…

Like

HZ88 mình mới lướt thử vì thấy bạn bè nhắc hoài, kiểu tò mò xem trang làm ăn ra sao thôi. Vừa vào là thấy giao diện khá dễ chịu, không bị nhồi chữ hay màu mè quá, nhìn một cái là biết chỗ nào là phần chính. Mình thích nhất là nút đăng ký đăng nhập để ngay vị trí dễ thấy, ai mới vào chắc cũng không phải mò mẫm lâu. Mình cũng có kéo xuống xem phần FAQ, thấy họ trình bày dạng câu hỏi thường gặp gọn gàng, đọc lướt là nắm ý chứ không phải cuộn mỏi tay. Nói chung cảm giác họ làm bố cục theo kiểu “đưa đúng thứ cần xem ra trước”,…

Like

7p777 showed up in my feed a few times, so I opened it out of curiosity and just poked around the layout. I didn’t sign up or dig into anything deep, but the site was easy to figure out in like a minute. The navigation is right there and doesn’t make you hunt for it, which I appreciate when I’m just casually browsing. What stood out most is how the page is spaced out—stuff is broken into neat sections instead of being jammed together, so it’s simple to skim and move on. I also like that the headings are clear enough that you always know what part you’re looking at without scrolling back up. Overall it feels calm and readable,…

Like

xoilac dạo này thấy mọi người nói nhiều nên mình cũng ghé thử cho biết. Mình không kiểu ngồi đọc kỹ từng thứ đâu, chủ yếu xem giao diện có dễ xài không thôi. Vào cái là thấy trang nhìn khá thoáng, chữ không bị dồn dập nên lướt một vòng vẫn đỡ mỏi mắt. Mình thích nhất là cái menu đặt chỗ dễ thấy, bấm qua lại mấy phần khác nhanh, không phải mò hay quay lại hoài. Kéo xuống dưới cũng không bị rối vì từng khối nội dung tách ra rõ ràng, nhìn phát biết đang ở đoạn nào nhờ bố cục chia cột gọn gàng.

Like

rr88 link dạo này thấy mọi người nhắc nhiều quá nên mình cũng bấm vào xem thử cho biết thôi. Mình không có ngồi đọc kỹ nội dung hay làm gì sâu đâu, chủ yếu là lướt qua xem họ thiết kế trang kiểu gì. Ấn tượng đầu tiên là giao diện nhìn khá nhẹ mắt, khoảng trắng vừa đủ nên không bị rối. Mấy phần nội dung được chia thành từng khối riêng, kéo xuống vẫn biết mình đang ở đoạn nào chứ không bị trôi tuột một mạch. Mình cũng để ý cái menu đặt khá dễ thấy, chuyển qua lại giữa các mục nhanh, không phải mò. Nói chung xem vài phút là nắm được cách họ…

Like
bottom of page