This document explains the process of deleting a primary cost element to which transaction data is posted. In case transaction data is not posted to a cost element we can delete the same by restricting its validity by using the transaction code ka04. However once transaction data is posted to we cannot make use of the t-code ka04 directly.

When transaction data is posted to a cost element, and we try to delete the same we get an error message that dependent records exist in cost element relevant tables as shown below:

/wp-content/uploads/2014/04/pic2_438700.png

/wp-content/uploads/2014/04/pic1_438755.png

To ensure that we are able to delete the cost element, we need to ensure that the data flowing to CO posted to that cost element is deleted.

Deletion of cost element transaction data flowing to CO has to be done following the steps/instructions of SAP note 45122. This requires use of program RKACOR20. This program deletes CO documents according to FI documents.

Using se38 path to access the program RKACOR20:

/wp-content/uploads/2014/04/pic3_438756.png

We need to input the company code, fiscal year and relevant document number of the relevant FI document as indicated below:

/wp-content/uploads/2014/04/pic4_439076.png

Running the same in test run gives the list of CO documents that would be deleted:

/wp-content/uploads/2014/04/pic5_439077.png

We subsequently run the same in real run:

/wp-content/uploads/2014/04/pic12_439115.png

/wp-content/uploads/2014/04/pic7_439081.png

Thereafter we delete the cost element using t-code ka04

i) Test Run:

/wp-content/uploads/2014/04/pic8_439082.png

/wp-content/uploads/2014/04/pic9_439083.png

ii) Real Run

/wp-content/uploads/2014/04/pic10_439100.png

Once deleted we see the same does not exist:

/wp-content/uploads/2014/04/pic11_439101.png

Precautionary measures:

It is essential that the precautionay steps in SAP notes 45122 and 356608 are referered before proceeding with the above deletion.

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply