Skip to Content
0

CDS Annotations: Activate DraftPersistence without ActivePersistence with NW 7.50

Feb 06 at 08:39 AM

227

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.

3 Answers

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
Marcio Furuzawa Sep 10 at 11:32 PM
0

Hi Christian Lechner,

Do you now if the annotation @ObjectModel.transactionalProcessingEnabled also does NOT works in the SAP NetWeaver 750 ?

In the Eclipse environment I see that the font color is different from the others annotations. And when I activate my CDS view the BOF does not create.

first-screen.png

second-screen.png


first-screen.png (22.6 kB)
second-screen.png (44.4 kB)
Share
10 |10000 characters needed characters left characters exceeded
Marcio Furuzawa Sep 10 at 11:34 PM
0

Hi Christian Lechner,

Do you know if the annotation @ObjectModel.transactionalProcessingEnabledalso does NOT work in the SAP NetWeaver 750 ?

I saw in the Eclipse that the font color of this annotation is different from anothers, and the BOF is not created in the SAP NetWeaver.

first-screen.pngsecond-screen.png


first-screen.png (22.6 kB)
second-screen.png (44.4 kB)
Share
10 |10000 characters needed characters left characters exceeded