FIN_SUBVAL_ACCTGSRVCDOC

DDL: FIN_SUBVAL_ACCTGSRVCDOC SQL: FISACCSRVDOC Type: view

FIN Subst. acctg. srv. doc.

FIN_SUBVAL_ACCTGSRVCDOC is a CDS View that provides data about "FIN Subst. acctg. srv. doc." in SAP S/4HANA. It reads from 1 data source (I_AcctgServiceDocumentItem) and exposes 34 fields. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_AcctgServiceDocumentItem asdi from

Associations (4)

CardinalityTargetAliasCondition
[1] I_Product _Product $projection.product = _Product.Product
[1] I_ProductPlantBasic _ProductPlant $projection.product = _ProductPlant.Product and $projection.plant = _ProductPlant.Plant
[1] E_ServiceDocument _SrvcDocument asdi.ServiceObjectType = _SrvcDocument.ServiceCategory and asdi.ServiceDocument = _SrvcDocument.ServiceOrder
[1] E_ServiceDocumentItem _SrvcDocumentItem asdi.ServiceObjectType = _SrvcDocumentItem.ServiceCategory and asdi.ServiceDocument = _SrvcDocumentItem.ServiceOrderItem and asdi.ServiceDocumentItem = _SrvcDocumentItem.ServiceLineExternalID

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName FISACCSRVDOC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
EndUserText.label FIN Subst. acctg. srv. doc. view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.buffering.status #NOT_ALLOWED view

Fields (34)

KeyFieldSource TableSource FieldDescription
ServiceDocument I_AcctgServiceDocumentItem ServiceDocument Transaction ID
ServiceDocItemCategory
ServiceDocumentType I_AcctgServiceDocumentItem ServiceDocumentType Transaction Type
DistributionChannel I_AcctgServiceDocumentItem DistributionChannel RefDistCh-Cust/Mat.
Division
Product
ProfitCenter I_AcctgServiceDocumentItem ProfitCenter Profit Center
Plant
SalesOrganization I_AcctgServiceDocumentItem SalesOrganization Sales Organization
FunctionalArea I_AcctgServiceDocumentItem FunctionalArea Sendr Fctl Area
CostingSheet I_AcctgServiceDocumentItem CostingSheet Costing Sheet
CompanyCode I_AcctgServiceDocumentItem CompanyCode Receiver Company Code
ControllingSettlementProfile
BusinessArea
CostingVariant
RevenueRecognitionIsActive
ResultAnalysisInternalID
SoldToParty
BillToParty
ShipToParty
Equipment
SalesOffice
SalesGroup
RespyMgmtTeamID
ServiceTeam
FunctionalLocation
CustomerGroup
BillableControl
ServiceObjectType I_AcctgServiceDocumentItem ServiceObjectType Object Type
ServiceDocumentItem I_AcctgServiceDocumentItem ServiceDocumentItem Service Document
_Product _Product
_ProductPlant _ProductPlant
_SrvcDocument _SrvcDocument
_SrvcDocumentItem _SrvcDocumentItem

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 FIN_SUBVAL_ACCTGSRVCDOC.
-- 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.
-- SQL view name: FISACCSRVDOC

CREATE VIEW FIN_SUBVAL_ACCTGSRVCDOC AS
SELECT
  asdi.ServiceDocument AS ServiceDocument,
  asdi._ServiceDocumentItem.ServiceDocItemCategory AS ServiceDocItemCategory,
  asdi.ServiceDocumentType AS ServiceDocumentType,
  asdi.DistributionChannel AS DistributionChannel,
  asdi._ServiceDocumentItem._Division.Division AS Division,
  asdi._ServiceDocumentItem.Product AS Product,
  asdi.ProfitCenter AS ProfitCenter,
  asdi._ServiceDocumentItem.Plant AS Plant,
  asdi.SalesOrganization AS SalesOrganization,
  asdi.FunctionalArea AS FunctionalArea,
  asdi.CostingSheet AS CostingSheet,
  asdi.CompanyCode AS CompanyCode,
  cast('' as aprof) AS ControllingSettlementProfile,
  cast('' as gsber) AS BusinessArea,
  cast('' as ck_klvar) AS CostingVariant,
  cast('' as fco_revrec_active) AS RevenueRecognitionIsActive,
  cast('' as fins_trr_recgnkey ) AS ResultAnalysisInternalID,
  cast('' as kunag ) AS SoldToParty,
  cast('' as kunre ) AS BillToParty,
  cast('' as kunwe ) AS ShipToParty,
  cast('' as equnr ) AS Equipment,
  cast('' as vkbur ) AS SalesOffice,
  cast('' as vkgrp) AS SalesGroup,
  cast('00000000' as hrobjid) AS RespyMgmtTeamID,
  cast('' as bu_partner) AS ServiceTeam,
  cast('' as tplnr) AS FunctionalLocation,
  cast('' as kdgrp) AS CustomerGroup,
  cast('' as crmt_ac_indicator) AS BillableControl,
  asdi.ServiceObjectType AS ServiceObjectType,
  asdi.ServiceDocumentItem AS ServiceDocumentItem
FROM I_AcctgServiceDocumentItem AS asdi
LEFT OUTER JOIN I_Product AS _Product ON product = _Product.Product  -- association [1]
LEFT OUTER JOIN I_ProductPlantBasic AS _ProductPlant ON product = _ProductPlant.Product AND plant = _ProductPlant.Plant  -- association [1]
LEFT OUTER JOIN E_ServiceDocument AS _SrvcDocument ON asdi.ServiceObjectType = _SrvcDocument.ServiceCategory AND asdi.ServiceDocument = _SrvcDocument.ServiceOrder  -- association [1]
LEFT OUTER JOIN E_ServiceDocumentItem AS _SrvcDocumentItem ON asdi.ServiceObjectType = _SrvcDocumentItem.ServiceCategory AND asdi.ServiceDocument = _SrvcDocumentItem.ServiceOrderItem AND asdi.ServiceDocumentItem = _SrvcDocumentItem.ServiceLineExternalID  -- association [1]
;