SAP Knowledge Base Article - Public

2264921 - Unable to delete Activity Category, Delete button is grayed out

Symptom

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."

You are not able to delete Activity Category, Delete button is grayed out in Assignment of Categories.

Environment

  • SAP Cloud for Customer
  • SAP Business By Design

Reproducing the Issue

  1. Go to the Business Configuration Work Center.
  2. Go to the Implementation Projects View.
  3. Select Open Activity List.
  4. Select All.
  5. Select All Activities.
  6. Search and Open activity Activity Categories.
  7. Select Assign Categories.
  8. Select activity type XYZ. (XYZ represents the name of the activity type)
  9. Select category ABC. (ABC represents the name of the category)

Here you will find that Delete button is grayed out. Unable to delete the Activity Category.

Cause

For each Activity Type we have one default Category which cannot be deleted.

Following categories cannot be deleted:

- 0005-Preparation category for Activity Type 542-Activity Task;
- 0022-Business fax category for Activity Type 50-Fax;
- 0003-Business letter category for Activity Type 65-Letter;
- 0001-Customer visit category for Activity Type 12-Appointmentl;
- 0004-Business e-mail category for Activity Type 39-E-mail;
- 0002-Telephone call category for Activity Type 86 - Phone Call.

This is system expected system behaviour.

Resolution

If you do not want your users to be able to select some of those categories, you can use Code List Restriction to hide it either from all users, or for certain Business Roles.

In this example we will hide the Category Customer Visit for all users.

  1. Go to the Administrator work centre.
  2. Click the Code List Restriction link.
  3. Select the Business Object: Activity.
  4. Select Code to Restrict: Category.

CLR_1.jpg

Note: If you use no control field, this will mean that the category will always be hidden, without condition. If you add a control field, the category will be hidden if it matches your entries.

Note: You can select a business role if you want the restriction to only be the case for one particular role. However, if you do that, it will still be available for other business roles.

  1. Save and open.
  2. Click Edit.
  3. Now select the values you want to allow or restrict. For our example: Appointment > Customer Visit > uncheck.

CLR_2.jpg

  1. Save.

When creating a new Appointment, the option to select the Category Customer Visit will no longer be available.
You can reverse this restriction by deleting the Code List Restriction and from then onwards, the option will be back.

Please note: the category will still be in your business configuarion. You cannot delete it here.

Keywords

- 0005-Preparation category for Activity Type 542-Activity Task;
- 0022-Business fax category for Activity Type 50-Fax;
- 0003-Business letter category for Activity Type 65-Letter;
- 0001-Customer visit category for Activity Type 12-Appointmentl;
- 0004-Business e-mail category for Activity Type 39-E-mail;
- 0002 - Telephone call category for Activity Type 86 - Phone Call. Activity Category, Delete button is grayed out in Assignment of Categories. , KBA , AP-RC-BCT , Business Config. Tools (SAP Business ByDesign , How To

Product

SAP Business ByDesign all versions ; SAP Cloud for Customer add-ins all versions