on 07-10-2020 6:34 AM
Request your help to disable certain feature of draft functionality. Created a BOPF-CDS view list page, where draft functionality was enabled. Now requirement is to remove draft feature in a way that when creating a new item if not saved it should not save a draft and on edit of an item if changes are not saved it should not save a draft.
Temporary version is not required.
1. Consumption view: @ObjectModel:draftEnabled:True was removed
2. Interface view, Changes tried were removing draftenabled:True and writeDraftPersistence: 'Ztable and addition of
writeActivePersistence: Ztable.
/*transactionalProcessingEnabled: true,
/* draftEnabled: true,--Commented
/*writeDraftPersistence: 'Ztable_D',--commented
writeActivePersistence : 'Ztable',
semanticKey: ['key'],
Above changes didn't made any impact and are bringing inconsistencies in BOPF.
Regards
Mohinder
I don't think it works like that, you probably have to create a new consumption view for this. It already has generated draft class and some other linking, which will not be reverted by commenting the draft annotations.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mohinder Singh Chauhan It should be done via the filter only as per my understanding.. If the draft entries are not filtered, then probably sap is intentionally displaying them at the top because they are still being edited by the user, you can always exclude the draft entries using the draft status filter.
note: you can close this question by marking this answered and open another question with this query, so it might attract more/new people.
Thanks Mahesh. I am recreating everything without draft model, and will transfer all logic from Draft enabled object to newer one without draft, earlier all actions were taken care in Draft class itself now I need to validate how to handle actions like 'Create', Delete, Copy.
Regards
Mohinder
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.