Skip to Content
Technical Articles

How to Test BAPI Function Module in SAP?

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

 

Also check how to Find BAPI

 

 

3 Comments
You must be Logged on to comment or reply to a post.