How to remediate: Deprecated customer BAPIs
BAPI_CUSTOMER_* function modules are deprecated. Use Business Partner APIs in S/4HANA.
Is this issue in your codebase?
A1 scans all 30 rules across your custom ABAP — results in minutes.
What changes in S/4HANA
Customer creation/change must go through Business Partner (BUPA) APIs.
Before and after: ABAP code example
* ECC: deprecated customer BAPI
CALL FUNCTION 'BAPI_CUSTOMER_CREATEFROMDATA1'
EXPORTING
pi_kunnr = lv_kunnr
pi_personaldata = ls_personal
IMPORTING
return = lt_return. * S/4HANA: Business Partner central API
CALL FUNCTION 'BAPI_BUPA_CREATE_FROM_DATA'
EXPORTING
partnercategory = '1'
centraldata = ls_central
addressdata = ls_address
IMPORTING
businesspartner = lv_bpnr
return = lt_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING wait = abap_true. Effort estimate and common pitfalls
Effort estimate
Estimate is per affected object. Total effort scales with the number of occurrences in your codebase. Use the A1 scan to get an object-level count before estimating the full project.
Common pitfalls
- ! Underestimating the number of affected objects
- ! Missing performance test after switching to released APIs
- ! Transport dependencies across development, quality, and production
Related rules to check
KNA1 direct access
KNA1 (Customer master) direct access. S/4HANA uses Business Partner model — KNA1 is still present but populated via BP.
Deprecated vendor BAPIs
BAPI_VENDOR_* function modules are deprecated. Use Business Partner APIs.
Obsolete function modules
Usage of function modules flagged as obsolete in SAP S/4HANA simplification list.
Find every instance of this issue in your codebase
The A1 scanner checks all 30 compatibility rules — including Deprecated customer BAPIs — across your custom ABAP objects and produces a prioritised remediation backlog.
Scan your codebase for this issue free →SAP, S/4HANA and ABAP are trademarks of SAP SE. s4ready.ai is an independent solution and is not affiliated with, endorsed by, or sponsored by SAP SE.