Skip to Content
0
Jun 26, 2018 at 11:13 AM

How does BOPF actions from CDS view get generated?

596 Views Last edit Jun 26, 2018 at 11:27 AM 2 rev

Hi all

I have a question about I_MaintNotificationTP CDS view. The CDS view is BOPF enabled, because of the @ObjectModel annotation on the header of the view:

@AbapCatalog.sqlViewName: 'IMAINTNTFTETP'
@EndUserText.label: 'Maintenance Notification Tech. Object'
@ObjectModel.compositionRoot: true
@ObjectModel.transactionalProcessingEnabled: true
@ObjectModel.writeDraftPersistence: 'MAINTNTFTECOBJ_D'
@ObjectModel.draftEnabled: true
@VDM.viewType: #TRANSACTIONAL
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #('TRANSACTIONAL_DATA')
@ObjectModel.createEnabled: true
@ObjectModel.updateEnabled: true
@ObjectModel.deleteEnabled: true
@ObjectModel.semanticKey: ['MaintenanceNotification']
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.entityChangeStateId: 'LastChangeDateTime'
define view I_MaintNotificationTP
  as select from I_MaintNotificationTechObj

As you can recognize on the annotation, it supports CRUD operations.

The transaction /n/BOBF/CONF_UI shows the auto generated structures of the I_MAINTNOTIFICATIONTP:

There are actions on the I_MAINTNOTIFICATIONTP Node elements.

Looking at the action PREPARATION definition:

You can see the /BOBF/CL_LIB_A_PREPARATION class.

Is the /BOBF/CL_LIB_A_PREPARATION class auto generated? If yes, where is it observed in the CDS view?

I tested the action PREPARATION with /BOPF/TEST_UI and fill the structure with values:

after the action execution the NOTIFICATIONTYPE field is filled with a value:

I tried to figure out, where the value get selected.
Has anyone an idea, where does it get selected?

Thanks

Attachments