cancel
Showing results for 
Search instead for 
Did you mean: 

Disable draft functionality in Custom Fiori List report

former_member517243
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

maheshpalavalli
Active Contributor

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.

former_member517243
Participant
0 Kudos

Will disabling those classes would do?

Regards

Mohinder

maheshpalavalli
Active Contributor
0 Kudos

abap_instance From my experience, not sure if it is even possible and btw, this scenario(manual draft class manipulation) is also not officially supported by SAP. Last time I debugged, there are some tables, which has this relationship and all and i couln't find a way to delete them all.

former_member517243
Participant
0 Kudos

Hi Mahesh,

Is there a way to hide displaying certain rows on list page from front end? We know content of rows and their pattern but from CDS I cannt filter that particular row(Coming from ActiveDraft) table.

Regards

Mohinder

maheshpalavalli
Active Contributor
0 Kudos

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.

Answers (1)

Answers (1)

former_member517243
Participant
0 Kudos

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