H_HU_StRpDeclTaxAmount

DDL: H_HU_STRPDECLTAXAMOUNT SQL: HHUSTRPDECLTXAMT Type: view

Convert amt to declarable amount

H_HU_StRpDeclTaxAmount is a CDS View that provides data about "Convert amt to declarable amount" in SAP S/4HANA. It reads from 1 data source (I_SAPClient) and exposes 2 fields with key field SAPClient.

Data Sources (1)

SourceAliasJoin Type
I_SAPClient I_SAPClient from

Parameters (1)

NameTypeDefault
P_AmountInReportingCurrency dmbtr

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName HHUSTRPDECLTXAMT view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Convert amt to declarable amount view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY SAPClient sapclient
char50asAmountInReportingCurrency
@AbapCatalog.sqlViewName: 'HHUSTRPDECLTXAMT'
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.sizeCategory: #S
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.dataClass: #MIXED
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Convert amt to declarable amount'
define view H_HU_StRpDeclTaxAmount with parameters
    P_AmountInReportingCurrency : dmbtr
     
    as select from I_SAPClient {
    key sapclient                                                           as SAPClient,
    
    // Declration shoudl be prepared in thousands HUF, it is stored divided by 100 in DB. 

    // Div by 10 so the cummulative effect is like divided by 1000.

    // Trim the result.

    ltrim(rtrim(
      cast(
        division($parameters.P_AmountInReportingCurrency,10,0) 
      as abap.char( 50 ))
    , ' '), ' ') 
    as AmountInReportingCurrency
}