成本中心更改的时候坑有点大 不停的研究终于发现了新大陆
Symptom
You want to use BAPI_COSTCENTER_CHANGEMULTIPLE to change "lock indicator" for cost center, you find that the locked indicator cannot be unlocked.
Environment
Financial Accounting (FI)
SAP R/3
SAP R/3 Enterprise 4.7
SAP ERP Central Component
SAP ERP
SAP enhancement package for SAP ERP
SAP enhancement package for SAP ERP, version for SAP HANA
Reproducing the Issue
In SE37 input BAPI BAPI_COSTCENTER_CHANGEMULTIPLE and input "blank" as value for unlock as below:
blank value.JPG
After run BAPI BAPI_COSTCENTER_CHANGEMULTIPLE, you find the lock indicators aren't changed.
Cause
This is standard behavior. To initiate a field, only a period (".") must be transferred to the field interface. The appropriate field checks are performed.
【2460020 - BAPI: BAPI_COSTCENTER_CHANGEMULTIPLE】Resolution
In you want to unlocked the lock indicator, please input value "." instead of blank value, please refer to below screen:
point value.JPG
Keywords
cost center, cost centers, BAPI, BAPI_COSTCENTER_CHANGEMULTIPLE, SE37, KS01, KS02, KS03, control, control tab, lock indicator, actual primary costs, act. secondary costs, actual revenues, plan primary costs, plan secondary costs, plan revenues, commitment update, master data, indicator, indicators.