R_WORKASSGMTALTCOSTASSGMT

CDS View

Alternate Cost Object for Wrk Assignment

R_WORKASSGMTALTCOSTASSGMT is a CDS View in S/4HANA. Alternate Cost Object for Wrk Assignment. It contains 13 fields. 1 CDS views read from this table.

CDS Views using this table (1)

ViewTypeJoinVDMDescription
R_WorkAssgmtAltCostAssgmtUnion view_entity union COMPOSITE Alt Cost Assgmnts at Wrk Assignmnt

Fields (13)

KeyField CDS FieldsUsed in Views
KEY SequenceNumber SequenceNumber 1
KEY WorkforceAssgmtStartDate WorkAssignmentStartDate 1
AlternateCostPercent AlternateCostPercent 1
CompanyCode CompanyCode 1
ControllingArea ControllingArea 1
CostCenter CostCenter 1
FinancialManagementArea FinancialManagementArea 1
FunctionalArea FunctionalArea 1
Fund Fund 1
GrantID GrantID 1
IsDefaultValue IsDefaultValue 1
WorkforceAssgmtEndDate WorkAssignmentEndDate 1
WorkforceAssignment WorkAssignment 1
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AccessControl.personalData.blocking: #BLOCKED_DATA_EXCLUDED
@EndUserText.label: 'Alternate Cost Object for Wrk Assignment'
@Metadata.ignorePropagatedAnnotations: true
@VDM: {
  viewType: #BASIC,
  lifecycle.contract.type: #SAP_INTERNAL_API
}
@ObjectModel.usageType:{
  serviceQuality: #X,
  sizeCategory: #S,
  dataClass: #MIXED
}
define view entity R_WorkAssgmtAltCostAssgmt
  as select from wfd_d_alter_cost         as _AlternateCost
    inner join   I_WorkAssignmentDetail_1 as _AssignmentDetails on  _AlternateCost.workforce_assgmt_id = _AssignmentDetails.WorkforceAssignment
                                                                and _AlternateCost.start_date          = _AssignmentDetails.WorkforceAssgmtStartDate
{
  key _AlternateCost.workforce_assgmt_id as WorkforceAssignment,
  key _AlternateCost.seq_no              as SequenceNumber,
  key _AlternateCost.start_date          as WorkforceAssgmtStartDate,
      _AlternateCost.end_date            as WorkforceAssgmtEndDate,
      _AlternateCost.isdefault           as IsDefaultValue,
      _AlternateCost.percentage          as AlternateCostPercent,
      case when _AlternateCost.isdefault  is not initial
           then _AssignmentDetails.CostCenter
           else _AlternateCost.costcenter
           end                           as CostCenter,
      _AlternateCost.budgetperiod        as BudgetPeriod,
      _AlternateCost.functionalarea      as FunctionalArea,
      _AlternateCost.fund                as Fund,
      _AlternateCost.fundscenter         as FundsCenter,
      _AlternateCost.grants              as GrantID,
      _AssignmentDetails.ControllingArea,
      _AssignmentDetails.CompanyCode,
      _AssignmentDetails._CompanyCode.FinancialManagementArea
}
where
  _AlternateCost.block_ind = ' '
















//{

//  key _AlternateCost.workforce_assgmt_id as WorkforceAssignment,

//  key _AlternateCost.seq_no              as SequenceNumber,

//  key _AlternateCost.start_date          as WorkforceAssgmtStartDate,

//      _AlternateCost.end_date            as WorkforceAssgmtEndDate,

//      _AlternateCost.isdefault           as IsDefaultValue,

//      _AlternateCost.percentage          as AlternateCostPercent,

//      _AlternateCost.costcenter          as CostCenter,

//      _AlternateCost.budgetperiod        as BudgetPeriod,

//      _AlternateCost.functionalarea      as FunctionalArea,

//      _AlternateCost.fund                as Fund,

//      _AlternateCost.fundscenter         as FundsCenter,

//      _AlternateCost.grants              as GrantID,

//      _AssignmentDetails.ControllingArea,

//      _AssignmentDetails.CompanyCode,

//      _AssignmentDetails._CompanyCode.FinancialManagementArea

//}

//where

//  _AlternateCost.block_ind = ' '

/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_COMPANYCODE",
"I_WORKASSIGNMENTDETAIL_1",
"WFD_D_ALTER_COST"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/