FISTRPGSTR3BITEM

DDL: FISTRPGSTR3BITEM SQL: FISRGSTR3BITM Type: view

FISTRPGSTR3BITEM is a CDS View in SAP S/4HANA. It reads from 12 data sources and exposes 101 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxItem, TaxCode.

Data Sources (12)

SourceAliasJoin Type
bseg _bseg left_outer
I_BusinessPartnerCustomer _BUSINESSPARTNERCUSTOMER left_outer
j_1iexcdefn _CodeName left_outer
I_BusPartAddrDepdntTaxNmbr _DFKKBPTAXNUM_ADR left_outer
FIACCDOCINHSN _hbseg left_outer
j_1ig_isd_distr _ISD left_outer
j_1ig_gst_jv _JV left_outer
knvi _knvi left_outer
lfa1 _lfa1 left_outer
bseg _mbseg left_outer
j_1istatecdm _StateCode left_outer
I_CustSlsAreaAddrDepdntTaxInfo knvi_addr left_outer

Parameters (3)

NameTypeDefault
P_StatryRptgEntity srf_reporting_entity
P_StatryRptCategory srf_rep_cat_id
P_StatryRptRunID srf_report_run_id

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName FISRGSTR3BITM view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.preserveKey true view

Fields (101)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY TaxItem TaxItem Tax Item
KEY TaxCode TaxCode Tax Code
KEY TransactionTypeDetermination TransactionTypeDetermination Transaction Key
KEY TaxBox TaxBox Tax.Bs.Gp.No.
KEY TaxDeclnAmountType TaxDeclnAmountType
KEY TaxItemGroupingVersion TaxItemGroupingVersion Tax Grping Ver.
KEY ValidFrom ValidFrom Vers.Valid From
KEY TaxBoxStructureType TaxBoxStructureType
TaxRate TaxRate Tax Rate
GLAccount GLAccount General Ledger
TaxItemGroup TaxItemGroup Tax doc. item number
BusinessPlace BusinessPlace Business place
TaxJurisdiction TaxJurisdiction Tax Jurisdiction
LowestLevelTaxJurisdiction LowestLevelTaxJurisdiction Jurisdict. Code
AccountingDocumentType AccountingDocumentType Journal Entry Type
ReferenceDocumentType ReferenceDocumentType Reference Document Type
ReverseDocument ReverseDocument Reversed With
ReverseDocumentFiscalYear ReverseDocumentFiscalYear Year
DocumentReferenceID DocumentReferenceID Reference
Ledger Ledger Ledger
LedgerGroup LedgerGroup Ledger Group
PostingDate PostingDate Posting Date for GR
DocumentDate DocumentDate Journal Entry Date
TaxReportingDate TaxReportingDate Tax Reporting Date
FiscalPeriod FiscalPeriod Tax period
ExchangeRate ExchangeRate Exchange rate
IsReversal IsReversal Reversal doc.
IsReversed IsReversed Reversed?
AccountingDocumentHeaderText AccountingDocumentHeaderText Doc.Header Text
CompanyCodeCountry CompanyCodeCountry Reporting Ctry/Reg.
ReportingCountry ReportingCountry
TaxReturnCountry TaxReturnCountry Reporting C/R
ReportingDate ReportingDate
CompanyCodeCurrency CompanyCodeCurrency Local Currency
CountryCurrency CountryCurrency Currency
DocumentCurrency DocumentCurrency Document Currency
ReportingCurrency ReportingCurrency Currency
AdditionalCurrency1 AdditionalCurrency1 Local curr. 2
AdditionalCurrency2 AdditionalCurrency2 Local curr. 3
AmountInReportingCurrency AmountInReportingCurrency
AmountInTransactionCurrency AmountInTransactionCurrency Pt Crcy Amt
AmountInAdditionalCurrency1 AmountInAdditionalCurrency1 Amount in Additional Currency 1
AmountInAdditionalCurrency2 AmountInAdditionalCurrency2 LC2 Amount
TaxBaseAmountInRptgCrcy TaxBaseAmountInRptgCrcy Base Amount
TaxAmountInRptgCrcy TaxAmountInRptgCrcy Tax Rept. Crcy
TaxBaseAmountInCoCodeCrcy TaxBaseAmountInCoCodeCrcy TxBaseAmt CoCodeCrcy
TaxAmountInCoCodeCrcy TaxAmountInCoCodeCrcy Tax Amount in Company Code Currency
TaxBaseAmountInTransCrcy TaxBaseAmountInTransCrcy Value-Added Tax
TaxAmount TaxAmount Tax Amt in Rptg Crcy
TaxBaseAmountInCountryCrcy TaxBaseAmountInCountryCrcy Base Amount
TaxAmountInCountryCrcy TaxAmountInCountryCrcy Tax Rept. Crcy
TaxBaseAmtInAdditionalCrcy1 TaxBaseAmtInAdditionalCrcy1 LC 2 Base
TaxBaseAmtInAdditionalCrcy2 TaxBaseAmtInAdditionalCrcy2 LC 3 Base
TaxAmountInAdditionalCurrency1 TaxAmountInAdditionalCurrency1 LC 2 Tax
TaxAmountInAdditionalCurrency2 TaxAmountInAdditionalCurrency2 LC 3 Tax
NonDeductibleInputTaxAmount I_StRpTaxReturnBoxCube NonDeductibleInputTaxAmount Non-deductible
TaxType TaxType Tax Type
TaxCalculationProcedure TaxCalculationProcedure Tax Procedure
TargetTaxCode TargetTaxCode
ConditionType ConditionType Condition type
TaxNumber1 TaxNumber1 VAT Reg. No.
TaxNumber2 TaxNumber2 Tax Number 2
TaxNumber3endasTaxNumber3
BusinessPartner I_StRpTaxReturnBoxCube BusinessPartner Issuing Authority
BusinessPartnerName BusinessPartnerName Extracted Customer Name
CustomerSupplierAddress CustomerSupplierAddress
TaxIsNotDeductible TaxIsNotDeductible Non-Deductible
TaxBoxStructure TaxBoxStructure
TaxBoxStructureName TaxBoxStructureName
TaxBoxName TaxBoxName
TaxBoxCondition TaxBoxCondition
TaxGroup TaxGroup Tax Group
SupplierAccountGroup SupplierAccountGroup Account group
TaxBoxAggregationOperation TaxBoxAggregationOperation
TaxGroupOperation TaxGroupOperation
AlternativeReferenceDocument _AccountingDocument AlternativeReferenceDocument Alternative Reference Document
cond_name cond_name Condition Name
matnr bseg matnr Vehicle Model
werks bseg werks Receiving Plant
hkont bseg hkont Transfer acct
hsn_sac FIACCDOCINHSN hsn_sac HSN/SAC Code
plc_sup bseg plc_sup Place of Supply
gst_part bseg gst_part GST Partner
ven_class lfa1 ven_class GST Ven Class.
rec_cgst rec_cgst Amount
rec_cgst_con rec_cgst_con Condition Type
rec_sgst rec_sgst Amount
rec_sgst_con rec_sgst_con Condition Type
rec_ugst rec_ugst Amount
rec_ugst_con rec_ugst_con Condition Type
rec_igst rec_igst Amount
rec_igst_con rec_igst_con Condition Type
rec_cess rec_cess Amount
rec_cess_con rec_cess_con Condition Type
rev_amt j_1ig_gst_jv rev_amt Amount
jv_type j_1ig_gst_jv jv_type JV Type
TaxNumber3thenUelseRendasRegisteredInd
BPTaxNumberelseendasBPTaxNumber

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 FISTRPGSTR3BITEM.
-- 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: FISRGSTR3BITM
-- Parameters: P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_StatryRptRunID : srf_report_run_id

