
@ObjectModel.compositionRoot: true
@ObjectModel.modelCategory: #BUSINESS_OBJECT
@AbapCatalog.sqlViewName: 'zbo_mara1'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'marac'
@ObjectModel.writeActivePersistence: 'mara'
@ObjectModel.transactionalProcessingEnabled: true
@ObjectModel.createEnabled: true
@ObjectModel.updateEnabled: true
@ObjectModel.deleteEnabled: true
@OData.publish: true
define view Zbo_mara as select from mara as ma
association [0..*] to Zbo_marc as mc on $projection.matnr = mc.matnr
association [0..*] to Zekpo as ek on $projection.matnr = ek.matnr
{
ma.mandt,
ma.matnr,
ma.pstat,;
/* Associations */
@ObjectModel.association.type: [#TO_COMPOSITION_CHILD ]
mc,
ek
}
@AbapCatalog.sqlViewName: 'Zbo_marc1'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'material detail data'
@Search.searchable: true
@ObjectModel.semanticKey: [ 'Matnr', 'Werks' ]
@ObjectModel.representativeKey: 'Werks'
@ObjectModel.writeActivePersistence: 'marc'
@ObjectModel.createEnabled: true
@ObjectModel.deleteEnabled: true
@ObjectModel.updateEnabled: true
@ObjectModel.transactionalProcessingEnabled: true
define view Zbo_marc as select from marc
association [0..*] to Zbo_mara as _Ma on $projection.matnr = _Ma.matnr
association [0..*] to Zekpo as ek on $projection.werks = ek.werks
{
@Search.defaultSearchElement: true
key matnr,
key marc.werks,
@ObjectModel.association.type: [#TO_COMPOSITION_PARENT,#TO_COMPOSITION_ROOT]
_Ma,
@ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
ek
}
@AbapCatalog.sqlViewName: 'zekpo_1'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'purchase order'
@Search.searchable: true
@ObjectModel.semanticKey: [ 'matnr' ]
@ObjectModel.representativeKey: 'matnr'
@ObjectModel.writeActivePersistence: 'ekpo'
@ObjectModel.createEnabled: true
@ObjectModel.deleteEnabled: true
@ObjectModel.updateEnabled: true
@ObjectModel.transactionalProcessingEnabled: true
define view Zekpo as select from ekpo
association [0..*] to Zbo_mara as _Mc on $projection.matnr = _Mc.matnr
association [0..*] to Zbo_marc as _mrc on $projection.matnr = _mrc.matnr
{
ebeln,
@Search.defaultSearchElement: true
werks,
matnr,
@ObjectModel.association.type: [#TO_COMPOSITION_ROOT]
_Mc,
@ObjectModel.association.type: [#TO_COMPOSITION_PARENT]
_mrc
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
2 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 |