I_PRAWhldgForm1042sCurrent
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
| Category | CDS Views for Production and Revenue Accounting (PRA) |
|---|
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 )
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Cross Applications |
| Application Component | IS-OIL-PRA |
| Capabilities | Data Source in SQL Select |
| Package | Cross 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
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| /pra/wh_fm_1042s | /pra/wh_fm_1042s | from |
Associations (10)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA