I_JVANonOperatorInvoiceFDP

DDL: I_JVANONOPERATORINVOICEFDP SQL: IJVANONOPTRIVFDP Type: view COMPOSITE

Non Operator Invoice Data

I_JVANonOperatorInvoiceFDP is a Composite CDS View that provides data about "Non Operator Invoice Data" in SAP S/4HANA. It reads from 3 data sources (bseg, I_GLAccountLineItem, I_JVALedger) and exposes 56 fields with key fields SourceLedger, AccountingDocument, CompanyCode, FiscalYear, LedgerGLLineItem. It has 8 associations to related views.

Data Sources (3)

SourceAliasJoin Type
bseg _AccountingDocSeg inner
I_GLAccountLineItem I_GLAccountLineItem from
I_JVALedger ld inner

Associations (8)

CardinalityTargetAliasCondition
[1..1] I_JntVntrCoCodeParam _JV_Company $projection.CompanyCode = _JV_Company.CompanyCode
[1..1] I_AccountingDocument _AccountingDocHdr $projection.CompanyCode = _AccountingDocHdr.CompanyCode and $projection.AccountingDocument = _AccountingDocHdr.AccountingDocument and $projection.FiscalYear = _AccountingDocHdr.FiscalYear
[1..1] I_JointVentureDetails _Venture $projection.JointVenture = _Venture.JointVenture and $projection.CompanyCode = _Venture.CompanyCode and $projection.JointVentureEquityGroup = _Venture.JntOpgAgrmtEquityGrp
[1..1] I_JointVentureDesc _Venture_Desc $projection.JointVenture = _Venture_Desc.JointVenture and $projection.CompanyCode = _Venture_Desc.CompanyCode and _Venture_Desc.Language = $session.system_language
[1..1] I_JntVntrBusinessPartner _Partner $projection.CompanyCode = _Partner.CompanyCode and $projection.JointVenturePartner = _Partner.JointVenturePartner
[1..1] I_Customer _Partner_Data $projection.JointVenturePartner = _Partner_Data.Customer
[1..1] I_JntVntrEquityGrp _VentureEquity_Data $projection.JointVenture = _VentureEquity_Data.JointVenture and $projection.CompanyCode = _VentureEquity_Data.CompanyCode and $projection.JointVentureEquityGroup = _VentureEquity_Data.JntOpgAgrmtEquityGrp
[1..1] I_JntVntrEquityGrpText _Equity_Desc $projection.CompanyCode = _Equity_Desc.CompanyCode and $projection.JointVenture = _Equity_Desc.JointVenture and $projection.JointVentureEquityGroup = _Equity_Desc.JntOpgAgrmtEquityGrp and _Equity_Desc.Language = $session.system_language

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IJVANONOPTRIVFDP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Non Operator Invoice Data view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (56)

