I_PRAWhldgForm1042sCurrent

DDL: I_PRAWHLDGFORM1042SCURRENT Type: view_entity BASIC

PRA Withholding Form 1042s Current

I_PRAWhldgForm1042sCurrent (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

PRAAnnualReportForeignOwnrCur · Cross Applications

I_PRAWhldgForm1042sCurrent is a Basic CDS View that provides data about "PRA Withholding Form 1042s Current" in SAP S/4HANA. It reads from 1 data source (/pra/wh_fm_1042s) and exposes 57 fields with key fields ProcessRun, PRAOwner, PRAWhldgFormCatCode, WhldgFormState, OwnerTaxpayerNumber. It has 10 associations to related views.

SAP Help Documentation

CategoryCDS Views for Production and Revenue Accounting (PRA)
Purpose
This CDS view is used to report federal and state withholding funds for residents and non-residents. The non-resident owner's current net, gross, tax, marketing, and deductive amount information is represented in this node.

Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: O_OIU_TXN:OIU_TCODE-/PRA/WH_WORKPLACE,O_OIU_TXN:ACTVT-03 (Mapping role for PRAAnnualReportForeignOwnrCur )

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessCross Applications
Application ComponentIS-OIL-PRA
CapabilitiesData Source in SQL Select
PackageCross Applications for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view is used to report federal and state withholding funds for residents and non-residents. The non-resident owner's current net, gross, tax, marketing, and deductive amount information is represented in this node.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
/pra/wh_fm_1042s /pra/wh_fm_1042s from

Associations (10)

CardinalityTargetAliasCondition
[0..1] I_PRAWhldgFormCatVH _PRAWhldgFormCatVH _PRAWhldgFormCatVH.PRAWhldgFormCatCode = $projection.PRAWhldgFormCatCode
[0..1] I_PRALegalForm _PRALegalForm _PRALegalForm.PRALegalForm = $projection.PRALegalForm
[0..1] I_PRATaxTypeVH _PRATaxTypeVH _PRATaxTypeVH.TaxType = $projection.PRARecipientTaxIDType
[0..1] I_ProcessRun _ProcessRun $projection.ProcessRun = _ProcessRun.ProcessRun
[0..1] I_PRAOwner _PRAOwner $projection.PRAOwner = _PRAOwner.PRAOwner
[1..1] I_PRAPaymentHeader _PRAPaymentHeader _PRAPaymentHeader.ProcessRun = $projection.ProcessRun
[0..1] I_Country _PayerCountry $projection.PRAPayerCountry = _PayerCountry.Country
[0..1] I_Region _PayerRegion $projection.PRAPayerCountry = _PayerRegion.Country and $projection.PRAPayerState = _PayerRegion.Region
[0..1] I_Country _RecipientCountry $projection.PRARecipientCountry = _RecipientCountry.Country
[0..1] I_Region _RecipientRegion $projection.PRARecipientCountry = _RecipientRegion.Country and $projection.PRARecipientState = _RecipientRegion.Region

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label PRA Withholding Form 1042s Current view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #BASIC view
AccessControl.personalData.blocking #NOT_REQUIRED view
ObjectModel.sapObjectNodeType.name PRAAnnualReportForeignOwnrCur view

Fields (57)

KeyFieldSource TableSource FieldDescription
KEY ProcessRun run_id Proc 2.0 - Run ID
KEY PRAOwner vendor PRA owner
KEY PRAWhldgFormCatCode form_cat Withholding: Form category
KEY WhldgFormState form_state Region of Residence
KEY OwnerTaxpayerNumber payer_ein Taxpayer Number
PRAIncomeCode income_code Income Code
PRAWhldgTaxRate tax_rate Payment Processing - Withholding Rate
TaxExemptCode exempt_code OK Exempt Code
PRANonResidentAlienWhldgAmount nra_tax_wh Owner Net Value
PRARecipientName recipient_name Name
RecipientName2 recipient_name2 Name 2
PRARecipientCode recipient_code Recipient Code
PRARcpntAddress recipient_addr Street
PRARcpntAddress1 recipient_addr1 Street 2
PRARcpntAddress2 recipient_addr2 Street 3
PRARcpntAddress3 recipient_addr3 Street 4
PRARcpntAddress4 recipient_addr4 Street 5
PRARcpntCityName recipient_city City
PRARecipientState recipient_state Region of Residence
PRARecipientCountry recipient_cntry Resident Country/Region
PRARecipientPostalCode recipient_zip Postal Code
PRALegalForm recipient_en_typ Entity Type
PRARecipientTaxId recipient_tax_id Tax ID
PRARecipientTaxIDType recipient_tax_ty Tax ID Type
PRAPayerName payer_name Payer Name
PRAPayerAddress payer_addr Street and House Number
PRAPayerAddress1 payer_addr1 Taxpayer Address Line
PRAPayerCityName payer_city City
PRAPayerState payer_state Region of Residence
PRAPayerCountry payer_cntry Resident Country/Region
PRAPayerPostalCode payer_zip Postal Code
OwnerGrossAmount gross_value Owner Gross Value
OwnerNetAmount net_value Owner Net Value
OwnerMarketingAmount marketing_cost Marketing Net Value
OwnerReimbursementAmount reimbursements Reimbursement Net Value
OwnerTaxAmount taxes Tax Net Value
OwnerOtherDeductsAmount other_deducts Other Deducts Net Value
PRANetIntrstCalcdAmount interest_value Interest net value
OwnerStateWithholdingAmount state_wh_value Withholding: State Withholding Value
PRAIsReissued reissue Withholding : Re-issue
PRAIsSent send Withholding: Send Form
PRAAgencyCountyList county_list Agency county code(s)
PRAWhldgDateTimeStamp UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
CreatedByUser oiu_cruser Name of Person Responsible for Creating the Object
CreationDateTime oiu_timestamp UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
OriginTransaction Source Transaction ID
CompanyCodeCurrency _PRAPaymentHeader CompanyCodeCurrency Local Currency
_PRAWhldgFormCatVH _PRAWhldgFormCatVH
_PRALegalForm _PRALegalForm
_PRATaxTypeVH _PRATaxTypeVH
_PRAPaymentHeader _PRAPaymentHeader
_PRAOwner _PRAOwner
_ProcessRun _ProcessRun
_PayerCountry _PayerCountry
_PayerRegion _PayerRegion
_RecipientCountry _RecipientCountry
_RecipientRegion _RecipientRegion

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_PRAWhldgForm1042sCurrent.
-- 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_PRAWhldgForm1042sCurrent AS
SELECT
  run_id AS ProcessRun,
  vendor AS PRAOwner,
  form_cat AS PRAWhldgFormCatCode,
  form_state AS WhldgFormState,
  payer_ein AS OwnerTaxpayerNumber,
  income_code AS PRAIncomeCode,
  tax_rate AS PRAWhldgTaxRate,
  exempt_code AS TaxExemptCode,
  nra_tax_wh AS PRANonResidentAlienWhldgAmount,
  recipient_name AS PRARecipientName,
  recipient_name2 AS RecipientName2,
  recipient_code AS PRARecipientCode,
  recipient_addr AS PRARcpntAddress,
  recipient_addr1 AS PRARcpntAddress1,
  recipient_addr2 AS PRARcpntAddress2,
  recipient_addr3 AS PRARcpntAddress3,
  recipient_addr4 AS PRARcpntAddress4,
  recipient_city AS PRARcpntCityName,
  recipient_state AS PRARecipientState,
  recipient_cntry AS PRARecipientCountry,
  recipient_zip AS PRARecipientPostalCode,
  recipient_en_typ AS PRALegalForm,
  recipient_tax_id AS PRARecipientTaxId,
  recipient_tax_ty AS PRARecipientTaxIDType,
  payer_name AS PRAPayerName,
  payer_addr AS PRAPayerAddress,
  payer_addr1 AS PRAPayerAddress1,
  payer_city AS PRAPayerCityName,
  payer_state AS PRAPayerState,
  payer_cntry AS PRAPayerCountry,
  payer_zip AS PRAPayerPostalCode,
  gross_value AS OwnerGrossAmount,
  net_value AS OwnerNetAmount,
  marketing_cost AS OwnerMarketingAmount,
  reimbursements AS OwnerReimbursementAmount,
  taxes AS OwnerTaxAmount,
  other_deducts AS OwnerOtherDeductsAmount,
  interest_value AS PRANetIntrstCalcdAmount,
  state_wh_value AS OwnerStateWithholdingAmount,
  reissue AS PRAIsReissued,
  send AS PRAIsSent,
  county_list AS PRAAgencyCountyList,
  cast ( timestamp as oiu_vdm_tmstmp ) AS PRAWhldgDateTimeStamp,
  oiu_cruser AS CreatedByUser,
  oiu_timestamp AS CreationDateTime,
  cast( '/PRA/WH_WORKPLACE' as fqm_origin_trans_id ) AS OriginTransaction,
  _PRAPaymentHeader.CompanyCodeCurrency AS CompanyCodeCurrency
FROM /pra/wh_fm_1042s
LEFT OUTER JOIN I_PRAWhldgFormCatVH AS _PRAWhldgFormCatVH ON _PRAWhldgFormCatVH.PRAWhldgFormCatCode = PRAWhldgFormCatCode  -- association [0..1]
LEFT OUTER JOIN I_PRALegalForm AS _PRALegalForm ON _PRALegalForm.PRALegalForm = PRALegalForm  -- association [0..1]
LEFT OUTER JOIN I_PRATaxTypeVH AS _PRATaxTypeVH ON _PRATaxTypeVH.TaxType = PRARecipientTaxIDType  -- association [0..1]
LEFT OUTER JOIN I_ProcessRun AS _ProcessRun ON ProcessRun = _ProcessRun.ProcessRun  -- association [0..1]
LEFT OUTER JOIN I_PRAOwner AS _PRAOwner ON PRAOwner = _PRAOwner.PRAOwner  -- association [0..1]
LEFT OUTER JOIN I_PRAPaymentHeader AS _PRAPaymentHeader ON _PRAPaymentHeader.ProcessRun = ProcessRun  -- association [1..1]
LEFT OUTER JOIN I_Country AS _PayerCountry ON PRAPayerCountry = _PayerCountry.Country  -- association [0..1]
LEFT OUTER JOIN I_Region AS _PayerRegion ON PRAPayerCountry = _PayerRegion.Country AND PRAPayerState = _PayerRegion.Region  -- association [0..1]
LEFT OUTER JOIN I_Country AS _RecipientCountry ON PRARecipientCountry = _RecipientCountry.Country  -- association [0..1]
LEFT OUTER JOIN I_Region AS _RecipientRegion ON PRARecipientCountry = _RecipientRegion.Country AND PRARecipientState = _RecipientRegion.Region  -- association [0..1]
;