P_MfgOrderCompAssemblyAction
P_MfgOrderCompAssemblyAction is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_MfgOrderComponentAssembly) and exposes 48 fields with key fields AssemblyDocument, AssemblyDocumentItem.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MfgOrderComponentAssembly | I_MfgOrderComponentAssembly | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMPECOMPASSYACTN | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (48)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AssemblyDocument | AssemblyDocument | ||
| KEY | AssemblyDocumentItem | AssemblyDocumentItem | ||
| Reservation | Reservation | |||
| ReservationItem | ReservationItem | |||
| RecordType | RecordType | |||
| OpActyNtwkInstance | OpActyNtwkInstance | |||
| OpActyNtwkElement | OpActyNtwkElement | |||
| AssemblyShopFloorItem | AssemblyShopFloorItem | |||
| ShopFloorItem | ShopFloorItem | |||
| Batch | Batch | |||
| Material | Material | |||
| RequiredQuantity | RequiredQuantity | |||
| MaterialComponentQuantity | MaterialComponentQuantity | |||
| MaterialBaseUnit | MaterialBaseUnit | |||
| CreationDateTime | CreationDateTime | |||
| CreatedByUser | CreatedByUser | |||
| Plant | Plant | |||
| StorageLocation | StorageLocation | |||
| InventoryUsabilityCode | InventoryUsabilityCode | |||
| CompAssemblyGoodsMvtStatus | CompAssemblyGoodsMvtStatus | |||
| PostingIsRetroactive | PostingIsRetroactive | |||
| QuantityInEntryUnit | QuantityInEntryUnit | |||
| EntryUnit | EntryUnit | |||
| MaterialDocument | MaterialDocument | |||
| MaterialDocumentYear | MaterialDocumentYear | |||
| GoodsMovementException | GoodsMovementException | |||
| GoodsMovementExceptionItem | GoodsMovementExceptionItem | |||
| ExecOpActyNtwkInstance | ExecOpActyNtwkInstance | |||
| ExecOpActyNtwkElement | ExecOpActyNtwkElement | |||
| DebitCreditCode | DebitCreditCode | |||
| OpActySFIGrpAssemblyDocument | OpActySFIGrpAssemblyDocument | |||
| OpActySFIGrpAssyDocumentItem | OpActySFIGrpAssyDocumentItem | |||
| _ExecOpActyNtwkInstance | _ExecOpActyNtwkInstance | |||
| _ExecOperationActivityInstance | _ExecOperationActivityInstance | |||
| _GoodsMovementException | _GoodsMovementException | |||
| _GoodsMovementExceptionItem | _GoodsMovementExceptionItem | |||
| _Material | _Material | |||
| _MaterialBaseUnit | _MaterialBaseUnit | |||
| _MaterialDocumentHeader | _MaterialDocumentHeader | |||
| _MaterialDocumentYear | _MaterialDocumentYear | |||
| _OpActyNtwkInstance | _OpActyNtwkInstance | |||
| _OperationActivityInstance | _OperationActivityInstance | |||
| _ParentShopFloorItem | _ParentShopFloorItem | |||
| _Plant | _Plant | |||
| _Reservation | _Reservation | |||
| _ReservationItem | _ReservationItem | |||
| _ShopFloorItem | _ShopFloorItem | |||
| _StorageLocation | _StorageLocation |
@AbapCatalog.sqlViewName: 'PMPECOMPASSYACTN'
@AbapCatalog.compiler.compareFilter:true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: {serviceQuality: #B, sizeCategory: #XL, dataClass: #TRANSACTIONAL}
@VDM.viewType: #COMPOSITE
@VDM.private: true
define view P_MfgOrderCompAssemblyAction
as select from I_MfgOrderComponentAssembly
{
//I_MfgOrderComponentAssembly
key AssemblyDocument,
key AssemblyDocumentItem,
key cast(case
when DebitCreditCode = 'S' then case
-- Assembly with regard to by-product
when MaterialComponentQuantity < 0 then
case
when AssemblyShopFloorItem = 0 then 'SAP_MATERIAL_REASSEMBLY_OA'
else 'SAP_MATERIAL_REASSEMBLY_SFI'
end
else
case
when AssemblyShopFloorItem = 0 then 'SAP_MATERIAL_RETURN_OA'
else 'SAP_MATERIAL_RETURN_SFI'
end
end
else case
-- Assembly with regard to standard component
when MaterialComponentQuantity < 0 then
case
when AssemblyShopFloorItem = 0 then 'SAP_COMP_DISASSEMBLY_OA'
else 'SAP_COMP_DISASSEMBLY_SFI'
end
else
case
when AssemblyShopFloorItem = 0 then 'SAP_COMP_ASSEMBLY_OA'
else 'SAP_COMP_ASSEMBLY_SFI'
end
end
end as mpe_action_name_type) as MfgProcgExecAction,
Reservation,
ReservationItem,
RecordType,
OpActyNtwkInstance,
OpActyNtwkElement,
AssemblyShopFloorItem,
ShopFloorItem,
Batch,
Material,
RequiredQuantity,
MaterialComponentQuantity,
MaterialBaseUnit,
CreationDateTime,
CreatedByUser,
Plant,
StorageLocation,
InventoryUsabilityCode,
CompAssemblyGoodsMvtStatus,
PostingIsRetroactive,
QuantityInEntryUnit,
EntryUnit,
MaterialDocument,
MaterialDocumentYear,
GoodsMovementException,
GoodsMovementExceptionItem,
ExecOpActyNtwkInstance,
ExecOpActyNtwkElement,
DebitCreditCode,
OpActySFIGrpAssemblyDocument,
OpActySFIGrpAssyDocumentItem,
_ExecOpActyNtwkInstance,
_ExecOperationActivityInstance,
_GoodsMovementException,
_GoodsMovementExceptionItem,
_Material,
_MaterialBaseUnit,
_MaterialDocumentHeader,
_MaterialDocumentYear,
_OpActyNtwkInstance,
_OperationActivityInstance,
_ParentShopFloorItem,
_Plant,
_Reservation,
_ReservationItem,
_ShopFloorItem,
_StorageLocation
}
where
AssemblyCorrectionDocument = 0
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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