C_PurchaseOrderTP

DDL: C_PURCHASEORDERTP Type: view CONSUMPTION Package: ODATA_MM_PUR_PO_MAINTAIN_V2

Purchase Order

C_PurchaseOrderTP is a Consumption CDS View that provides data about "Purchase Order" in SAP S/4HANA. It reads from 1 data source (I_PurchaseOrderTP) and exposes 135 fields with key field PurchaseOrder. It has 30 associations to related views. Part of development package ODATA_MM_PUR_PO_MAINTAIN_V2.

Data Sources (1)

SourceAliasJoin Type
I_PurchaseOrderTP PurchaseOrderTP from

Associations (30)

CardinalityTargetAliasCondition
[1..*] C_PurchaseOrderItemTP _PurchaseOrderItemTP _PurchaseOrderItemTP.PurchaseOrder = $projection.PurchaseOrder
[1..*] C_PurchaseOrderItemHierarchyTP _PurchaseOrderItemHierarchyTP _PurchaseOrderItemHierarchyTP.PurchaseOrder = $projection.PurchaseOrder
[1..1] C_PurOrdSupplierAddressTP _PurOrdSupplierAddressTP _PurOrdSupplierAddressTP.PurchaseOrder = $projection.PurchaseOrder
[0..*] C_PurOrdRefDocPO _PurOrdRefDocPO _PurOrdRefDocPO.Supplier = $projection.Supplier
[0..*] C_PurOrdRefDocIR _PurOrdRefDocIR _PurOrdRefDocIR.Supplier = $projection.Supplier
[0..*] C_PurOrdRefDocPC _PurOrdRefDocPC _PurOrdRefDocPC.Supplier = $projection.Supplier
[0..1] I_UserContactCard _UserContactCard _UserContactCard.ContactCardType = 'User' and _UserContactCard.ContactCardID = $projection.CreatedByUser and _UserContactCard.ContactCardRole = 'Creator'
[0..1] C_OverduePurchaseOrder _OverduePurchaseOrder $projection.PurchaseOrder = _OverduePurchaseOrder.PurchaseOrder
[0..1] I_PurchaseOrderRelevance _PurchaseOrderRelevance $projection.PurchaseOrder = _PurchaseOrderRelevance.PurchaseOrder
[0..1] I_PurchaseOrderStatus _PurchaseOrderStatus $projection.PurchaseOrder = _PurchaseOrderStatus.PurchaseOrder
[0..1] I_PurchasingDocumentStatus _PurchasingDocumentStatus $projection.PurchaseOrderStatus_H = _PurchasingDocumentStatus.PurchasingDocumentStatus
[1..*] C_PurchaseOrderFeature _PurchaseOrderFeature $projection.PurchaseOrder = _PurchaseOrderFeature.PurchaseOrder
[0..*] C_PurchaseOrderCommitment _PurchaseOrderCommitment $projection.PurchaseOrder = _PurchaseOrderCommitment.PurchaseOrder ------------------------------------------------------------------------------------------- -- Value-Help Associations -- -------------------------------------------------------------------------------------------
[0..1] I_PaymentTerms _PaymentTerms _PaymentTerms.PaymentTerms = $projection.PaymentTerms
[0..*] C_PurchaseOrderNoteTP _PurchaseOrderNote _PurchaseOrderNote.PurchaseOrder = $projection.PurchaseOrder
[0..*] C_PurchaseOrderPartnerTP _PurchaseOrderPartnerTP _PurchaseOrderPartnerTP.PurchaseOrder = $projection.PurchaseOrder
[0..1] C_MM_CompanyCodeValueHelp _CompanyCodeValueHelp _CompanyCodeValueHelp.CompanyCode = $projection.CompanyCode
[0..1] C_SupplierPurchOrgVH _SupplierValueHelp _SupplierValueHelp.Supplier = $projection.Supplier and _SupplierValueHelp.PurchasingOrganization = $projection.PurchasingOrganization
[0..1] C_PurchasingOrgValueHelp _PurgOrgValueHelp _PurgOrgValueHelp.PurchasingOrganization = $projection.PurchasingOrganization and _PurgOrgValueHelp.CompanyCode = $projection.CompanyCode
[0..1] C_PurchasingGroupValueHelp _PurchasingGrpValueHelp _PurchasingGrpValueHelp.PurchasingGroup = $projection.PurchasingGroup
[0..1] C_PurOrdCreatedByValHelp _CreatedByValueHelp _CreatedByValueHelp.UserID = $projection.CreatedByUser
[0..1] I_Supplier _Supplier _Supplier.Supplier = $projection.Supplier
[0..1] I_PurgTotProdCmplncSuplrStsT _PurgTotProdCmplncSuplrStsT $projection.PurgAggrgdProdCmplncSuplrSts = _PurgTotProdCmplncSuplrStsT.PurgAggrgdProdCmplncSuplrSts and _PurgTotProdCmplncSuplrStsT.Language = $session.system_language
[0..1] I_PurgTotProdMarketabilityStsT _PurgTotProdMarketabilityStsT $projection.PurgAggrgdProdMarketabilitySts = _PurgTotProdMarketabilityStsT.PurgAggrgdProdMarketabilitySts and _PurgTotProdMarketabilityStsT.Language = $session.system_language
[0..1] I_PurgAggrgdSftyDataSheetStsT _PurgAggrgdSftyDataSheetStsT $projection.PurgAggrgdSftyDataSheetStatus = _PurgAggrgdSftyDataSheetStsT.PurgAggrgdSftyDataSheetStatus and _PurgAggrgdSftyDataSheetStsT.Language = $session.system_language
[0..1] I_PurgTotDangerousGoodsStsT _PurgTotDangerousGoodsStsT $projection.PurgProdCmplncTotDngrsGoodsSts = _PurgTotDangerousGoodsStsT.PurgProdCmplncTotDngrsGoodsSts and _PurgTotDangerousGoodsStsT.Language = $session.system_language
[0..1] C_POProdComplianceCriticality _POProdComplianceCriticality $projection.PurchaseOrder = _POProdComplianceCriticality.PurchaseOrder
[0..*] C_PurchaseOrderApprover _POApprover $projection.PurchaseOrder = _POApprover.PurchaseOrder
[1..1] I_PurgProcessingStatusText _PurOrdProcessingStatusTxt _PurOrdProcessingStatusTxt.PurchasingProcessingStatus = $projection.PurchasingProcessingStatus and _PurOrdProcessingStatusTxt.Language = $session.system_language
[1..1] C_PurchaseOrderStatus _POStatus $projection.PurchaseOrder = _POStatus.PurchaseOrder

