cancel
Showing results for 
Search instead for 
Did you mean: 

RAP - Behavior projection - Error on activating Behavior projection

06-18-2026 7:54 PM
shobhan_rana Explorer
473 views 2 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Hi All,  

Managed scenario - Created three levels of RAP BO.

Behavior definition is successfully activated however could not able to activate the "Behavior Projection".  Follwing is the error under ADT Problem - 

The association "_CUSTOMER" cannot be used as a transactional association since the target entity "ZSRA_R_CUSTTP" is not redirected to "ZSRA_C_CUST" in the CDS definition.

define root view entity  ZSRA_C_CUST
 provider contract transactional_query
  as projection on  ZSRA_CUSTTP
{
  key CustomerId,
      CustomerName,
      CreatedBy,
      CreatedAt,
      LastChangedBy,
      ChdLocalLastChangedAt,
      LastChangedAt,
      /* Assoziationen */
      _project : redirected to composition child ZSRA_C_PRJ
}

------------

define view entity ZSRA_C_PRJ
  as projection on ZSRA_R _PRJTP
{
  key CustomerId,
  key ProjectId,
      ProjectName,
      Project,
      ProjectType,
      Data,
      Exporter,
      CreatedBy,
      CreatedAt,
      LastChangedBy,
      PrjLocalLastChangedAt,
      LastChangedAt,
      /* Associations */
      _customer : redirected to parent /OSGMBH/ ZSRA_C_CUST,
      _sys: redirected to composition child ZSRA_C_SYS

}

 ------------
define view entity ZSRA_C_SYS as projection on ZSRA_ R_SYS
{
    key ProjectId,
key SystemId,
    key CustomerId,
    SystemName,
    Service,
    Tenant,
    CreatedBy,
    CreatedAt,
    LastChangedBy,
    SysLocalLastChangedAt,
    LastChangedAt,
    /* Associations */
    _project: redirected to parent  ZSRA_C_PRJ,
     _customer
}

Behavior Projection –

projection;
strict ( 2 );
use draft;
define behavior for ZSRA_C_CUST alias Customer
{
  use create;
  use update;
  use delete;
  use action Edit;
  use action Activate;
  use action Discard;
use action Resume;
  use action Prepare;
use association _project { create; with draft; }
}

define behavior for ZSRA_C_PRJ alias Project
{
  use update;
  use delete;
  use association _customer { with draft; }
  use association _sys { create; with draft; }
}
define behavior for ZSRA_C_SYS alias System
{
  use update;
  use delete;
  use association _project { with draft; }
  use association _customer { with draft; } <-- Error
}

Thanks & regards

Shobhan Rana 

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

SachinArtani
Active Participant
0 Likes

Try making your association as -

_customer: redirected to ZSRA_C_CUST

in ZSRA_C_SYS.

shobhan_ranab60d27
Discoverer
0 Likes
Thanks i tried it it works.

Answers (0)