I_IN_EDCTaxAuthEInvcHdr

DDL: I_IN_EDCTAXAUTHEINVCHDR Type: view_entity BASIC

India eInvoice Auto Population Header

I_IN_EDCTaxAuthEInvcHdr is a Basic CDS View that provides data about "India eInvoice Auto Population Header" in SAP S/4HANA. It reads from 1 data source (edcineinvh) and exposes 27 fields with key field EDCTaxAuthRecordUUID. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
edcineinvh edcineinvh from

Associations (1)

CardinalityTargetAliasCondition
[1..*] I_IN_EDCTaxAuthEInvcItem _EDCTaxAuthEInvcItem $projection.EDCTaxAuthRecordUUID = _EDCTaxAuthEInvcItem.EDCTaxAuthRecordUUID

Annotations (8)

NameValueLevelField
EndUserText.label India eInvoice Auto Population Header view
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (27)

KeyFieldSource TableSource FieldDescription
KEY EDCTaxAuthRecordUUID record_guid UUID
IN_EDCTaxAuthTaxPayerGSTIN tp_gstin Taxpayer GSTIN
IN_EDCTaxAuthReportingPeriod Reporting Period
IN_EDCTaxAuthDocSectionCode doc_section GSTR2A/2B Doc Sec
IN_EDCTaxAuthEDocInvcNmbr doc_no Posted Doc. No.
IN_EDCTaxAuthBusinessPrtnGSTIN cp_gstin Counter Party GSTIN
IN_EDCTaxAuthBusinessPrtnName cp_name Counterparty Name
IN_EDCTaxAuthDocumentDate doc_date Document Date
IN_EDCTaxAuthGSTPlaceOfSupply pos Table position
IN_EDCTaxAuthInvoiceType inv_type SAF-T Inv. Type
IN_EDCTaxAuthIsReverseCharged is_reverse_charge Rev Chrg Indicator
IN_EDCTaxAuthDocumentAmount doc_amount Document Amount
Currency currency_code Currency Code
IN_EDCTaxAuthEInvcSrceType irn_src_type IRN Source Type
IN_EDCTaxAuthInvcRefNmbr irn Invoice Ref. Number
IN_EDCTaxAuthEInvcGnrtnDate irn_gendate IRN Genaration Date
IN_EDCTaxAuthEInvcStatus einv_status e-Invoice Status
IN_EDCTaxAuthAutoDraftStatus auto_draft_status Auto Draft Status
IN_EDCTaxAuthAutoDraftDate auto_draft_date Auto Draft Date
IN_EDCTaxAuthNoteType note_type Type of Note
IN_EDCTaxAuthShipgBillNumber ship_bill_number Shipping Bill Number
IN_EDCTaxAuthShipgBillDate ship_bill_date Shipping Bill Date
IN_EDCTaxAuthShipgPortCode ship_port_code Port Code
IN_EDCTaxAuthEcommerceGSTIN ecom_gstin eCommerce GSTIN
IN_EDCTaxAuthErrorCode error_code INT4
IN_EDCTaxAuthErrorDescription error_desciption Error Description
_EDCTaxAuthEInvcItem _EDCTaxAuthEInvcItem

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 I_IN_EDCTaxAuthEInvcHdr.
-- 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 I_IN_EDCTaxAuthEInvcHdr AS
SELECT
  record_guid AS EDCTaxAuthRecordUUID,
  tp_gstin AS IN_EDCTaxAuthTaxPayerGSTIN,
  cast(ret_period as abap.numc( 6 )) AS IN_EDCTaxAuthReportingPeriod,
  doc_section AS IN_EDCTaxAuthDocSectionCode,
  doc_no AS IN_EDCTaxAuthEDocInvcNmbr,
  cp_gstin AS IN_EDCTaxAuthBusinessPrtnGSTIN,
  cp_name AS IN_EDCTaxAuthBusinessPrtnName,
  doc_date AS IN_EDCTaxAuthDocumentDate,
  pos AS IN_EDCTaxAuthGSTPlaceOfSupply,
  inv_type AS IN_EDCTaxAuthInvoiceType,
  is_reverse_charge AS IN_EDCTaxAuthIsReverseCharged,
  doc_amount AS IN_EDCTaxAuthDocumentAmount,
  currency_code AS Currency,
  irn_src_type AS IN_EDCTaxAuthEInvcSrceType,
  irn AS IN_EDCTaxAuthInvcRefNmbr,
  irn_gendate AS IN_EDCTaxAuthEInvcGnrtnDate,
  einv_status AS IN_EDCTaxAuthEInvcStatus,
  auto_draft_status AS IN_EDCTaxAuthAutoDraftStatus,
  auto_draft_date AS IN_EDCTaxAuthAutoDraftDate,
  note_type AS IN_EDCTaxAuthNoteType,
  ship_bill_number AS IN_EDCTaxAuthShipgBillNumber,
  ship_bill_date AS IN_EDCTaxAuthShipgBillDate,
  ship_port_code AS IN_EDCTaxAuthShipgPortCode,
  ecom_gstin AS IN_EDCTaxAuthEcommerceGSTIN,
  error_code AS IN_EDCTaxAuthErrorCode,
  error_desciption AS IN_EDCTaxAuthErrorDescription
FROM edcineinvh
LEFT OUTER JOIN I_IN_EDCTaxAuthEInvcItem AS _EDCTaxAuthEInvcItem ON EDCTaxAuthRecordUUID = _EDCTaxAuthEInvcItem.EDCTaxAuthRecordUUID  -- association [1..*]
;