Symptom
You are using BusinessTransactionDocumentReference for creating a reference from a standard business object to a custom business object and you get following error message:
Please use another reference document. XYZ (i.e. Custom Business Object Name) with ID 01234567890123456789012345678901 does not exist.
Environment
- SAP Cloud for Customer
- SAP Cloud Applications Studio
Reproducing the Issue
- Create a Custom Business Object through SAP Cloud Applications Studio.
- Create an Event for Standard Business Object (e.g. for Tickets).
- Insert Following Lines for Referencing Custom Business Object:
BusinessTransactionDocumentRelationshipRoleCode = "1";
BusinessTransactionDocumentReference.TypeCode = "/YABCDEFG/1";
BusinessTransactionDocumentReference.ID.content = this.ID.content;
BusinessTransactionDocumentReference.Create
- Save and deploy it to your tenant.
- When creating instances, you'll get aforementioned error messages.
Cause
The system does not support having BusinessTransactionDocumentReference from Standard Business Objects to Custom Business Objects due some technical limitations, since Custom Business Objects are differently handled by the standard framework. The nodes of Custom Business Objects are not stored as a Standard Business Objects and hence these references are not supported due these differences.
Resolution
The system does not support such usage of the BusinessTransactionDocumentReference for Custom Business Object instances creation.
Keywords
BusinessTransactionDocumentReference, Please use another reference document , KBA , LOD-CRM-SRP , Service Request Processing , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , How To