Symptom
When accessing the "Assign Schedule Line Categories" configuration activity and, trying to change the schedule line where we have more than 1 option, the error message below is appearing:
- Schedule line category XX is already assigned to this item category.
Message no. VA166
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Access the Assign Schedule Line Categories configuration activity
- Try to alter 2 schedule line values at the same time (In this example, go to the TAN item category and try to alter the Categories CP and CN at the same time)
- See the error message appearing
Cause
Schedule lines values need to be updated individually.
Resolution
Instead of swapping the values, first remove 1 value from the line, afterwards update the main value for the one you desire (In this example, we are changing the default schedule line of the TAN item category from CP to CN, however the same logic applies to all item categories which have multiple schedule lines values to be selected) and then add again the deleted value.
Keywords
schedule, line, categories, assigned, va, 166, item, category, TAN, swap, error, message, CP, CN , KBA , SD-SLS-GF-BET-2CL , Business Event of Sales Documents (Public Cloud) , Problem
SAP Knowledge Base Article - Public