A_PurgInfoRecdOrgPlantData

DDL: A_PURGINFORECDORGPLANTDATA SQL: APINPLORG Type: view BASIC

Purchasing Info Record Purch. Org. Data

A_PurgInfoRecdOrgPlantData is a Basic CDS View that provides data about "Purchasing Info Record Purch. Org. Data" in SAP S/4HANA. It reads from 1 data source (I_PurgInfoRecdOrgPlantData) and exposes 54 fields with key fields PurchasingInfoRecord, PurchasingInfoRecordCategory, PurchasingOrganization, Plant. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_PurgInfoRecdOrgPlantData I_PurgInfoRecdOrgPlantData from

Associations (3)

CardinalityTargetAliasCondition
[1..1] A_PurchasingInfoRecord _PurgInfoRecd $projection.PurchasingInfoRecord = _PurgInfoRecd.PurchasingInfoRecord
[0..*] A_PurInfoRecdPrcgCndnValidity _PurInfoRecdPrcgCndnValidity $projection.PurchasingInfoRecord = _PurInfoRecdPrcgCndnValidity.PurchasingInfoRecord and $projection.PurchasingInfoRecordCategory = _PurInfoRecdPrcgCndnValidity.PurchasingInfoRecordCategory and $projection.PurchasingOrganization = _PurInfoRecdPrcgCndnValidity.PurchasingOrganization
[0..*] A_PurgInfoRecdOrgPOText _PurInfoRecdPurOrgText $projection.PurchasingInfoRecord = _PurInfoRecdPurOrgText.PurchasingInfoRecord and $projection.PurchasingInfoRecordCategory = _PurInfoRecdPurOrgText.PurchasingInfoRecordCategory and $projection.PurchasingOrganization = _PurInfoRecdPurOrgText.PurchasingOrganization and $projection.Plant = _PurInfoRecdPurOrgText.Plant

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName APINPLORG view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #BASIC view
EndUserText.label Purchasing Info Record Purch. Org. Data view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view

Fields (54)

