0% found this document useful (0 votes)
176 views3 pages

Deleting and Changing Activity Types in SAP

This SAP note describes an issue where changing an activity type's category or cost element in the master data does not update existing activity plans and postings for that type. It provides a solution using a custom ABAP report to delete control records preventing the updates. The report deletes dependent data for the activity type, allowing the master data changes to take effect in activity planning.

Uploaded by

Liviu
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
176 views3 pages

Deleting and Changing Activity Types in SAP

This SAP note describes an issue where changing an activity type's category or cost element in the master data does not update existing activity plans and postings for that type. It provides a solution using a custom ABAP report to delete control records preventing the updates. The report deletes dependent data for the activity type, allowing the master data changes to take effect in activity planning.

Uploaded by

Liviu
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

2018-09-27 129584

129584 - Changing the activity type/deleting activity type


planning
Version 8 Type SAP Note
Language English Master Language German
Priority Recommendations / Additional Info Category Program error
Release Status Released for Customer Released On 07.08.2017
Component CO-OM-CCA-B ( Planning )

Please find the original document at [Link] 129584

Symptom

You have changed the activity type category or allocation cost element of an
activity type in the master data record. However, during the planning of this
activity type, the old activity type category or old allocation cost element
still appears.

The system also uses the old value if you change the cost element for the
corresponding activity type via KL02.

Other Terms

KP26, activity planning, KP228, KL02

Reason and Prerequisites

An activity type was planned for/posted to a cost center


(transaction KP26).
a) You now want to change the activity type category or allocation cost element
of the activity type later on.
2) Activity type planning should now be deleted (because, for example, you want
to delete the planning cost center).
All dependent data for this cost center/activity type for the fiscal year in
question has been deleted (activity allocation, price calculation, and so on).
Actual postings have been reversed. In certain cases (for example, during the
update of activity allocations and a subsequent reversal), it is not sufficient
to reverse the actual postings. Instead, you need to delete all postings.
Otherwise, records with a zero balance remain in the table COSL. These cannot be
deleted using standard tools.
Planned values have been deleted (it is not sufficient to set them to "0").
Finally, activity planning for the activity type to be changed has itself been
deleted (transaction KP26). Here, again, setting "0" is not sufficient. Thus, no
further records for the activity type to be changed/deleted exist for the cost
center in question in the tables COSP and COSS.
Any remaining COKA records have been deleted with the help of the report
RKPLNC18 from SAP Note 51513.

Solution

A change to the activity type category or allocation cost element in the master
record of the activity type (transaction KL02) is not sufficient.
The master data should be seen only as default values.
The data of the first posting of this activity type to a cost center is
decisive. Here, a control record is written to the table CSSL.

© 2018 SAP SE or an SAP affiliate company. All rights reserved 1 of 3


2018-09-27 129584

Due to a program error, this control record in the table CSSL is not deleted
when the planned activity is deleted.
You can use the report RKPLNC29 specified below to delete this control record.
(This applies only if no further transaction data exists for this cost
center/activity type.)
Please create the report RKPLNC29 in your system and copy the following lines to
the source code.

Text elements:
AA1: for activity type
AA2: No dependent records were found
AD1: Error during deletion in table CSSL for
AE1: Dependent data for the activity type
AE2: was deleted.
AF1: Dependent data for activity type
AF2: can be deleted.
AG1: The deletion could not be carried out.
AH1: Plan records still exist on cost centers for activity type

This is the default behavior if the cost element is changed during the validity
of the activity type.

If dependent records exist, the allocation cost element of the corresponding


activity type can no longer be changed within a fiscal year; during price
planning, the allocation costs from the master data of the activity type are
transferred to the control table, which is year-dependent. This table is the
basis for the derivation of the cost element when postings are made.

Software Components

Software Component Release

SAP_APPL 30A - 31I

SAP_APPL 40A - 40B

SAP_APPL 45A - 45B

SAP_APPL 46A - 46B

Correction Instructions

Software Component From To Version Changed on ID

SAP_APPL 30A 40B 1 06.03.1999 23:25:34 0000067203

© 2018 SAP SE or an SAP affiliate company. All rights reserved 2 of 3


2018-09-27 129584

Other Components

Component Description

CO Controlling

This document refers to

SAP Note/KBA Title

551506 FAQ note Overhead Cost Controlling

43230 KS021/KS027 when changing/deleting activity type

359893 Error BK128 for actual activity allocation

This document is referenced by

SAP Note/KBA Title

551506 FAQ note Overhead Cost Controlling

43230 KS021/KS027 when changing/deleting activity type

359893 Error BK128 for actual activity allocation

© 2018 SAP SE or an SAP affiliate company. All rights reserved 3 of 3

Common questions

Powered by AI

Report RKPLNC18 is used to delete COKA records, which is part of the cleanup process to remove any lingering data after planned activities for an activity type are reversed. Report RKPLNC29 is specifically created to remove the control records from the CSSL table when planned activities are deleted, as a program error prevents automatic deletion. Both reports facilitate proper updates to the system after changes in activity type categories or cost elements .

Control records in SAP, such as those in the CSSL table, directly impact the fiscal planning and allocation accuracy by providing default values based upon the initial posting data. Failure to update or remove these records after changes lead to planning discrepancies and can perpetuate outdated financial data usage, undermining financial reporting and operational accuracy .

To change the activity type category or allocation cost element effectively, you need to delete all postings related to the activity type, as simply changing the master data via transaction KL02 is insufficient. Planned values must be deleted rather than set to zero, and any COKA records should be removed using report RKPLNC18. Finally, you should run report RKPLNC29 to delete the control record from table CSSL, assuming no further transaction data exists for that cost center/activity type .

The CSSL table maintains a control record based on the first posting data of an activity type to a cost center. This control structure dictates the subsequent application of activity type categories and cost elements during postings. If it remains unchanged or unremoved, it defaults back to using old contexts, affecting consistency and accuracy in planning .

Setting planned values to "0" does not suffice because zero balance records remain in the SAP tables such as COSL, which cannot be deleted using standard tools. To completely clean up the data and ensure no residual records interfere with further activity type updates, full deletion of records is required .

The system uses the old activity type category or cost element during planning due to a program error wherein the control record in table CSSL is not deleted when the planned activity is deleted. As a result, although the master data should serve only as default values, the data from the first posting to a cost center remains controlling, and this requires manual deletion of control records using report RKPLNC29 .

SAP software component releases like SAP_APPL 30A to 46B establish the context under which the described program errors and solutions in the SAP notes are applicable. These releases determine the version-specific behavior and availability of features or corrections, guiding users in implementing the appropriate solutions, like those provided in SAP note 129584 for handling activity type changes and related errors .

If dependent records exist, you cannot change the allocation cost element of the corresponding activity type within a fiscal year. The default behavior of the system prevents this change because dependent records mean the allocation cost element is already transferred to the control table, which is year-dependent. This prevents any updates unless the records are appropriately managed or deleted .

The error AH1 indicates that plan records still exist on cost centers for the activity type, preventing deletion. To address this, you need to ensure that all planned and actual postings are thoroughly deleted rather than reset to zero. This includes clearing any dependent records in relevant SAP tables, typically using designated reports like RKPLNC18 and RKPLNC29 .

Creating the report RKPLNC29 is crucial because it provides a solution to a program error that fails to delete control records in the CSSL table after planned activities are removed. This custom report enables the manual deletion of these records, ensuring that updates to the activity type categories or cost elements are correctly reflected in subsequent planning and postings, thus resolving issues highlighted in SAP note 129584 .

You might also like