SAP Message RMSRCPDIA148 - Material &1 is not assigned to substance &2

Diagnosis
The specified material &V1& is not assigned to the substance&V2& .Therefore, the system cannot copy the recipe.

System Response
The system canceled the copying process for the recipe.

Procedure
Check the implementation of the Business Add-In (BAdI)
RCP_COPY_MODIFY of the RECIPE enhancement spot. In the methodADJUST_COPIED_RECIPE, make sure that the recipe output substance X_SUB
_OUT and the recipe output material X_MAT_OUT are permitted in thiscombination.