KeyFieldSource TableSource FieldDescription
KEY PurchasingInfoRecord PurchasingInfoRecord
KEY PurchasingInfoRecordCategory PurchasingInfoRecordCategory
KEY PurchasingOrganization PurchasingOrganization
KEY Plant Plant
CreatedByUser CreatedByUser
IsMarkedForDeletion IsMarkedForDeletion
PurchasingGroup PurchasingGroup
Currency Currency
MinimumPurchaseOrderQuantity MinimumPurchaseOrderQuantity
StandardPurchaseOrderQuantity StandardPurchaseOrderQuantity
MaterialPlannedDeliveryDurn MaterialPlannedDeliveryDurn
OverdelivTolrtdLmtRatioInPct OverdelivTolrtdLmtRatioInPct
UnderdelivTolrtdLmtRatioInPct UnderdelivTolrtdLmtRatioInPct
UnlimitedOverdeliveryIsAllowed UnlimitedOverdeliveryIsAllowed
LastReferencingPurchaseOrder LastReferencingPurchaseOrder
LastReferencingPurOrderItem LastReferencingPurOrderItem
Material _PurgInfoRecd Material
Supplier _PurgInfoRecd Supplier
MaterialGroup _PurgInfoRecd MaterialGroup
PurgDocOrderQuantityUnit _PurgInfoRecd PurgDocOrderQuantityUnit
NetPriceQuantityUnit
NetPriceAmount NetPriceAmount
MaterialPriceUnitQty MaterialPriceUnitQty
PurchaseOrderPriceUnit PurchaseOrderPriceUnit
PriceValidityEndDate PriceValidityEndDate
ShippingInstruction ShippingInstruction
InvoiceIsGoodsReceiptBased InvoiceIsGoodsReceiptBased
TaxCode TaxCode
IncotermsClassification IncotermsClassification
IncotermsTransferLocation IncotermsTransferLocation
IncotermsLocation1 IncotermsLocation1
MaximumOrderQuantity MaximumOrderQuantity
IsRelevantForAutomSrcg IsRelevantForAutomSrcg
SupplierQuotation SupplierQuotation
SupplierQuotationDate SupplierQuotationDate
MinRemainingShelfLife MinRemainingShelfLife
IsEvaluatedRcptSettlmtAllowed IsEvaluatedRcptSettlmtAllowed
IsPurOrderAllwdForInbDeliv IsPurOrderAllwdForInbDeliv
IsOrderAcknRqd IsOrderAcknRqd
IsRetMatlAuthznRqdBySupplier IsRetMatlAuthznRqdBySupplier
IsCashDiscountGranted IsCashDiscountGranted
MaterialConditionGroup MaterialConditionGroup
PurchasingDocumentDate PurchasingDocumentDate
ShelfLifeExpirationDatePeriod ShelfLifeExpirationDatePeriod
IsEndOfPurposeBlocked IsEndOfPurposeBlocked
SupplierConfirmationControlKey SupplierConfirmationControlKey
PricingDateControl PricingDateControl
TimeDependentTaxValidFromDate TimeDependentTaxValidFromDate
TaxCountry TaxCountry
MaterialRoundingProfile MaterialRoundingProfile
MatlMstrTxtIsNotRlvtForPOItm MatlMstrTxtIsNotRlvtForPOItm
_PurgInfoRecd _PurgInfoRecd
_PurInfoRecdPrcgCndnValidity _PurInfoRecdPrcgCndnValidity
_PurInfoRecdPurOrgText _PurInfoRecdPurOrgText
@AbapCatalog.sqlViewName: 'APINPLORG'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType : #BASIC
@EndUserText.label: 'Purchasing Info Record Purch. Org. Data'
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #L
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.lifecycle.contract.type:#PUBLIC_REMOTE_API
@ObjectModel.createEnabled: true
@ObjectModel.updateEnabled: true

define view A_PurgInfoRecdOrgPlantData
  as select from I_PurgInfoRecdOrgPlantData

  association [1..1] to A_PurchasingInfoRecord as _PurgInfoRecd on $projection.PurchasingInfoRecord = _PurgInfoRecd.PurchasingInfoRecord
  association [0..*] to A_PurInfoRecdPrcgCndnValidity as _PurInfoRecdPrcgCndnValidity  on $projection.PurchasingInfoRecord  = _PurInfoRecdPrcgCndnValidity.PurchasingInfoRecord
                                                                  and  $projection.PurchasingInfoRecordCategory = _PurInfoRecdPrcgCndnValidity.PurchasingInfoRecordCategory
                                                                  and $projection.PurchasingOrganization = _PurInfoRecdPrcgCndnValidity.PurchasingOrganization
  association [0..*] to A_PurgInfoRecdOrgPOText as _PurInfoRecdPurOrgText on  $projection.PurchasingInfoRecord = _PurInfoRecdPurOrgText.PurchasingInfoRecord
                                                                 and  $projection.PurchasingInfoRecordCategory = _PurInfoRecdPurOrgText.PurchasingInfoRecordCategory
                                                                 and  $projection.PurchasingOrganization = _PurInfoRecdPurOrgText.PurchasingOrganization
                                                                 and  $projection.Plant = _PurInfoRecdPurOrgText.Plant

