Message type: E = Error
Message class:  CPWB - General Workbench Messages 
Message number: 158
Message text: Some of the selected opers. are branch or return operations for sequences
You want to delete operations. However, several of these operations are
branch or return operations for alternative or parallel sequences.
The system deleted neither branch nor return operations. The system
deleted all other operations.
Before you can delete a branch or return operation you have to delete
all sequences that branch off from the operation and return back to it.
Error message extract from SAP system. Copyright SAP SE.
The SAP error message CPWB158 indicates that there are issues with the selected operations in a production order or routing that involve branch or return operations. This typically occurs in the context of production planning and control, particularly when working with sequences in the SAP system.
Cause: The error arises when you attempt to perform an action (like scheduling, releasing, or modifying) on a sequence that includes operations that are classified as branch or return operations. These operations are not linear and can disrupt the flow of the production process, leading to complications in scheduling and resource allocation.
Solution: To resolve this error, you can take the following steps: Review the Operations: Check the selected operations in the routing or production order. Identify which operations are classified as branch or return operations. Modify the Sequence: If possible, adjust the sequence to remove or properly handle the branch or return operations. This may involve re-sequencing the operations
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
CPWB157 A referenced operation cannot be changed
What causes this issue?  you want to change a referenced operation. Referenced operations cannot be changed in the task list (for example, routing) in...
CPWB156 First selected activity already reached
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
CPWB159 CAPP execution for routing &1 &2, operation &3 is not possible
What causes this issue?  You want to execute a CAPP calculation of standard values. However, you have either not locked operation &V3& in rout...
CPWB160 Enter operation
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.