P_SlsDocFlfmtCountryName

DDL: P_SLSDOCFLFMTCOUNTRYNAME SQL: PSOFFULLCOUNTRY Type: view CONSUMPTION

Full Name

P_SlsDocFlfmtCountryName is a Consumption CDS View that provides data about "Full Name" in SAP S/4HANA. It reads from 1 data source (I_SDDocumentCompletePartners) and exposes 5 fields.

Data Sources (1)

SourceAliasJoin Type
I_SDDocumentCompletePartners vbpa from

Annotations (8)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
VDM.viewType #CONSUMPTION view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Full Name view
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName PSOFFULLCOUNTRY view

Fields (5)

KeyFieldSource TableSource FieldDescription
SDDocument I_SDDocumentCompletePartners SDDocument
SDDocumentItem I_SDDocumentCompletePartners SDDocumentItem
PartnerFunction I_SDDocumentCompletePartners PartnerFunction
ShipToPartyCountry
ShipToPartyCountryName
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.private: true
@VDM.viewType: #CONSUMPTION
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck:#NOT_REQUIRED
@EndUserText.label: 'Full Name'
@AbapCatalog.preserveKey: true
@AbapCatalog.sqlViewName: 'PSOFFULLCOUNTRY'

--AT20.10.21: generalized to also expose ITEM info

define view P_SlsDocFlfmtCountryName

as select from I_SDDocumentCompletePartners as vbpa
{

vbpa.SDDocument as SDDocument,
vbpa.SDDocumentItem as SDDocumentItem,
vbpa.PartnerFunction,
cast(vbpa._DfltAddrRprstn.Country as shiptopartycountry)                                                                 as ShipToPartyCountry,
cast(vbpa._DfltAddrRprstn._Country._Text[1: Language = $session.system_language].CountryName as shiptopartycountryname)  as ShipToPartyCountryName

}
where vbpa.PartnerFunction = 'WE'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ADDRESS_2",
"I_COUNTRY",
"I_COUNTRYTEXT",
"I_SDDOCUMENTCOMPLETEPARTNERS"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/