I_PHYSINVTRYREASONCODE
Physical Inventory Reason Type
I_PHYSINVTRYREASONCODE is a CDS View in S/4HANA. Physical Inventory Reason Type. It contains 2 fields. 1 CDS views read from this table.
CDS Views using this table (1)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| A_GoodsMvtReasonCode | view | from | BASIC | Goods movement reason code |
Fields (2)
| Key | Field | CDS Fields | Used in Views |
|---|---|---|---|
| KEY | GoodsMovementType | GoodsMovementType | 1 |
| KEY | ReasonForPhysInvtryDifference | ReasonForPhysInvtryDifference | 1 |
@AbapCatalog: {
sqlViewName: 'IPIREASON',
preserveKey: true,
compiler.compareFilter: true,
buffering : { status : #ACTIVE, type: #FULL }
}
@EndUserText.label: 'Physical Inventory Reason Type'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel: {
usageType: {
sizeCategory: #S,
serviceQuality: #A,
dataClass:#CUSTOMIZING
},
representativeKey: 'ReasonForPhysInvtryDifference',
modelingPattern: #ANALYTICAL_DIMENSION,
supportedCapabilities: [#ANALYTICAL_DIMENSION, #CDS_MODELING_ASSOCIATION_TARGET, #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE],
sapObjectNodeType.name: 'ReasonForPhysicalInventoryDiff'
}
@VDM: {
viewType: #BASIC,
lifecycle.contract.type: #PUBLIC_LOCAL_API
}
@Metadata: {
ignorePropagatedAnnotations: true
}
define view I_PhysInvtryReasonCode
as select from t157d
association [0..1] to I_GoodsMovementType as _GoodsMovementType on $projection.GoodsMovementType = _GoodsMovementType.GoodsMovementType
association [0..*] to I_PhysInvtryReasonCodeText as _PhysInvtryReasonCodeText on $projection.GoodsMovementType = _PhysInvtryReasonCodeText.GoodsMovementType
and $projection.ReasonForPhysInvtryDifference = _PhysInvtryReasonCodeText.ReasonForPhysInvtryDifference
{
@ObjectModel.foreignKey.association: '_GoodsMovementType'
key bwart as GoodsMovementType,
@ObjectModel.text.association: '_PhysInvtryReasonCodeText'
key grund as ReasonForPhysInvtryDifference,
_PhysInvtryReasonCodeText,
_GoodsMovementType
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"T157D"
],
"ASSOCIATED":
[
"I_GOODSMOVEMENTTYPE",
"I_PHYSINVTRYREASONCODETEXT"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/