cancel
Showing results for 
Search instead for 
Did you mean: 

SADL query for the custom BO cannot be generated - SAP Cloud Platform C4C SDK

Former Member
0 Kudos

Hello,

When I am trying to create SADL query for my custom BO I am facing with the following errors:

Exception Message: XRepositoryException (4)Target node 'ROOT' of association 'MAINEMPARTY92D68267ADAE7A6C' is not replicable [BO/node: YGY34AUUY_REER09BDC154CB92059B/ROOT4F903855210031B0]

The usage of this BO entity is not allowed in mode 'UI': 'Target node 'ROOT' of association 'MAINEMPARTY92D68267ADAE7A6C' is not replicable [BO/node: YGY34AUUY_REER09BDC154CB92059B/ROOT4F903855210031B0]'

SADL View generation failed

An exception was raised

Error occurred when SP CL_XREP_PROVIDER_UICOMP checks file /YGY34AUUY_MAIN/SRC/RebateCommission/BO/RebComHeader_OWL.OWL.uicomponent

Error occurred in check method of SP

InnerException Message:XRepositoryException (4)Target node 'ROOT' of association 'MAINEMPARTY92D68267ADAE7A6C' is not replicable [BO/node: YGY34AUUY_REER09BDC154CB92059B/ROOT4F903855210031B0]

The usage of this BO entity is not allowed in mode 'UI': 'Target node 'ROOT' of association 'MAINEMPARTY92D68267ADAE7A6C' is not replicable [BO/node: YGY34AUUY_REER09BDC154CB92059B/ROOT4F903855210031B0]'

SADL View generation failed

An exception was raised

Error occurred when SP CL_XREP_PROVIDER_UICOMP checks file /YGY34AUUY_MAIN/SRC/RebateCommission/BO/RebComHeader_OWL.OWL.uicomponent

The problem appear only when I am trying to add elements from associations to DataList of my OWL.

My BO definition:

