SAP Knowledge Base Article - Public

3228558 - Billing Status and Invoice Status are calculated fields at Manage Service Orders


You created a custom CDS view based on I_ServiceDocumentEnhcd CDS View and you expect the Billing Status and Rlsd f Bllg field to match the data in the Billing Status and Invoice Status fields displayed in the Manage Service Orders app, but they don't.

"Image/data in this document is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."



Reproducing the Issue

In this example, service order 8000000102 have Billing Status = Fully Billed and Invoice Status = All Items Billed, this means that all service confirmations related to this service order have been Released for Billing (which process generates the Billing Document Requests) and all the invoices have been generated for the Billing Document Requests.

You created a custom CDS view using I_ServiceDocumentEnhcd and you expect to get ServiceDocBillingStatus = C and ServiceDocIsReleasedForBilling = C, however both are set to B (Partially billed), but at Manage Service Orders apps it  indicates the Billing Status is Fully Billed and the Invoice Status as All Items Billed.


The billing status and the invoice status fields in a service order are not retrieved from the CDS view, but are calculated based on the values of the billing relevant items in the respective service orders and service confirmations. In contrast, the billing status of the respective service contract is retrieved directly from the CDS view I_ServiceDocumentEnhcd.


Currently, it won’t be possible to calculate these statuses using the currently released CDS Views.


billing status, invoice status, BILLING_RELEVANT, STAT_BILLING, STAT_FOR_BILLING, CL_CRMS4_COMMON_HDR_CALC_EXIT, CALC_HDR_BILLING_INV_STATUS, Fully Billed, Partially Billed, service order, service confirmation, status, completed, C, B, I_ServiceDocumentEnhcd, ServiceDocBillingStatus, ServiceDocIsReleasedForBilling, CRMS4_STAT_BILLING, CRMS4_STAT_FOR_BILLING_HEADER, Rlsd f Bllg, service contract , KBA , CRM-S4-SRV-SVO-FIO , S4CRM: Service Order Fiori-UI , CRM-S4-SRV-SVO , S4CRM: Service Order , How To


SAP S/4HANA Cloud all versions