Annotations (24)

NameValueLevelField
VDM.viewType #CONSUMPTION view
AbapCatalog.sqlViewName CPURORDTP view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Purchase Order view
AccessControl.authorizationCheck #CHECK view
ObjectModel.compositionRoot true view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.draftEnabled true view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled EXTERNAL_CALCULATION view
ObjectModel.deleteEnabled EXTERNAL_CALCULATION view
ObjectModel.semanticKey PurchaseOrder view
ObjectModel.representativeKey PurchaseOrder view
ObjectModel.sapObjectNodeType.name PurchaseOrder view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Search.searchable true view
UI.headerInfo.typeName Purchase Order view
UI.headerInfo.typeNamePlural Purchase Orders view
UI.headerInfo.title.value PurchaseOrder view
UI.headerInfo.description.value PurchaseOrderTypeName view
UI.lineItem.criticality PurchaseOrderStatus view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (135)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder I_PurchaseOrderTP PurchaseOrder Purchasing Document
PurchaseOrderType I_PurchaseOrderTP PurchaseOrderType PO Type
PurchaseOrderTypeName I_PurchaseOrderTP PurchaseOrderTypeName Purchasing Document Type Description
PurchasingDocumentType I_PurchaseOrderTP PurchaseOrderType Purchasing Document Type
CompanyCode I_PurchaseOrderTP CompanyCode Receiver Company Code
PurchasingOrganization
PurchasingGroup I_PurchaseOrderTP PurchasingGroup Purchasing Group
Supplier I_PurchaseOrderTP Supplier Supplier
DocumentCurrency I_PurchaseOrderTP DocumentCurrency Document Currency
DocumentCurrencyName
NumberOfOverduePurOrdItm_H _OverduePurchaseOrder NumberOfOverduePurOrdItm NoofOverduePOrderItm
NumberOfOverduePurOrdItm
PurchaseOrderStatus Status
PurchaseOrderStatusName
PurchaseOrderStatus_H _PurchaseOrderStatus PurchasingDocumentStatus Short Description
PurchasingDocumentStatus _PurchaseOrderStatus PurchasingDocumentStatus Short Description
ReleaseIsNotCompleted I_PurchaseOrderTP ReleaseIsNotCompleted Subj.to Release
PurchasingProcessingStatus I_PurchaseOrderTP PurchasingProcessingStatus Proc. State
PurchasingProcessingStatusName _PurOrdProcessingStatusTxt PurchasingProcessingStatusName Short Description
PurchasingCompletenessStatus I_PurchaseOrderTP PurchasingCompletenessStatus Incomplete
PurchaseOrderNetAmount
WeightedRelevance
ScheduleLineDeliveryDate _OverduePurchaseOrder ScheduleLineDeliveryDate Delivery Date
ManufacturerMaterial Material
Plant Plant
PurOrdOutputCtrlType
PurchaseOrderOutputStatus
PurchaseOrderOutputStatusName
PurchaseOrderOutputDateTime
ApprovalStatus
ApprovalStatusName
ApproverName
PurchaseOrderNumberOfApprovers
POApproverCommentText
POReworkCommentText I_PurchaseOrderTP POReworkCommentText Rework Comment
_POApprover _POApprover
_POStatus _POStatus
PurgHasFlxblWorkflowApproval _PurchaseOrderType PurgHasFlxblWorkflowApproval
CreatedByUser
CreatedByUserFullName I_PurchaseOrderTP CreatedByUserFullName Description
CreationDate I_PurchaseOrderTP CreationDate Time Stamp
PurchaseOrderDate I_PurchaseOrderTP PurchaseOrderDate PO Date
Language I_PurchaseOrderTP Language Report Text Language
LanguageName
PaymentTerms
CashDiscount1Days I_PurchaseOrderTP CashDiscount1Days Days 1 / In Percent
CashDiscount1Percent
CashDiscount2Days I_PurchaseOrderTP CashDiscount2Days Days 2 / In Percent
CashDiscount2Percent
NetPaymentDays I_PurchaseOrderTP NetPaymentDays Net Pmt Terms Period
IncotermsVersion I_PurchaseOrderTP IncotermsVersion Inco. Version
IncotermsVersionName Incoterms Version Description
IncotermsClassification I_PurchaseOrderTP IncotermsClassification Incoterms
IncotermsClassificationName
IncotermsLocation1Identifier I_PurchaseOrderTP IncotermsLocation1Identifier Location
IncotermsSupChnLoc1AddlUUID I_PurchaseOrderTP IncotermsSupChnLoc1AddlUUID Location UUID
IncotermsLocation1 I_PurchaseOrderTP IncotermsLocation1 Inco. Location1
IncotermsDvtgLocIdentifier I_PurchaseOrderTP IncotermsDvtgLocIdentifier Location
IncotermsSupChnDvtgLocAddlUUID I_PurchaseOrderTP IncotermsSupChnDvtgLocAddlUUID Location UUID
IncotermsDvtgLocDescription I_PurchaseOrderTP IncotermsDvtgLocDescription Loc. Description
IncotermsLocation2Identifier I_PurchaseOrderTP IncotermsLocation2Identifier Location
IncotermsSupChnLoc2AddlUUID I_PurchaseOrderTP IncotermsSupChnLoc2AddlUUID Location UUID
IncotermsLocation2 I_PurchaseOrderTP IncotermsLocation2 Inco. Location2
InvoicingParty I_PurchaseOrderTP InvoicingParty Supplier
InvoicingPartyName _Supplier SupplierName Invoicing Party Description
ExchangeRateForEdit I_PurchaseOrderTP ExchangeRateForEdit Exchange Rate
ExchangeRateIsFixed I_PurchaseOrderTP ExchangeRateIsFixed Fixed Exchange Rate
IsIntrastatReportingRelevant I_PurchaseOrderTP IsIntrastatReportingRelevant Intrastat rel.
IsIntrastatReportingExcluded I_PurchaseOrderTP IsIntrastatReportingExcluded exclude Intra
IsEndOfPurposeBlocked IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
PurchaseOrderHasCommitmentItem I_PurchaseOrderTP PurchaseOrderHasCommitmentItem Purchase Order has Commitment Items
MsgOnGoodsReceiptIsRequested MsgOnGoodsReceiptIsRequested GR Message
SupplierRespSalesPersonName
SupplierPhoneNumber I_PurchaseOrderTP SupplierPhoneNumber Telephone
CorrespncExternalReference I_PurchaseOrderTP CorrespncExternalReference Your Reference
CorrespncInternalReference I_PurchaseOrderTP CorrespncInternalReference Our Reference
PurgTotProdCmplncSuplrStsName
PurgAggrgdProdCmplncSuplrSts PurgAggrgdProdCmplncSuplrSts Supplier Check Sts
UICT_PurgAggrgdCmplncSuplrSts _POProdComplianceCriticality UICT_PurgAggrgdCmplncSuplrSts
PurgTotMarketabilityStsName _PurgTotProdMarketabilityStsT PurgTotMarketabilityStsName
PurgAggrgdProdMarketabilitySts PurgAggrgdProdMarketabilitySts Prod. Marktablty Sts
UICT_PurgAggrgMarketabilitySts _POProdComplianceCriticality UICT_PurgAggrgMarketabilitySts
PurgAggrgdSftyDataSheetStsName _PurgAggrgdSftyDataSheetStsT PurgAggrgdSftyDataSheetStsName
PurgAggrgdSftyDataSheetStatus PurgAggrgdSftyDataSheetStatus Sfty Data Sheet Sts
UICT_PurgAggrgSftyDataSheetSts _POProdComplianceCriticality UICT_PurgAggrgSftyDataSheetSts
PurgTotDangerousGoodsStsName _PurgTotDangerousGoodsStsT PurgTotDangerousGoodsStsName
PurgProdCmplncTotDngrsGoodsSts PurgProdCmplncTotDngrsGoodsSts Dangerous Goods Sts
UICT_PurgCmplncTotDngrsGdsSts _POProdComplianceCriticality UICT_PurgCmplncTotDngrsGdsSts
ProductComplianceIsActive
BusFtreProdCmplncSuplrIsActive
BusFtreProdMarketabilityIsActv
BusFtreDngrsGoodsIsActive
BusFtreSftyDataShtMgmtIsActive
PurchaseOrderSubtype
PurchasingDocumentOrigin I_PurchaseOrderTP PurchasingDocumentOrigin Status
PurchasingDocumentDeletionCode I_PurchaseOrderTP PurchasingDocumentDeletionCode Del. Indicator
ManualSupplierAddressID I_PurchaseOrderTP ManualSupplierAddressID Address Number
SupplierAddressID I_PurchaseOrderTP SupplierAddressID Address Number
SupplyingSupplier I_PurchaseOrderTP SupplyingSupplier Goods Supplier
SupplyingPlant I_PurchaseOrderTP SupplyingPlant Supplying Plant
PurchasingDocumentCondition I_PurchaseOrderTP PurchasingDocumentCondition Doc. Condition
PricingProcedure I_PurchaseOrderTP PricingProcedure Procedure
ValidityStartDate I_PurchaseOrderTP ValidityStartDate Validity Start Date
ValidityEndDate I_PurchaseOrderTP ValidityEndDate ValidTo
IncotermsTransferLocation I_PurchaseOrderTP IncotermsTransferLocation Incoterms 2
LastChangeDateTime
PurchasingHasItemHierarchy I_PurchaseOrderTP PurchasingHasItemHierarchy Has Item Hierarchy
SrvcProcmtItmHierIsEnbld
PurchaseOrderPrtnFuncIsEnbld
PurOrderOutputPreviewIsEnabled
_PurchaseOrderItemHierarchyTP _PurchaseOrderItemHierarchyTP
_PurOrdSupplierAddressTP _PurOrdSupplierAddressTP
_PurchaseOrderNote _PurchaseOrderNote
_PurchaseOrderPartnerTP _PurchaseOrderPartnerTP
_PurOrdRefDocPO _PurOrdRefDocPO
_PurOrdRefDocIR _PurOrdRefDocIR
_PurOrdRefDocPC _PurOrdRefDocPC
_UserContactCard _UserContactCard
_DocumentCurrency I_PurchaseOrderTP _DocumentCurrency
_IncotermsClassification I_PurchaseOrderTP _IncotermsClassification
_IncotermsVersion I_PurchaseOrderTP _IncotermsVersion
_Language I_PurchaseOrderTP _Language
_PurchaseOrderType I_PurchaseOrderTP _PurchaseOrderType
_PurchasingDocumentStatus _PurchasingDocumentStatus
_SupplierValueHelp _SupplierValueHelp
_CompanyCodeValueHelp _CompanyCodeValueHelp
_PurgOrgValueHelp _PurgOrgValueHelp
_PurchasingGrpValueHelp _PurchasingGrpValueHelp
_CreatedByValueHelp _CreatedByValueHelp
_PurchaseOrderFeature _PurchaseOrderFeature
_PurchaseOrderCommitment _PurchaseOrderCommitment
_PurchaseOrderRelevance _PurchaseOrderRelevance
_InvoicingParty _InvoicingParty
SupplierName _Supplier SupplierName Supplier Name
_POProdComplianceCriticality _POProdComplianceCriticality

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view C_PurchaseOrderTP.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.