CREATE VIEW FISTRPGSTR3BITEM AS
SELECT
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  TaxItem,
  TaxCode,
  TransactionTypeDetermination,
  TaxBox,
  TaxDeclnAmountType,
  TaxItemGroupingVersion,
  ValidFrom,
  TaxBoxStructureType,
  TaxRate,
  GLAccount,
  TaxItemGroup,
  BusinessPlace,
  TaxJurisdiction,
  LowestLevelTaxJurisdiction,
  AccountingDocumentType,
  ReferenceDocumentType,
  ReverseDocument,
  ReverseDocumentFiscalYear,
  DocumentReferenceID,
  Ledger,
  LedgerGroup,
  PostingDate,
  DocumentDate,
  TaxReportingDate,
  FiscalPeriod,
  ExchangeRate,
  IsReversal,
  IsReversed,
  AccountingDocumentHeaderText,
  CompanyCodeCountry,
  ReportingCountry,
  TaxReturnCountry,
  ReportingDate,
  CompanyCodeCurrency,
  CountryCurrency,
  DocumentCurrency,
  ReportingCurrency,
  AdditionalCurrency1,
  AdditionalCurrency2,
  AmountInReportingCurrency,
  AmountInTransactionCurrency,
  AmountInAdditionalCurrency1,
  AmountInAdditionalCurrency2,
  TaxBaseAmountInRptgCrcy,
  TaxAmountInRptgCrcy,
  TaxBaseAmountInCoCodeCrcy,
  TaxAmountInCoCodeCrcy,
  TaxBaseAmountInTransCrcy,
  TaxAmount,
  TaxBaseAmountInCountryCrcy,
  TaxAmountInCountryCrcy,
  TaxBaseAmtInAdditionalCrcy1,
  TaxBaseAmtInAdditionalCrcy2,
  TaxAmountInAdditionalCurrency1,
  TaxAmountInAdditionalCurrency2,
  I_StRpTaxReturnBoxCube.NonDeductibleInputTaxAmount AS NonDeductibleInputTaxAmount,
  TaxType,
  TaxCalculationProcedure,
  TargetTaxCode,
  ConditionType,
  TaxNumber1,
  TaxNumber2,
  case when _bseg.koart = 'K' then _lfa1.stcd3 when _bseg.koart = 'D' then _CustomerToBusinessPartner._Customer.TaxNumber3 end as TaxNumber3 AS TaxNumber3endasTaxNumber3,
  I_StRpTaxReturnBoxCube.BusinessPartner AS BusinessPartner,
  BusinessPartnerName,
  CustomerSupplierAddress,
  TaxIsNotDeductible,
  TaxBoxStructure,
  TaxBoxStructureName,
  TaxBoxName,
  TaxBoxCondition,
  TaxGroup,
  SupplierAccountGroup,
  TaxBoxAggregationOperation,
  TaxGroupOperation,
  _AccountingDocument.AlternativeReferenceDocument AS AlternativeReferenceDocument,
  cond_name,
  _mbseg.matnr AS matnr,
  _mbseg.werks AS werks,
  _mbseg.hkont AS hkont,
  _hbseg.hsn_sac AS hsn_sac,
  _bseg.plc_sup AS plc_sup,
  _bseg.gst_part AS gst_part,
  _lfa1.ven_class AS ven_class,
  rec_cgst,
  rec_cgst_con,
  rec_sgst,
  rec_sgst_con,
  rec_ugst,
  rec_ugst_con,
  rec_igst,
  rec_igst_con,
  rec_cess,
  rec_cess_con,
  _JV.rev_amt AS rev_amt,
  _JV.jv_type AS jv_type,
  case when (_lfa1.stcd3 is null or _lfa1.stcd3 = '') and ( _CustomerToBusinessPartner._Customer.TaxNumber3 is null or _CustomerToBusinessPartner._Customer.TaxNumber3 = '' ) then 'U' else 'R' end as RegisteredInd AS TaxNumber3thenUelseRendasRegisteredInd,
  case when _bseg.koart = 'D' then _DFKKBPTAXNUM_ADR.BPTaxNumber else '' end as BPTaxNumber AS BPTaxNumberelseendasBPTaxNumber
LEFT OUTER JOIN j_1iexcdefn AS _CodeName ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN bseg AS _bseg ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN FIACCDOCINHSN AS _hbseg ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN bseg AS _mbseg ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN lfa1 AS _lfa1 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_BusinessPartnerCustomer AS _BUSINESSPARTNERCUSTOMER ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_BusPartAddrDepdntTaxNmbr AS _DFKKBPTAXNUM_ADR ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN j_1ig_isd_distr AS _ISD ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN knvi AS _knvi ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CustSlsAreaAddrDepdntTaxInfo AS knvi_addr ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN j_1ig_gst_jv AS _JV ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN j_1istatecdm AS _StateCode ON /* join condition not captured in parsed metadata */
;