Skip to Content

Disable draft functionality in Custom Fiori List report

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jul 10, 2020 at 07:01 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • 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.

  • Posted on Jul 13, 2020 at 06:49 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.