I_SALESDOCUMENTCOPYCONTROL

CDS View

Sales Document Copying Control

I_SALESDOCUMENTCOPYCONTROL is a CDS View in S/4HANA. Sales Document Copying Control. It contains 8 fields. 6 CDS views read from this table.

CDS Views using this table (6)

ViewTypeJoinVDMDescription
C_ContractSubsequentDocType view from CONSUMPTION Subsequent Doc Types for Contracts
C_Quotation_SubsequentDocType view from CONSUMPTION Subsequent Doc Types for Quotation
C_ReturnRefDocItem_F1708 view left_outer CONSUMPTION Return Reference Document Item
C_RFM_PrvsnlSubsqntDocTypes view from CONSUMPTION Subsequent Doc Types for Contracts
C_SlsQtanSubsqntOrderTypeMngVH view_entity from CONSUMPTION Subsequent Order Types
I_CustRetCpyCtrlSrceDocType view_entity from COMPOSITE Source Document Type for Returns Order

Fields (8)

KeyField CDS FieldsUsed in Views
KEY ReferenceItemCategory ReferenceItemCategory 1
KEY ReferenceScheduleLineCategory ReferenceScheduleLineCategory 1
KEY SourceBillingDocumentType SourceBillingDocumentType 1
KEY SourceSalesDocumentType SourceSalesDocumentType 2
KEY TargetSalesDocumentType TargetSalesDocumentType 2
_SourceBillingDocumentType _SourceBillingDocumentType 1
_SourceSalesDocumentType _SourceSalesDocumentType 1
_TargetSalesDocumentType _TargetSalesDocumentType 1
@ClientHandling.algorithm: #SESSION_VARIABLE 
@ObjectModel.usageType.dataClass: #CUSTOMIZING 
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #S
@ObjectModel.supportedCapabilities: [ #CDS_MODELING_ASSOCIATION_TARGET, #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #SEARCHABLE_ENTITY ]
@EndUserText.label: 'Sales Document Copying Control'
@VDM.viewType: #BASIC
@AccessControl.authorizationCheck:#NOT_REQUIRED
@AbapCatalog.sqlViewName: 'ISDSLSDOCCPYCTRL'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.buffering.status: #ACTIVE
@AbapCatalog.buffering.type: #FULL
@Metadata.ignorePropagatedAnnotations:true

define view I_SalesDocumentCopyControl
  as select from tvcpa

  association [0..1] to I_SalesDocumentType         as _TargetSalesDocumentType       on $projection.TargetSalesDocumentType = _TargetSalesDocumentType.SalesDocumentType
  association [0..1] to I_SalesDocumentType         as _SourceSalesDocumentType       on $projection.SourceSalesDocumentType = _SourceSalesDocumentType.SalesDocumentType
  association [0..1] to I_BillingDocumentType       as _SourceBillingDocumentType     on $projection.SourceBillingDocumentType = _SourceBillingDocumentType.BillingDocumentType
  association [0..1] to I_ScheduleLineCategory      as _ReferenceScheduleLineCategory on $projection.ReferenceScheduleLineCategory = _ReferenceScheduleLineCategory.ScheduleLineCategory
  association [0..1] to I_SalesDocumentItemCategory as _ReferenceItemCategory         on $projection.ReferenceItemCategory = _ReferenceItemCategory.SalesDocumentItemCategory

{
      //key

      @ObjectModel.foreignKey.association: '_TargetSalesDocumentType'
  key auarn        as TargetSalesDocumentType,
      @ObjectModel.foreignKey.association: '_SourceSalesDocumentType'
  key auarv        as SourceSalesDocumentType,
      @ObjectModel.foreignKey.association: '_SourceBillingDocumentType'
  key fkarv        as SourceBillingDocumentType,
      @ObjectModel.foreignKey.association: '_ReferenceScheduleLineCategory'
  key ettyv        as ReferenceScheduleLineCategory,
      @ObjectModel.foreignKey.association: '_ReferenceItemCategory'
  key pstyv        as ReferenceItemCategory,

      //Association

      _TargetSalesDocumentType,
      _SourceSalesDocumentType,
      _SourceBillingDocumentType,
      _ReferenceScheduleLineCategory,
      _ReferenceItemCategory
};               
  
 /*+[internal] {
"BASEINFO":
{
"FROM":
[
"TVCPA"
],
"ASSOCIATED":
[
"I_BILLINGDOCUMENTTYPE",
"I_SALESDOCUMENTITEMCATEGORY",
"I_SALESDOCUMENTTYPE",
"I_SCHEDULELINECATEGORY"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/