You are on page 1of 5

https://blogs.sap.

com/2020/09/06/how-to-test-bapi-function-module-in-sap/

Technical Articles

argh adip kar

Posted on September 6, 2020 1 minute r ead

How to Test BAPI Function Module in SAP?


FollowRSS feedLike
2 Li kes 1,737 Vi ew 0 C omments

Introduction

As a SAP Consultant at some point of your career you will use BAPI. There is special way to test a BAPI whether it is really
useful for you to call in your Program.

Solution

In our example we will be using BAPI_PO_CHANGE to change some fields in PO Line Item.

Now we will fill the Parameters and save it as a Test Data


Below is the Saved Test Data Entry

Now we go back to SE37 and follow the below path

We will put the following Function Modules.


Now we execute based on the saved Test data

After Executing we will hit Back Button and this will call the Commit Function Module.
BAPI_TRANSACTION_COMMIT is called and we execute

Now executing is completed and the Database has commited.


Conclusion

We can use this Blog for both SAP ECC and SAP S/4HANA.

Below is the video version


https://youtu.be/xJdf3xbS56I

Also check how to Find BAPI


https://youtu.be/bpqKiBEy8Zk

https://youtu.be/EYQW7nYLQwk



 Alert Moderator

Assigned tags

 SAP S/4HANA
 ABAP Development
 ABAP Extensibility
 SAP S/4HANA Finance
 SAP Supply Chain Management
View more...

Related Blog Posts

 Deep Dive 5 with SAP Cloud SDK: Executing BAPIs inside S/4HANA On-Premise from your Cloud Application
By Marco Dahms, Dec 06, 2017
 Implementing BAPI Calls in SAP S/4HANA On-Premise systems using Create Simple Purchase Requisition from
Excel bot as reference
By Sibasis Mohanty, Sep 02, 2020
 Line Item Display – Special Fields – SAP S4HANA Conversion/Migration
By Venkata Nagendra Kumar Varaganti, Jun 14, 2019

Related Questions

 How to activate Business Function of fund management module in Sap HANA on premise 1511
By Former Member, Apr 14, 2016
 S4HANA_READYNESS - How can check only my custom code, avoiding sap code ?
By Erico Oliveira, Aug 16, 2018
 Custom code Migration to SAP S4 HANA System
By Ge

You might also like