KeyFieldSource TableSource FieldDescription
KEY SourceLedger I_GLAccountLineItem SourceLedger
KEY AccountingDocument I_GLAccountLineItem AccountingDocument
KEY CompanyCode I_GLAccountLineItem CompanyCode
KEY FiscalYear I_GLAccountLineItem FiscalYear
KEY LedgerGLLineItem I_GLAccountLineItem LedgerGLLineItem
Ledger I_GLAccountLineItem Ledger
JointVenture I_GLAccountLineItem JointVenture
JointVenturePartner I_GLAccountLineItem JointVenturePartner
JointVentureEquityGroup I_GLAccountLineItem JointVentureEquityGroup
JointVentureEquityType I_GLAccountLineItem JointVentureEquityType
JointVentureAccountingActivity I_GLAccountLineItem JointVentureAccountingActivity
PostingPeriod I_GLAccountLineItem FiscalPeriod
ReferenceDocumentItem I_GLAccountLineItem ReferenceDocumentItem
TransactionSubitem I_GLAccountLineItem TransactionSubitem
BalanceTransactionCurrency I_GLAccountLineItem BalanceTransactionCurrency
CompanyCodeCurrency I_GLAccountLineItem CompanyCodeCurrency
GlobalCurrency I_GLAccountLineItem GlobalCurrency
CostCenter I_GLAccountLineItem CostCenter
AmountInBalanceTransacCrcy I_GLAccountLineItem AmountInBalanceTransacCrcy
AmountInCompanyCodeCurrency I_GLAccountLineItem AmountInCompanyCodeCurrency
AmountInTransactionCurrency I_GLAccountLineItem AmountInTransactionCurrency
AmountInGlobalCurrency I_GLAccountLineItem AmountInGlobalCurrency
ItemIsSplit I_GLAccountLineItem ItemIsSplit
DocumentItemText I_GLAccountLineItem DocumentItemText
Supplier I_GLAccountLineItem Supplier
InvtrySpclStockWBSElmntIntID I_GLAccountLineItem InvtrySpclStockWBSElmntIntID
InventorySpclStockWBSElement I_GLAccountLineItem InventorySpclStockWBSElement
MasterFixedAsset I_GLAccountLineItem MasterFixedAsset
AssetClass I_GLAccountLineItem AssetClass
WBSElementInternalID I_GLAccountLineItem WBSElementInternalID
WBSElement I_GLAccountLineItem WBSElement
ProjectInternalID I_GLAccountLineItem ProjectInternalID
Project I_GLAccountLineItem Project
ControllingDocumentItem I_GLAccountLineItem ControllingDocumentItem
LocalCrcyTotal bseg dmbtr
FundingCrcyTotal bseg wrbtr
JntVntrBillgFormat _Venture JntVntrBillgFormat
JntVntrNonBillgFormat _Venture JntVntrNonBillgFormat
JointVentureName _Venture_Desc JointVentureName
JntVntrPartnerBillgFormat _Partner JntVntrBillgFormat
JntVntrHardCopyBillgIsSupp _Partner JntVntrHardCopyBillgIsSupp
Country
JntVntrPartnerFaxNumber _Partner_Data FaxNumber
JntVntrPartnerCountry _Partner_Data Country
JntVntrPartnerAddressID _Partner_Data AddressID
Language _Partner_Data Language
EmailAddress
JointVentureOperatorName _Partner_Data OrganizationBPName1
JointVentureOperator _JV_Company Operator
Currency _AccountingDocHdr Currency
ExchangeRate _AccountingDocHdr ExchangeRate
LocalCurrency _AccountingDocHdr CompanyCodeCurrency
JntVntrNonOperatedShare _VentureEquity_Data JntVntrNonOperatedShare
JntVntrOperatedShare _VentureEquity_Data JntVntrOperatedShare
JointVentureEquityGroupName _Equity_Desc JntOpgAgrmtEquityGrpText
JointVenturePartnerName _Partner_Data CustomerName
@AbapCatalog.sqlViewName: 'IJVANONOPTRIVFDP'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Non Operator Invoice Data'
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType.serviceQuality: #D 
@ObjectModel.usageType.sizeCategory: #XXL 
@ObjectModel.usageType.dataClass: #MIXED
@AccessControl.personalData.blocking: #REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE

