Skip to Content
Aug 14, 2018 at 12:42 PM

UI5 + Draft + BOPF Validation + ABAP



i am using Draft for one of the applications written in UI5. I am using DraftController for creating and managing Draft versions. Now, i am trying to create an item for an existing draft entity and execute a validation to pre-check if the number chosen by the user is correct, if not i would like to issue an error to UI and force the user to provide other item number. The validaion is executed and the check is done and an error should be thron so i add the NODE id to the ET_FAILED_KEY internal table + issuing message. This is however not working and the Draft entry is created. Am i missing somewhere here or it is not possible to fail a draft item being created (which would not make sense in my opinion). Any suggestions would be highly appreciated.