What is a BAPI Wrapper? | BAPI Wrapper Types
To check the logic and the implementation of the BAPI wrappers, the following simple ABAP test program can be written for each type of BAPI wrappers (e.g. using the transaction se38):
Bapi Wrapper Type |
Call cycle |
GetList |
|
GetDetail |
|
Create |
|
Change |
|
Delete |
|
These tests (other than the test for GetList) simulate what Smart Synchronization performs internally for the corresponding actions in the runtime. Thus, it is important to test each function module not just by single test execution (for example, from the transaction se37) but also by the combination of function modules.
In addition to the functional test above, it is also worth evaluating the performance of each BAPI wrapper function call.
An example unit test program is the report MDK_SST_CONTACT_CREATE_UNITTST that can be found in any SAP system with mySAP Technology 6.20 (as of SP18).