I_SupplierPurchasingOrg

DDL: I_SUPPLIERPURCHASINGORG SQL: ISUPPLPURCH Type: view BASIC

Supplier Purchasing Organization

I_SupplierPurchasingOrg is a Basic CDS View (Dimension) that provides data about "Supplier Purchasing Organization" in SAP S/4HANA. It reads from 1 data source (lfm1) and exposes 55 fields with key fields Supplier, PurchasingOrganization. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
lfm1 lfm1 from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_IncotermsClassification _IncotermsClassification $projection.IncotermsClassification = _IncotermsClassification.IncotermsClassification
[1..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] E_BPPURORG_D _PurgOrgExt $projection.PurchasingOrganization = _PurgOrgExt.PurchasingOrganization and $projection.Supplier = _PurgOrgExt.Supplier

Annotations (16)

NameValueLevelField
AbapCatalog.sqlViewName ISUPPLPURCH view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Supplier Purchasing Organization view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.representativeKey PurchasingOrganization view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.sapObjectNodeType.name SupplierPurchasingOrganization view
VDM.viewType #BASIC view

Fields (55)

KeyFieldSource TableSource FieldDescription
KEY Supplier lifnr
KEY PurchasingOrganization ekorg
PurchasingGroup ekgrp
MaterialPlannedDeliveryDurn plifz
PurchasingIsBlockedForSupplier sperm
SupplierRespSalesPersonName verkf
SupplierPhoneNumber telf1
PurchaseOrderCurrency waers
MinimumOrderAmount minbw
CalculationSchemaGroupCode kalsk
PaymentTerms zterm
PricingDateControl meprf
SupplierABCClassificationCode lfabc
ShippingCondition vsbed
PurOrdAutoGenerationIsAllowed kzaut
InvoiceIsGoodsReceiptBased webre
IncotermsClassification inco1
IncotermsTransferLocation inco2
IncotermsVersion incov
IncotermsLocation1 inco2_l
IncotermsLocation2 inco3_l
DeletionIndicator loevm
PlannedDeliveryDurationInDays plifz
ContactPersonPhoneNumber telf1
SupplierConfirmationControlKey bstae
IsOrderAcknRqd kzabs
EvaldReceiptSettlementIsActive xersy
AutomaticEvaluatedRcptSettlmt xersr
SupplierAccountNumber eikto
SuplrIsSubjToSubsqntSettlement bolre
SuplrPurgOrgAgrmtOfBusVolIsRqd umsae
SuplrInvcRevalIsAllowed xnbwy
SuplrPurgOrgIsRlvtForPriceDetn prfre
IntrastatCrsBorderTrMode expvz
ProductUnitGroup megru
RoundingProfile rdprf
PlanningCycle lfrhy
SuplrDiscountInKindIsGranted
SuplrIsRlvtForSettlmtMgmt agrel
InvoiceIsMMServiceEntryBased lebre
ProdStockAndSlsDataTransfPrfl paprf
EvaldRcptSettlementProfile valid_pro
AbsoluteHandlingSurchargeAmt hscabs
PercentageHandlingSurchargeAmt hscpe
MinimumHandlingSurchargeAmt hscmin
MaximumHandlingSurchargeAmt hscmax
AutomDebitCrtnIsEnbldOnGI aubel
SupplierIsReturnsSupplier kzret
IsActiveEntity
IncotermsSupChnLoc1AddlUUID
IncotermsSupChnLoc2AddlUUID
IncotermsSupChnDvtgLocAddlUUID
_IncotermsClassification _IncotermsClassification
AuthorizationGroup _Supplier AuthorizationGroup
_Supplier _Supplier
@AbapCatalog.sqlViewName: 'ISUPPLPURCH' //must start with "I"


