SAP HANA CLOUD

[SAP RAP] The use of CDS Entity I_BillOfMaterialHeader is not permitted. 오류

선짱 2026. 4. 3. 09:11
반응형

제품, 반제품의 자재마스터 기본 정보 조회 view 를 만들다가 한 인터페이스뷰가 조인이 안된다.

@AccessControl.authorizationCheck: #NOT_REQUIRED

@EndUserText.label: 'ZR_ROUTINGLIST_14'

@Metadata.ignorePropagatedAnnotations: true

define root view entity zr_product_14

  as select from    I_ProductPlantBasic        as A

    inner join      I_Product                  as B on A.Product = B.Product

    left outer join I_Productplantqtmanagement as C on  A.Product = C.Product

                                                    and A.Plant   = C.Plant

    left outer join I_ProductText              as D on  B.Product  = D.Product

                                                    and D.Language = $session.system_language

    left outer join I_ProductStatusText        as E on  A.ProfileCode = E.Status

                                                    and E.Language    = $session.system_language

    left outer join I_ProductionSupervisor     as F on  A.ProductionSupervisor = F.ProductionSupervisor

                                                    and A.Plant                = F.Plant

    left outer join I_MRPController            as G on  A.MRPResponsible = G.MRPController

                                                    and A.Plant          = G.Plant

  association [0..1] to I_BillOfMaterialHeader  as _EBOM on  _EBOM.Material                   = A.Product

                                                        and _EBOM.Plant                      = A.Plant

                                                        and _EBOM.BillOfMaterialVariantUsage = '2'

 

해당 인터페이스뷰 들어와서 Properties 확인해보자 .

è Api state 들어와보면 이렇게 릴리즈가 되어있어야하는데 해당 인터페이스 뷰는 셋팅이 안되있었음

 

I_BillOfMaterialHeader 쪽에서 The use of CDS Entity I_BillOfMaterialHeader is not permitted. 오류난다.

 

@Metadata.layer: #CORE

: #CORE : SAP 또는 개발자가 기본으로 설정한 값

#CORE로 만들어두면 나중에 #CUSTOMER 레이어로 덮어써서 변경 가능

 

@UI: {

  headerInfo: {

    typeName: 'Production Master Data Preparation Status for Products',

    typeNamePlural: 'Production Master Data Preparation Status for Products'

  }

}

 

 

 

 

 

반응형