0

CDS Annotations: Activate DraftPersistence without ActivePersistence with NW 7.50

Feb 06 at 08:39 AM

157

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Christian Lechner Moderator SAP Mentor Feb 19 at 05:56 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded