Skip to Content
Technical Articles
Author's profile photo arghadip kar

How to Test BAPI Function Module in SAP?


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.



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.



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


Below is the video version


Also check how to Find BAPI



Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Timo Bauer
      Timo Bauer

      Like this blog very much as others of your series, easy to understand also for non-technical consultants and with a step-by-step explanation that can be reproduced. Good work!

      Author's profile photo arghadip kar
      arghadip kar
      Blog Post Author

      Thanks a lot.


      Author's profile photo Sundas Noor
      Sundas Noor

      This is an awesome blog!  The  entire concept is explained bit by bit in an informative manner.