Advertising:
Create wrapper for function modules and BAPIs
From SAP Knowledge Base
There are good reasons to wrap a function module (BAPI).
On the one hand, to have the wrapped FuBa as Tier 2 code so that it can be exchanged with Tier 1 code if SAP offers a released cloud API or similar or to use the wrapped code to release it as Tier 1 in its SAP S/4HANA, SAP S/4HANA Cloud, private edition system.
On the other hand, to be able to use COMMIT-WORK required or causing Fubas (BAPIs) through the BGPF framework or through call destination 'NONE' in RAP framework if these modules are not called in the SAVE sequence.
It is helpful to use the generator of an SAP employee:
Alternatively, this can also be done manually: