cancel
Showing results for 
Search instead for 
Did you mean: 

CDS Annotations: Activate DraftPersistence without ActivePersistence with NW 7.50

Former Member
0 Kudos

I am trying to activate following DDL Definition:

@OData.publish: true

@ObjectModel.compositionRoot: true
@ObjectModel.modelCategory: #BUSINESS_OBJECT
@ObjectModel.transactionalProcessingEnabled : true
//@ObjectModel.createEnabled: true
@ObjectModel.updateEnabled: true
@ObjectModel.deleteEnabled: true
//@ObjectModel.draftEnabled: true
@ObjectModel.writeActivePersistence: 'SAPTABLE'
@ObjectModel.writeDraftPersistence : 'SAPTABLE_DRAFT'

@Search.searchable: true

define view ZTEST_CDS as select from SAPTABLE {
...
}

But i get following errors:
BO check: Bus. Obj. XX has not. cat Draft ann cannot be sync
BO check: DB Table SAPTABLE_DRAFT doest not exist in active version

Is it possible to use draft persistence with NW750 or is it possible only with NW751?

But more important question for me, is it possible to use draft persistence without active persistence. In my example i would like to change the table 'SAPTABLE' via SAP Bapis and not directly via BOPF Framework. I hoped that it will it be done if i remove the Annotation @ObjectModel.writeActivePersistence. But in this case i get the error, that the annotation writeActivePersistence is required.

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

christianlechne
Active Contributor
0 Kudos

Hi Paul,

the draft concept is not available in SAP NetWeaver 7.50. It is announced to come with a Service Pack (1 or 2) of SAP NetWeaver 7.51 (Innovation Pack).

Best Regards

Christian

RieSe
Contributor
0 Kudos

Hi,

It's possible, but it's hard to find documentation for that. In 7.50 this topic is limited. SAP delivers the Fiori-App 'Manage Products' as part of the EPM-Model. This app has draft capabilities. 

Try somthing like this

@ObjectModel: {

modelCategory: #BUSINESS_OBJECT,

compositionRoot: true,

semanticKey: [ '<key>' ],

writeEnabled: true,

writeDraftPersistence: '<draft table>'

}



Bets regrads
Stefa