{

  key PurchasingInfoRecord,

  key PurchasingInfoRecordCategory,

  key PurchasingOrganization,

  key Plant,

      CreatedByUser,

      IsMarkedForDeletion,
      @ObjectModel.sapObjectNodeTypeReference: 'PurchasingGroup'
      PurchasingGroup,
      @ObjectModel.sapObjectNodeTypeReference: 'Currency'
      Currency,
      @Semantics.quantity.unitOfMeasure: 'PurchaseOrderPriceUnit'
      MinimumPurchaseOrderQuantity,
      @Semantics.quantity.unitOfMeasure: 'PurchaseOrderPriceUnit'
      StandardPurchaseOrderQuantity,

      MaterialPlannedDeliveryDurn,

      OverdelivTolrtdLmtRatioInPct,

      UnderdelivTolrtdLmtRatioInPct,

      UnlimitedOverdeliveryIsAllowed,

      LastReferencingPurchaseOrder,

      LastReferencingPurOrderItem,

      _PurgInfoRecd.Material                            as Material,
      _PurgInfoRecd.Supplier                            as Supplier,
      _PurgInfoRecd.MaterialGroup                       as MaterialGroup,
      _PurgInfoRecd.PurgDocOrderQuantityUnit            as PurgDocOrderQuantityUnit,
      
      @ObjectModel: {
        readOnly: true,
        virtualElement: true,
        virtualElementCalculatedBy: 'CL_INFOREC_NETPRICE_API_EXIT'
      }
      cast(NetPriceAmount as abap.sstring(50))          as NetPriceQuantityUnit,
      @Semantics.amount.currencyCode: 'Currency'
      NetPriceAmount,
      @Semantics.quantity.unitOfMeasure: 'PurchaseOrderPriceUnit'
      MaterialPriceUnitQty,

      PurchaseOrderPriceUnit,

      PriceValidityEndDate,
      
      @ObjectModel.sapObjectNodeTypeReference: 'PurchasingShippingInstruction'
      ShippingInstruction,

      InvoiceIsGoodsReceiptBased,
      @ObjectModel.sapObjectNodeTypeReference: 'SalesTaxCode'
      TaxCode,
      
      @ObjectModel.sapObjectNodeTypeReference: 'IncotermsClassification'
      IncotermsClassification,

      IncotermsTransferLocation,

      IncotermsLocation1,
      @Semantics.quantity.unitOfMeasure: 'PurchaseOrderPriceUnit'
      MaximumOrderQuantity,

      IsRelevantForAutomSrcg,

      SupplierQuotation,

      SupplierQuotationDate,

      MinRemainingShelfLife,

      IsEvaluatedRcptSettlmtAllowed,

      IsPurOrderAllwdForInbDeliv,

      IsOrderAcknRqd,

      IsRetMatlAuthznRqdBySupplier,

      IsCashDiscountGranted,

      MaterialConditionGroup,

      PurchasingDocumentDate,

      ShelfLifeExpirationDatePeriod,

      IsEndOfPurposeBlocked,
      
      @ObjectModel.sapObjectNodeTypeReference: 'SupplierConfirmationControlKey'
      SupplierConfirmationControlKey,
      
      PricingDateControl,
      
      TimeDependentTaxValidFromDate,
   //   @ObjectModel.sapObjectNodeTypeReference: 'Country'

      TaxCountry,
      
      MaterialRoundingProfile,
      
      MatlMstrTxtIsNotRlvtForPOItm,
      
      @ObjectModel.association.type: [#TO_COMPOSITION_PARENT, #TO_COMPOSITION_ROOT]
      _PurgInfoRecd,
      
      _PurInfoRecdPrcgCndnValidity,
      
      _PurInfoRecdPurOrgText
      

}
//where

//       IsEndOfPurposeBlocked        <> 'X'

//  or   IsEndOfPurposeBlocked        is null

//

//  and(

//       PurchasingOrganization       <> ''

//  )

//  and(

//       PurchasingInfoRecordCategory =  '0'

//    or PurchasingInfoRecordCategory =  ''

//    or PurchasingInfoRecordCategory is null

//  )

/*+[internal] {
"BASEINFO":
{
"FROM":
[
"A_PURCHASINGINFORECORD",
"I_PURGINFORECDORGPLANTDATA"
],
"ASSOCIATED":
[
"A_PURCHASINGINFORECORD",
"A_PURGINFORECDORGPOTEXT",
"A_PURINFORECDPRCGCNDNVALIDITY"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/