SAP Knowledge Base Article - Public

3318474 - Errors When Using BusinessTransactionDocumentReference From a Standard Business Object to a Custom Business Object

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

  1. Create a Custom Business Object through SAP Cloud Applications Studio.
  2. Create an Event for Standard Business Object (e.g. for Tickets).
  3. Insert Following Lines for Referencing Custom Business Object:

    BusinessTransactionDocumentRelationshipRoleCode = "1";

    BusinessTransactionDocumentReference.TypeCode = "/YABCDEFG/1";

    BusinessTransactionDocumentReference.ID.content = this.ID.content;

    BusinessTransactionDocumentReference.Create

 

  1. Save and deploy it to your tenant.
  2. 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

Product

SAP Cloud Applications Studio all versions ; SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions