04-13-2015 8:48 AM
Hello everyone,
I am facing a problem to create a costcenter via BAPI. I hope someone has a solution for me.
After filling the table COSTCENTERLIST with obligatory data and commit the test of the BAPI there is no new inactive costcenter db record in my Costcenters list. I haven’t got any failmessage. Here my Test data:
I have tried to find the test record via BAPI_COSTCENTER_GETDETAIL1with a MASTER_DATA_INACTIVE parameter on but without success. The error is: “there is no inactive costcenter ‘TEST_Z123’ in the costarea 2000”.
I have also tried to activate my new Costcenter via BAPI_CTR_ACTIVATE_MULTIPLE and I got no failmessage and no active costcenter record.
Many thanks in advance
04-13-2015 9:20 AM
Did you get message in RETURN parameter, else did you execute a COMMIT WORK or call of BAPI_TRANSACTION-COMMIT?
(Also were you successful creating such cost center with KS01 transaction, to identify wrong or missing fields)
Regards,
Raymond
04-13-2015 9:20 AM
Did you get message in RETURN parameter, else did you execute a COMMIT WORK or call of BAPI_TRANSACTION-COMMIT?
(Also were you successful creating such cost center with KS01 transaction, to identify wrong or missing fields)
Regards,
Raymond
04-13-2015 10:02 AM
BAPI_TRANSACTION_COMMIT is the correct answer.
The most common mistake 😉
Thank you very much.