Symptom
While opening the Customer Return, system shows the error messages
"Sales Order reference with ID ABC not valid" (ABC represents the Sales Order ID)
"Ref ID for Return DEF is not valid. Enter a valid ref ID." (DEF represents the Return ID)
Environment
SAP Business ByDesign
Reproducing the Issue
1) Go to the Sales Orders -> Returns.
2) Edit Return DEF
error messages
"Sales Order reference with ID ABC not valid"
"Ref ID for Return DEF is not valid. Enter a valid ref ID."
Cause
The Customer return DEF is created based on the Outbound Delivery. And the Outbound Delivery is created from Project Stock Order with Item Type Pre-Delivery. In order to return a pre-delivered product to the warehouse which is related to a project, you have to remove the link to the project in inventory first and then only create a Customer Return.
Resolution
You can refer to the blog "Product returns from projects to inventory" (Product returns from projects to inventory | SAP Blogs )
Keywords
KBA , AP-CRP , Customer Return Processing , Problem