CREATE VIEW C_PurchaseOrderTP AS
SELECT
  PurchaseOrderTP.PurchaseOrder AS PurchaseOrder,
  PurchaseOrderTP.PurchaseOrderType AS PurchaseOrderType,
  PurchaseOrderTP.PurchaseOrderTypeName AS PurchaseOrderTypeName,
  PurchaseOrderTP.PurchaseOrderType AS PurchasingDocumentType,
  PurchaseOrderTP.CompanyCode AS CompanyCode,
  cast (PurchaseOrderTP.PurchasingOrganization as ekorg_ll preserving type ) AS PurchasingOrganization,
  PurchaseOrderTP.PurchasingGroup AS PurchasingGroup,
  PurchaseOrderTP.Supplier AS Supplier,
  PurchaseOrderTP.DocumentCurrency AS DocumentCurrency,
  PurchaseOrderTP._DocumentCurrency._Text[1:Language = $session.system_language].CurrencyName AS DocumentCurrencyName,
  _OverduePurchaseOrder.NumberOfOverduePurOrdItm AS NumberOfOverduePurOrdItm_H,
  cast( 0 as abap.int4 ) AS NumberOfOverduePurOrdItm,
  cast ( '' as abap.char(2)) AS PurchaseOrderStatus,
  cast ( '' as mmpur_ord_status ) AS PurchaseOrderStatusName,
  _PurchaseOrderStatus.PurchasingDocumentStatus AS PurchaseOrderStatus_H,
  _PurchaseOrderStatus.PurchasingDocumentStatus AS PurchasingDocumentStatus,
  PurchaseOrderTP.ReleaseIsNotCompleted AS ReleaseIsNotCompleted,
  PurchaseOrderTP.PurchasingProcessingStatus AS PurchasingProcessingStatus,
  _PurOrdProcessingStatusTxt.PurchasingProcessingStatusName AS PurchasingProcessingStatusName,
  PurchaseOrderTP.PurchasingCompletenessStatus AS PurchasingCompletenessStatus,
  cast( 0 as mm_pur_order_tot_net_amount ) AS PurchaseOrderNetAmount,
  cast( 0 as vdm_weightedrelevance ) AS WeightedRelevance,
  _OverduePurchaseOrder.ScheduleLineDeliveryDate AS ScheduleLineDeliveryDate,
  cast( '' as abap.sstring( 260 ) ) AS ManufacturerMaterial,
  cast( '' as abap.sstring( 260 ) ) AS Plant,
  cast ('' as abap.char( 1 ) ) AS PurOrdOutputCtrlType,
  cast ('' as abap.char( 1 ) ) AS PurchaseOrderOutputStatus,
  cast ('' as abap.char( 60 ) ) AS PurchaseOrderOutputStatusName,
  cast ('00000000000000' as timestamp) AS PurchaseOrderOutputDateTime,
  cast( '' as abap.char( 02 ) ) AS ApprovalStatus,
  cast( '' as mm_approval_status ) AS ApprovalStatusName,
  cast( '' as mm_approver_name ) AS ApproverName,
  cast( 0 as mmpur_approver_count ) AS PurchaseOrderNumberOfApprovers,
  cast( '' as mm_approver_comment ) AS POApproverCommentText,
  PurchaseOrderTP.POReworkCommentText AS POReworkCommentText,
  _PurchaseOrderType.PurgHasFlxblWorkflowApproval AS PurgHasFlxblWorkflowApproval,
  PurchaseOrderTP.CreatedByUserFullName AS CreatedByUserFullName,
  PurchaseOrderTP.CreationDate AS CreationDate,
  PurchaseOrderTP.PurchaseOrderDate AS PurchaseOrderDate,
  PurchaseOrderTP.Language AS Language,
  PurchaseOrderTP._Language._Text[1:Language = $session.system_language].LanguageName AS LanguageName,
  PurchaseOrderTP.CashDiscount1Days AS CashDiscount1Days,
  cast (PurchaseOrderTP.CashDiscount1Percent as dzbd1p_ll preserving type) AS CashDiscount1Percent,
  PurchaseOrderTP.CashDiscount2Days AS CashDiscount2Days,
  cast(PurchaseOrderTP.CashDiscount2Percent as dzbd2p_ll preserving type) AS CashDiscount2Percent,
  PurchaseOrderTP.NetPaymentDays AS NetPaymentDays,
  PurchaseOrderTP.IncotermsVersion AS IncotermsVersion,
  PurchaseOrderTP._IncotermsVersion._Text[1:Language = $session.system_language].IncotermsVersionName AS IncotermsVersionName,
  PurchaseOrderTP.IncotermsClassification AS IncotermsClassification,
  PurchaseOrderTP._IncotermsClassification._Text[1:Language = $session.system_language].IncotermsClassificationName AS IncotermsClassificationName,
  PurchaseOrderTP.IncotermsLocation1Identifier AS IncotermsLocation1Identifier,
  PurchaseOrderTP.IncotermsSupChnLoc1AddlUUID AS IncotermsSupChnLoc1AddlUUID,
  PurchaseOrderTP.IncotermsLocation1 AS IncotermsLocation1,
  PurchaseOrderTP.IncotermsDvtgLocIdentifier AS IncotermsDvtgLocIdentifier,
  PurchaseOrderTP.IncotermsSupChnDvtgLocAddlUUID AS IncotermsSupChnDvtgLocAddlUUID,
  PurchaseOrderTP.IncotermsDvtgLocDescription AS IncotermsDvtgLocDescription,
  PurchaseOrderTP.IncotermsLocation2Identifier AS IncotermsLocation2Identifier,
  PurchaseOrderTP.IncotermsSupChnLoc2AddlUUID AS IncotermsSupChnLoc2AddlUUID,
  PurchaseOrderTP.IncotermsLocation2 AS IncotermsLocation2,
  PurchaseOrderTP.InvoicingParty AS InvoicingParty,
  _Supplier.SupplierName AS InvoicingPartyName,
  PurchaseOrderTP.ExchangeRateForEdit AS ExchangeRateForEdit,
  PurchaseOrderTP.ExchangeRateIsFixed AS ExchangeRateIsFixed,
  PurchaseOrderTP.IsIntrastatReportingRelevant AS IsIntrastatReportingRelevant,
  PurchaseOrderTP.IsIntrastatReportingExcluded AS IsIntrastatReportingExcluded,
  IsEndOfPurposeBlocked,
  PurchaseOrderTP.PurchaseOrderHasCommitmentItem AS PurchaseOrderHasCommitmentItem,
  MsgOnGoodsReceiptIsRequested,
  PurchaseOrderTP.SupplierPhoneNumber AS SupplierPhoneNumber,
  PurchaseOrderTP.CorrespncExternalReference AS CorrespncExternalReference,
  PurchaseOrderTP.CorrespncInternalReference AS CorrespncInternalReference,
  PurgAggrgdProdCmplncSuplrSts,
  _POProdComplianceCriticality.UICT_PurgAggrgdCmplncSuplrSts AS UICT_PurgAggrgdCmplncSuplrSts,
  _PurgTotProdMarketabilityStsT.PurgTotMarketabilityStsName AS PurgTotMarketabilityStsName,
  PurgAggrgdProdMarketabilitySts,
  _POProdComplianceCriticality.UICT_PurgAggrgMarketabilitySts AS UICT_PurgAggrgMarketabilitySts,
  _PurgAggrgdSftyDataSheetStsT.PurgAggrgdSftyDataSheetStsName AS PurgAggrgdSftyDataSheetStsName,
  PurgAggrgdSftyDataSheetStatus,
  _POProdComplianceCriticality.UICT_PurgAggrgSftyDataSheetSts AS UICT_PurgAggrgSftyDataSheetSts,
  _PurgTotDangerousGoodsStsT.PurgTotDangerousGoodsStsName AS PurgTotDangerousGoodsStsName,
  PurgProdCmplncTotDngrsGoodsSts,
  _POProdComplianceCriticality.UICT_PurgCmplncTotDngrsGdsSts AS UICT_PurgCmplncTotDngrsGdsSts,
  cast ('' as ehfnd_boolean) AS ProductComplianceIsActive,
  cast ('' as ehfnd_bf_pcs_is_active) AS BusFtreProdCmplncSuplrIsActive,
  cast ('' as ehfnd_bf_pma_is_active) AS BusFtreProdMarketabilityIsActv,
  cast ('' as ehfnd_bf_dg_is_active) AS BusFtreDngrsGoodsIsActive,
  cast ('' as ehfnd_bf_sds_is_active) AS BusFtreSftyDataShtMgmtIsActive,
  PurchaseOrderTP.PurchasingDocumentOrigin AS PurchasingDocumentOrigin,
  PurchaseOrderTP.PurchasingDocumentDeletionCode AS PurchasingDocumentDeletionCode,
  PurchaseOrderTP.ManualSupplierAddressID AS ManualSupplierAddressID,
  PurchaseOrderTP.SupplierAddressID AS SupplierAddressID,
  PurchaseOrderTP.SupplyingSupplier AS SupplyingSupplier,
  PurchaseOrderTP.SupplyingPlant AS SupplyingPlant,
  PurchaseOrderTP.PurchasingDocumentCondition AS PurchasingDocumentCondition,
  PurchaseOrderTP.PricingProcedure AS PricingProcedure,
  PurchaseOrderTP.ValidityStartDate AS ValidityStartDate,
  PurchaseOrderTP.ValidityEndDate AS ValidityEndDate,
  PurchaseOrderTP.IncotermsTransferLocation AS IncotermsTransferLocation,
  PurchaseOrderTP.PurchasingHasItemHierarchy AS PurchasingHasItemHierarchy,
  cast ('' as boolean) AS SrvcProcmtItmHierIsEnbld,
  cast ('' as boolean) AS PurchaseOrderPrtnFuncIsEnbld,
  cast ('' as boolean) AS PurOrderOutputPreviewIsEnabled,
  PurchaseOrderTP._DocumentCurrency AS _DocumentCurrency,
  PurchaseOrderTP._IncotermsClassification AS _IncotermsClassification,
  PurchaseOrderTP._IncotermsVersion AS _IncotermsVersion,
  PurchaseOrderTP._Language AS _Language,
  PurchaseOrderTP._PurchaseOrderType AS _PurchaseOrderType,
  _Supplier.SupplierName AS SupplierName
