Skip to Content
avatar image
Former Member

CDS Annotations: Activate DraftPersistence without ActivePersistence with NW 7.50

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 19, 2017 at 05:56 PM

    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

    Add comment
    10|10000 characters needed characters exceeded