import AP.Common.GDT as apCommonGDT; import AP.FO.BusinessPartner.Global; businessobject RebComHeader raises MsgMandatory, MsgApprovalAttachment, MsgCreateItemError, MsgCopyError, MsgStatusError, MsgStatusRequestPM, MsgStatusRequestOP, MsgSelectApprover { message MsgMandatorytext "Please maintain mandatory field: &1" : LANGUAGEINDEPENDENT_MEDIUM_Text; message MsgApprovalAttachmenttext "Please attach approval from your manager"; message MsgCreateItemErrortext "Unhandled error while creating Item"; message MsgCopyErrortext "Copy function failed. Reference Request not found."; message MsgStatusErrortext "Status '&1' cannot be set" : LANGUAGEINDEPENDENT_MEDIUM_Text; message MsgStatusRequestPMtext "Exceptions need to be approved by PM, send your request to PM"; message MsgStatusRequestOPtext "No exceptions have been selected, send your request to OP"; message MsgSelectApprovertext "Select the Approver (KAM, R.H. or M-S Dir.)"; [AlternativeKey] [Label("Request Form ID")]element RequestID: BusinessTransactionDocumentID; [Label("Copy of Request ID")]element RefRequestID: BusinessTransactionDocumentID; // previous document number (copied from...) [Label("Status")]elementStatus: RCStatusCode; [Label("Status")]elementStatusSearch: RCStatusSearchCode; [Label("Status Scheme")]element StatusScheme: RCStatusSchemeCode; [Label("Description")]element Description: LANGUAGEINDEPENDENT_EXTENDED_Text; [Label("R/C Type")]element RCType: RCTypeCode; [Label("Sales Org.")]element SalesOrg: OrganisationalCentreID; [Label("Currency")]element Currency: CurrencyCode; [Label("Validity From")]element ValidFrom: Date; [Label("Validity To")]element ValidTo: Date; [Label("Settlement Period")]elementSettlementPeriod: SettlePeriodCode; [Label("Team ID")]elementTeamID: OrganisationalCentreID; [Label("Team")]elementTeamName: LANGUAGEINDEPENDENT_MEDIUM_Name; [Label("Add. Comments")]elementAddComments: LANGUAGEINDEPENDENT_EXTENDED_Text; [Label("Copy Ref. Rebate")]element RefNewRebateID: ID;// related to NewRebateID from previous document (copied from...) // Rebate and Commission Frame Part [Label("Within Frame")]element WithinFrame: Indicator; [Label("Approved by KAM")]element ApprovedByKAM: Indicator; [Label("Approved by R.H.")]element ApprovedByRH: Indicator; [Label("Approved by M+S Dir")]element ApprovedByDir: Indicator; [Label("Approval Attached")]element ApprovalAttached: Indicator; // Exceptions Part [Label("Approved by P.M.")]element ApprovedByPM: Indicator; [Label("Approval On")]elementApprovedByPMOn: GLOBAL_DateTime; // Operations Part [Label("New Rebate Number")]element NewRebateID: ID; [Label("Access Sequence")]element AccessSequence: LANGUAGEINDEPENDENT_EXTENDED_Text; [DependentObject(TextCollection)]node TextCollection; [DependentObject(AttachmentFolder)] node Attachment; // Administration Part [Transient]element BOCosistencyError: Indicator; // document contains errors? used for Validation OnSave [Transient]element DummyUpdate: Indicator; // set this flag from outside to force BO update element SystemAdministrativeData: Common.DataTypes:SystemAdministrativeData; association CreationIdentityto AP.PC.IdentityManagement.Global:Identity; association LastChangeIdentityto AP.PC.IdentityManagement.Global:Identity; // Recipient association MainRecipientParty[0,1] to AP.FO.Party.Global:Party; [Label("Recipient (Agent)")]element Recipient : PartyID; // needed to display Request list on Account and for OWL Advanced Search Query // Requested By association MainEmployeeResponsibleParty[0,1] to AP.FO.Party.Global:Party; [Label("Requested By")]element EmployeeResponsibleID : BusinessPartnerInternalID; // needed for OWL Advanced Search Query // Team association OrganisationalUnit[0,1] to AP.FO.MOM.Global:OrganisationalUnit; node Items [0,n] { [Label("Item No.")]element ItemNumber: NumberValue; [Label("Item ID")]element RequestItemID: ID; association Item to RebComItem; action DeleteItem; } node InformedParty [0,n] { association RebComParty to RebComParty; element RequestPartyID : ID;// technical use only (ID from RebComParty) // for 1..1 relation to Item / not in use currenlty, can be reused [Label("Ref. Item")]element RequestItemID : ID; // for 1..n relation to Item / used by Sold-To on Item node RequestItemSet [0,n] { [Label("Ref. Item")]element RequestItemID : ID; } action CreateRebComParty; } node ObjectEventControl [1,1] { [Transient] element EventsInitialized: Indicator; [Transient] element OnModifyInitNew: Indicator; // run once: initialize new entity [Transient] element OnModifyInitCopy: Indicator; // run once: initialize copy of an entity [Transient] element OnModifyCopy: Indicator; // multiple run for copy of an entity [Transient] element OnModifyCreate: Indicator; // multiple run until entity is saved (e.g. for QuickCreate screen) [Transient] element OnSaveNew: Indicator; // on first save of an entity [Transient] element OnSaveCopy: Indicator; // on first save of a copy of entity [Transient] element UpdateStatusScheme: Indicator; // one of Items has changed -> force status scheme check [Transient] element IsReadOnlyNewRebateID: Indicator; [Transient] element IsReadOnlyAccessSequence: Indicator; // CHANGE CONTROL - copy of elements from Root Node, used to detect change element ChangeCtrlStatus: RCStatusCode; } // After Modify actions action InitializeEvents; action OnModifyInitNew; action UpdateMainEmployeeResponsibleParty; action UpdateMainRecipientParty; action UpdateApprovalAttached raises MsgApprovalAttachment; action UpdateStatusScheme raises MsgStatusError, MsgStatusRequestPM, MsgStatusRequestOP, MsgSelectApprover; action UpdateTeam; action UpdateSalesOrg; // Before Save actions action SetRequestID; action OnStatusChange; action UpdateSystemAdministrativeData; action UpdateItemsID; action UpdateMainPricingManagerParty; action UpdateMainOperationAgentParty; action UpdateInformedPartyNode; action UpdateWithinFrame; action UpdateCustomerRelations; // Other action CopyFromRefRequest raises MsgCopyError; // Create copy of a Request, based on ID from RefRequestID field action CreateItem raises MsgCreateItemError; // Actions called from UI action RunBeforeSaveChecks; action SetReadOnlyFields; }

Is there any possibility to fix this issue?

BR,

Jacek Hnat

Accepted Solutions (0)

Answers (0)