FROM I_PurchaseOrderTP AS PurchaseOrderTP
LEFT OUTER JOIN C_PurchaseOrderItemTP AS _PurchaseOrderItemTP ON _PurchaseOrderItemTP.PurchaseOrder = PurchaseOrder  -- association [1..*]
LEFT OUTER JOIN C_PurchaseOrderItemHierarchyTP AS _PurchaseOrderItemHierarchyTP ON _PurchaseOrderItemHierarchyTP.PurchaseOrder = PurchaseOrder  -- association [1..*]
LEFT OUTER JOIN C_PurOrdSupplierAddressTP AS _PurOrdSupplierAddressTP ON _PurOrdSupplierAddressTP.PurchaseOrder = PurchaseOrder  -- association [1..1]
LEFT OUTER JOIN C_PurOrdRefDocPO AS _PurOrdRefDocPO ON _PurOrdRefDocPO.Supplier = Supplier  -- association [0..*]
LEFT OUTER JOIN C_PurOrdRefDocIR AS _PurOrdRefDocIR ON _PurOrdRefDocIR.Supplier = Supplier  -- association [0..*]
LEFT OUTER JOIN C_PurOrdRefDocPC AS _PurOrdRefDocPC ON _PurOrdRefDocPC.Supplier = Supplier  -- association [0..*]
LEFT OUTER JOIN I_UserContactCard AS _UserContactCard ON _UserContactCard.ContactCardType = 'User' AND _UserContactCard.ContactCardID = CreatedByUser AND _UserContactCard.ContactCardRole = 'Creator'  -- association [0..1]
LEFT OUTER JOIN C_OverduePurchaseOrder AS _OverduePurchaseOrder ON PurchaseOrder = _OverduePurchaseOrder.PurchaseOrder  -- association [0..1]
LEFT OUTER JOIN I_PurchaseOrderRelevance AS _PurchaseOrderRelevance ON PurchaseOrder = _PurchaseOrderRelevance.PurchaseOrder  -- association [0..1]
LEFT OUTER JOIN I_PurchaseOrderStatus AS _PurchaseOrderStatus ON PurchaseOrder = _PurchaseOrderStatus.PurchaseOrder  -- association [0..1]
LEFT OUTER JOIN I_PurchasingDocumentStatus AS _PurchasingDocumentStatus ON PurchaseOrderStatus_H = _PurchasingDocumentStatus.PurchasingDocumentStatus  -- association [0..1]
LEFT OUTER JOIN C_PurchaseOrderFeature AS _PurchaseOrderFeature ON PurchaseOrder = _PurchaseOrderFeature.PurchaseOrder  -- association [1..*]
LEFT OUTER JOIN C_PurchaseOrderCommitment AS _PurchaseOrderCommitment ON PurchaseOrder = _PurchaseOrderCommitment.PurchaseOrder  -- association [0..*]
LEFT OUTER JOIN I_PaymentTerms AS _PaymentTerms ON _PaymentTerms.PaymentTerms = PaymentTerms  -- association [0..1]
LEFT OUTER JOIN C_PurchaseOrderNoteTP AS _PurchaseOrderNote ON _PurchaseOrderNote.PurchaseOrder = PurchaseOrder  -- association [0..*]
LEFT OUTER JOIN C_PurchaseOrderPartnerTP AS _PurchaseOrderPartnerTP ON _PurchaseOrderPartnerTP.PurchaseOrder = PurchaseOrder  -- association [0..*]
LEFT OUTER JOIN C_MM_CompanyCodeValueHelp AS _CompanyCodeValueHelp ON _CompanyCodeValueHelp.CompanyCode = CompanyCode  -- association [0..1]
LEFT OUTER JOIN C_SupplierPurchOrgVH AS _SupplierValueHelp ON _SupplierValueHelp.Supplier = Supplier AND _SupplierValueHelp.PurchasingOrganization = PurchasingOrganization  -- association [0..1]
LEFT OUTER JOIN C_PurchasingOrgValueHelp AS _PurgOrgValueHelp ON _PurgOrgValueHelp.PurchasingOrganization = PurchasingOrganization AND _PurgOrgValueHelp.CompanyCode = CompanyCode  -- association [0..1]
LEFT OUTER JOIN C_PurchasingGroupValueHelp AS _PurchasingGrpValueHelp ON _PurchasingGrpValueHelp.PurchasingGroup = PurchasingGroup  -- association [0..1]
LEFT OUTER JOIN C_PurOrdCreatedByValHelp AS _CreatedByValueHelp ON _CreatedByValueHelp.UserID = CreatedByUser  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON _Supplier.Supplier = Supplier  -- association [0..1]
LEFT OUTER JOIN I_PurgTotProdCmplncSuplrStsT AS _PurgTotProdCmplncSuplrStsT ON PurgAggrgdProdCmplncSuplrSts = _PurgTotProdCmplncSuplrStsT.PurgAggrgdProdCmplncSuplrSts AND _PurgTotProdCmplncSuplrStsT.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PurgTotProdMarketabilityStsT AS _PurgTotProdMarketabilityStsT ON PurgAggrgdProdMarketabilitySts = _PurgTotProdMarketabilityStsT.PurgAggrgdProdMarketabilitySts AND _PurgTotProdMarketabilityStsT.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PurgAggrgdSftyDataSheetStsT AS _PurgAggrgdSftyDataSheetStsT ON PurgAggrgdSftyDataSheetStatus = _PurgAggrgdSftyDataSheetStsT.PurgAggrgdSftyDataSheetStatus AND _PurgAggrgdSftyDataSheetStsT.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PurgTotDangerousGoodsStsT AS _PurgTotDangerousGoodsStsT ON PurgProdCmplncTotDngrsGoodsSts = _PurgTotDangerousGoodsStsT.PurgProdCmplncTotDngrsGoodsSts AND _PurgTotDangerousGoodsStsT.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN C_POProdComplianceCriticality AS _POProdComplianceCriticality ON PurchaseOrder = _POProdComplianceCriticality.PurchaseOrder  -- association [0..1]
LEFT OUTER JOIN C_PurchaseOrderApprover AS _POApprover ON PurchaseOrder = _POApprover.PurchaseOrder  -- association [0..*]
LEFT OUTER JOIN I_PurgProcessingStatusText AS _PurOrdProcessingStatusTxt ON _PurOrdProcessingStatusTxt.PurchasingProcessingStatus = PurchasingProcessingStatus AND _PurOrdProcessingStatusTxt.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN C_PurchaseOrderStatus AS _POStatus ON PurchaseOrder = _POStatus.PurchaseOrder  -- association [1..1]
;