2025 Mar 04 7:36 AM - edited 2025 Mar 04 7:59 AM
Hello all,
I am currently developing an RAP (Restful) App.
Relevant architecture: Managed scenario, draft enabled, multiple associations and multiple compositions are present. CRUD Operations have been mapped accordingly and strict( 2 ) is active for the Behavior Definition.
I first had an issue regarding the CREATE Button stemming from the managed scenario Behaviour definition, which did not generate. After some research it appeared to be based on the fact that for OData Version 4, CREATE and EDIT Buttons can only be generated provided draft is enabled.
Following that, I have just finished generating the Draft Tables necessary for all my compositions (which are used for multiple lineitem sections on the object page) and now come to an error message, which is hindering my progress.
The message is:
"Error in entity '(Projection_View_Name(CDS))': Projected association _AssociationName of Projection_View_Name is not draft enabled."
>>> Clicking into the message navigates to the Service Binding, which (since that message appeared) is not published anymore and also shows a error message next to its name.
Based on the message I would think, that I would have to specifically define the given association inside the Projection View to be draft enabled, but I am not aware of the syntax. How could this be achieved?
Thanks in advance for every response!
04.03.2025 - EDIT:
If the Behaviour Projection it supplied with the syntax "use association _AssociationName { with draft; }" then the message results in: "Error in entity 'Projection_View_Name(CDS)': Entity Projection_View_Name: Association _AssociationName cannot be draft enabled."
Request clarification before answering.
Hi colleagues,
I was facing the same issue in my project. I was able to solve it with help of ZFE_TRAVEL_XXXXXX example and use of analogy. Since there is no more details about your project, there are some points to follow:
These steps helped me to solve the issue. More about it probably can be found by inspecting the ZFE_TRAVEL_XXXXXX (namely composition between TRAVEL and BOOKING ) and further googling.
Hope this helps.
Regards,
Radim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To enable draft creation for an associated entity, use the syntax below:
association _Booking { create ; with draft; }Please also refer to the following document:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 18 | |
| 7 | |
| 6 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.