@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #REQUIRED
@AccessControl.personalData.blockingIndicator: ['IsBusinessPurposeCompleted']
@Analytics: {
    dataCategory: #DIMENSION,
    dataExtraction: {
       enabled: true,
       delta.changeDataCapture: {
         mapping:[
                {
                    table: 'LFM1', role: #MAIN,
                    viewElement: ['Supplier','PurchasingOrganization'],
                    tableElement: ['lifnr','ekorg']
                },
                {
                    table: 'LFA1', role: #LEFT_OUTER_TO_ONE_JOIN,
                    viewElement: ['Supplier'],
                    tableElement: ['lifnr']
                }

           ]

       }
    }
}

@ClientHandling.algorithm : #SESSION_VARIABLE

@EndUserText.label: 'Supplier Purchasing Organization' //same as DDL description


@Metadata.allowExtensions: true
@Metadata.ignorePropagatedAnnotations: true

@ObjectModel.supportedCapabilities: [#SQL_DATA_SOURCE,
                                     #CDS_MODELING_DATA_SOURCE,
                                     #CDS_MODELING_ASSOCIATION_TARGET,
                                     #ANALYTICAL_DIMENSION,
                                     #EXTRACTION_DATA_SOURCE]
@ObjectModel.modelingPattern: #ANALYTICAL_DIMENSION
@ObjectModel.representativeKey: 'PurchasingOrganization'
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.sapObjectNodeType.name: 'SupplierPurchasingOrganization'
@VDM.viewType: #BASIC

define view I_SupplierPurchasingOrg //must start with "I_"; same as DDL source name in upper-camelcase notation

  as select from lfm1
  //Directly Selecting fields from Table instead of V_MD_SUPPLIER_PURCHASING view

  //---> Decomment if you want to join further data sources

  //left outer to one join DatabaseTableOrBasicCdsView2 //recommendation: use addition "to one" or "to many"

  //   on V_MD_SUPPLIER_PURCHASING.FieldName = DatabaseTableOrBasicCdsView2.FieldName2

  //---> Decomment if you want to introduce an association

  //association [0..1] to I_TargetPublicBasicViewNameWithoutPrefix as _TargetPublicBasicViewNameWithoutPrefix

  //   on $projection.SourceFieldName = _TargetPublicBasicViewNameWithoutPrefix.TargetFieldName

  association [0..1] to I_IncotermsClassification as _IncotermsClassification on  $projection.IncotermsClassification = _IncotermsClassification.IncotermsClassification

  association [1..1] to I_Supplier                as _Supplier                on  $projection.Supplier = _Supplier.Supplier

  association [0..1] to E_BPPURORG_D              as _PurgOrgExt              on  $projection.PurchasingOrganization = _PurgOrgExt.PurchasingOrganization
                                                                              and $projection.Supplier               = _PurgOrgExt.Supplier

{
      //key cast (DatabaseFieldName as DataElementWithProperLabel) as GlobalFieldName,

      //--[ GENERATED:012:GlBfhyJl7kY4i6}7dD1KRG

      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_Supplier_VH',
                     element: 'Supplier' }
        }]
      // ]--GENERATED

      @ObjectModel.foreignKey.association: '_Supplier'
  key lifnr                                           as Supplier,
      // @ObjectModel.text.element: 'PurchasingOrganizationName'

  key ekorg                                           as PurchasingOrganization,
      //    SupplierName1,

      //    SupplierName2,

      //    PurchasingGroupName,

      // PurchasingOrganizationName, Commented as a part of whitelisting development

      //    PurchasingBlock,

      //    SupplierRespSalesPersonName,

      //    SupplierPhoneNumber,

      ekgrp                                           as PurchasingGroup,
      plifz                                           as MaterialPlannedDeliveryDurn,
      sperm                                           as PurchasingIsBlockedForSupplier,
      verkf                                           as SupplierRespSalesPersonName,
      telf1                                           as SupplierPhoneNumber,
      waers                                           as PurchaseOrderCurrency,
      @Semantics.amount.currencyCode: 'PurchaseOrderCurrency'
      minbw                                           as MinimumOrderAmount,
      kalsk                                           as CalculationSchemaGroupCode,
      zterm                                           as PaymentTerms,
      meprf                                           as PricingDateControl,
      lfabc                                           as SupplierABCClassificationCode,
      vsbed                                           as ShippingCondition,
      kzaut                                           as PurOrdAutoGenerationIsAllowed,
      webre                                           as InvoiceIsGoodsReceiptBased,


      inco1                                           as IncotermsClassification,
      inco2                                           as IncotermsTransferLocation,
      incov                                           as IncotermsVersion,
      inco2_l                                         as IncotermsLocation1,
      inco3_l                                         as IncotermsLocation2,



      loevm                                           as DeletionIndicator,
      plifz                                           as PlannedDeliveryDurationInDays,
      telf1                                           as ContactPersonPhoneNumber,
      bstae                                           as SupplierConfirmationControlKey,
      kzabs                                           as IsOrderAcknRqd,

      //below fields moved down from I_BusinessPartnerPurgorg


      //fields requested by the TM colleagues

      xersy                                           as EvaldReceiptSettlementIsActive,
      xersr                                           as AutomaticEvaluatedRcptSettlmt,
      eikto                                           as SupplierAccountNumber,

      bolre                                           as SuplrIsSubjToSubsqntSettlement,
      umsae                                           as SuplrPurgOrgAgrmtOfBusVolIsRqd,
      xnbwy                                           as SuplrInvcRevalIsAllowed,
      prfre                                           as SuplrPurgOrgIsRlvtForPriceDetn,
      expvz                                           as IntrastatCrsBorderTrMode,
      megru                                           as ProductUnitGroup,
      rdprf                                           as RoundingProfile,
      lfrhy                                           as PlanningCycle,

      cast ( nrgew as xfeld preserving type )         as SuplrDiscountInKindIsGranted,
      // lfm1.nrgew                                  as SuplrDiscountInKindIsGranted,

      agrel                                           as SuplrIsRlvtForSettlmtMgmt,
      lebre                                           as InvoiceIsMMServiceEntryBased,
      paprf                                           as ProdStockAndSlsDataTransfPrfl,
      valid_pro                                       as EvaldRcptSettlementProfile,
      @Semantics.amount.currencyCode: 'PurchaseOrderCurrency'
      hscabs                                          as AbsoluteHandlingSurchargeAmt,
      hscpe                                           as PercentageHandlingSurchargeAmt,
      @Semantics.amount.currencyCode: 'PurchaseOrderCurrency'
      hscmin                                          as MinimumHandlingSurchargeAmt,
      @Semantics.amount.currencyCode: 'PurchaseOrderCurrency'
      hscmax                                          as MaximumHandlingSurchargeAmt,
      aubel                                           as AutomDebitCrtnIsEnbldOnGI,

      kzret                                           as SupplierIsReturnsSupplier,

      //For extensibility

      cast( 'X' as sdraft_is_active preserving type ) as IsActiveEntity,
      cast(   inco2_key  as /sapapo/location_uuid)    as IncotermsSupChnLoc1AddlUUID,
      cast(   inco3_key  as /sapapo/location_uuid)    as IncotermsSupChnLoc2AddlUUID,
      cast(   inco4_key  as /sapapo/location_uuid)    as IncotermsSupChnDvtgLocAddlUUID,

      //    InvoiceIsGoodsReceiptBased,

      //    CalculationSchemaGroupCode,

      //    POAutomaticGenerationIsAllowed,

      //    PricingDateControl,

      //    MaterialPlannedDeliveryDurn,

      //    ShippingCondition,

      //    ETag,

      //

      //    /* Associations */

      //    CalcSchemaGroupText,

      //    CurrencyText,

      //    ShippingConditionText,


      //No usage hence commenting and adding

      //    V_MD_SUPPLIER_PURCHASING.IncotermsText as _IncotermsText,

      //  _PaymentTermsText,       Removed as a Part of Whitelisting

      _IncotermsClassification,
      _Supplier.AuthorizationGroup,
      _Supplier

      //_TargetPublicBasicViewNameWithoutPrefix //expose the association for use by consumers


}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SUPPLIER",
"LFM1"
],
"ASSOCIATED":
[
"E_BPPURORG_D",
"I_INCOTERMSCLASSIFICATION",
"I_SUPPLIER"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/