define view I_JVANonOperatorInvoiceFDP
as select from I_GLAccountLineItem
     inner join       I_JVALedger as ld           on ld.CompanyCode = I_GLAccountLineItem.CompanyCode
     inner join       bseg   as _AccountingDocSeg on I_GLAccountLineItem.CompanyCode         = _AccountingDocSeg.bukrs
                                                 and I_GLAccountLineItem.AccountingDocument  = _AccountingDocSeg.belnr
                                                 and I_GLAccountLineItem.FiscalYear          = _AccountingDocSeg.gjahr
  association [1..1] to I_JntVntrCoCodeParam     as _JV_Company         on  $projection.CompanyCode = _JV_Company.CompanyCode
  association [1..1] to I_AccountingDocument     as _AccountingDocHdr   on  $projection.CompanyCode         = _AccountingDocHdr.CompanyCode
                                                                        and $projection.AccountingDocument  = _AccountingDocHdr.AccountingDocument
                                                                        and $projection.FiscalYear          = _AccountingDocHdr.FiscalYear
  association [1..1] to I_JointVentureDetails    as _Venture            on  $projection.JointVenture        = _Venture.JointVenture
                                                                        and $projection.CompanyCode         = _Venture.CompanyCode  
                                                                        and $projection.JointVentureEquityGroup = _Venture.JntOpgAgrmtEquityGrp
  association [1..1] to I_JointVentureDesc       as _Venture_Desc       on  $projection.JointVenture        = _Venture_Desc.JointVenture
                                                                        and $projection.CompanyCode         = _Venture_Desc.CompanyCode
                                                                        and _Venture_Desc.Language          = $session.system_language
  association [1..1] to I_JntVntrBusinessPartner as _Partner            on  $projection.CompanyCode         = _Partner.CompanyCode
                                                                        and $projection.JointVenturePartner = _Partner.JointVenturePartner
  association [1..1] to I_Customer               as _Partner_Data       on  $projection.JointVenturePartner = _Partner_Data.Customer
  association [1..1] to I_JntVntrEquityGrp       as _VentureEquity_Data on  $projection.JointVenture            = _VentureEquity_Data.JointVenture
                                                                        and $projection.CompanyCode             = _VentureEquity_Data.CompanyCode
                                                                        and $projection.JointVentureEquityGroup = _VentureEquity_Data.JntOpgAgrmtEquityGrp
  association [1..1] to I_JntVntrEquityGrpText   as _Equity_Desc        on  $projection.CompanyCode             = _Equity_Desc.CompanyCode
                                                                        and $projection.JointVenture            = _Equity_Desc.JointVenture
                                                                        and $projection.JointVentureEquityGroup = _Equity_Desc.JntOpgAgrmtEquityGrp
                                                                        and _Equity_Desc.Language               = $session.system_language
{
      // Keys

  key I_GLAccountLineItem.SourceLedger                         ,
  key I_GLAccountLineItem.AccountingDocument                   ,
  key I_GLAccountLineItem.CompanyCode                          ,
  key I_GLAccountLineItem.FiscalYear                           ,
  key I_GLAccountLineItem.LedgerGLLineItem                     ,

      // Field Names

      I_GLAccountLineItem.Ledger                               ,
      I_GLAccountLineItem.JointVenture                         ,
      I_GLAccountLineItem.JointVenturePartner                  ,
      I_GLAccountLineItem.JointVentureEquityGroup              ,
      I_GLAccountLineItem.JointVentureEquityType               ,
      I_GLAccountLineItem.JointVentureAccountingActivity       ,
      I_GLAccountLineItem.FiscalPeriod                         as PostingPeriod,
      I_GLAccountLineItem.ReferenceDocumentItem                ,
      I_GLAccountLineItem.TransactionSubitem,
      @Semantics.currencyCode: true
      I_GLAccountLineItem.BalanceTransactionCurrency           ,
      @Semantics.currencyCode: true
      I_GLAccountLineItem.CompanyCodeCurrency                  ,
      @Semantics.currencyCode: true
      I_GLAccountLineItem.GlobalCurrency                       ,

      I_GLAccountLineItem.CostCenter                           ,

//      @Semantics: { amount : { currencyCode: 'BalanceTransactionCurrency'} }

      I_GLAccountLineItem.AmountInBalanceTransacCrcy           ,
//      @Semantics: { amount : { currencyCode: 'CurrencyKey'} }

      I_GLAccountLineItem.AmountInCompanyCodeCurrency          ,
//      @Semantics: { amount : { currencyCode: 'TransactionCurrency'} }      

      I_GLAccountLineItem.AmountInTransactionCurrency,      
//      @Semantics: { amount : { currencyCode: 'GlobalCurrency'} }

      I_GLAccountLineItem.AmountInGlobalCurrency               ,

      I_GLAccountLineItem.ItemIsSplit,
      I_GLAccountLineItem.DocumentItemText                     ,
//    I_GLAccountLineItem.InventorySpecialStockSupplier        ,

      I_GLAccountLineItem.Supplier                             ,
      I_GLAccountLineItem.InvtrySpclStockWBSElmntIntID         ,
      I_GLAccountLineItem.InventorySpclStockWBSElement         ,
      I_GLAccountLineItem.MasterFixedAsset                     ,
      I_GLAccountLineItem.AssetClass                           ,

      I_GLAccountLineItem.WBSElementInternalID                 ,
      I_GLAccountLineItem.WBSElement                           , 
      I_GLAccountLineItem.ProjectInternalID                    ,
      I_GLAccountLineItem.Project                              ,

      I_GLAccountLineItem.ControllingDocumentItem,

      _AccountingDocSeg.dmbtr             as LocalCrcyTotal,
      _AccountingDocSeg.wrbtr             as FundingCrcyTotal,
           
      _Venture.JntVntrBillgFormat,
      _Venture.JntVntrNonBillgFormat,

      _Venture_Desc.JointVentureName,

      _Partner.JntVntrBillgFormat                                      as JntVntrPartnerBillgFormat,
      _Partner.JntVntrHardCopyBillgIsSupp                              as JntVntrHardCopyBillgIsSupp,

      _Partner_Data._StandardAddress.Country                           as Country,
      _Partner_Data.FaxNumber                                          as JntVntrPartnerFaxNumber,
      _Partner_Data.Country                                            as JntVntrPartnerCountry,
      _Partner_Data.AddressID                                          as JntVntrPartnerAddressID,
      _Partner_Data.Language                                           as Language,
      _Partner_Data._StandardAddress._DefaultEmailAddress.EmailAddress as EmailAddress,
      _Partner_Data.OrganizationBPName1                                as JointVentureOperatorName,
      _JV_Company.Operator                                             as JointVentureOperator,
      _AccountingDocHdr.Currency                                       as Currency,
      _AccountingDocHdr.ExchangeRate                                   as ExchangeRate,
      _AccountingDocHdr.CompanyCodeCurrency                            as LocalCurrency,
      
      _VentureEquity_Data.JntVntrNonOperatedShare                      as JntVntrNonOperatedShare,
      _VentureEquity_Data.JntVntrOperatedShare                         as JntVntrOperatedShare,

      _Equity_Desc.JntOpgAgrmtEquityGrpText                            as JointVentureEquityGroupName,
      
      cast( concat( I_GLAccountLineItem.AccountingDocument, 
               concat( I_GLAccountLineItem.CompanyCode, I_GLAccountLineItem.FiscalYear ) ) 
                as apoc_appl_object_id ) as OutputControlApplicationObject,
      _Partner_Data.CustomerName         as JointVenturePartnerName
}
where I_GLAccountLineItem.SourceLedger = ld.Ledger
  and I_GLAccountLineItem.Ledger = ld.Ledger 
  and _AccountingDocSeg.xbilk = 'X'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ACCOUNTINGDOCUMENT",
"I_ADDRESS",
"I_ADDRESSEMAILADDRESS",
"I_CUSTOMER",
"I_GLACCOUNTLINEITEM",
"I_JNTVNTRBUSINESSPARTNER",
"I_JNTVNTRCOCODEPARAM",
"I_JNTVNTREQUITYGRP",
"I_JNTVNTREQUITYGRPTEXT",
"I_JOINTVENTUREDESC",
"I_JOINTVENTUREDETAILS",
"I_JVALEDGER",
"BSEG"
],
"ASSOCIATED":
[
"I_ACCOUNTINGDOCUMENT",
"I_CUSTOMER",
"I_JNTVNTRBUSINESSPARTNER",
"I_JNTVNTRCOCODEPARAM",
"I_JNTVNTREQUITYGRP",
"I_JNTVNTREQUITYGRPTEXT",
"I_JOINTVENTUREDESC",
"I_JOINTVENTUREDETAILS"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/