The data source: Customer Invoice Item with Price Components does not display the data of "Contract".
SAP Business ByDesign
Reproducing the Issue
Open Invoice: ABC (where ABC stands for Customer Invoice)
Navigate to Document Flow tab
You can see the preceding sales order XYZ (where XYZ stands for Sales Order) and preceding contract EFG (where EFG stands for Contract)
Go to Business Analytics Work Center - Data Sources View
Search for data source: Customer Invoice Item with Price Components
Open this data source
Search for Invoice: ABC
In the field "Contract", it shows as # not assigned
In the field "Sales Order", it shows as XYZ
When customer invoice is created with reference of sales order then the sales order ID will be available as a reference under item level.
Document flow Sales order --> Outbound delivery --> Customer Invoice request --> Customer Invoice will have sales order as reference.
When customer invoice is created with reference of contract then the contract id will be available as a reference under item level.
Document flow Contract --> Schedule Invoice request --> Customer Invoice will have a contract as a reference.
Reported issue is considered as a system limitation and below is the system behaviour for item reference in customer invoice.
Customer Invoice Item with Price Components, CRMCIVIPATCB, Customer Invoice, Contract , KBA , SRD-CRM-INV , Customer Invoicing , Problem