on 03-09-2022 9:56 AM
Hello Experts,
I have ran into the same problem mentioned here in these posts.
ABAP Restful Programming Model Unmanaged Draft generate draft key | SAP Community
Draft table Key Field Design in ABAP Restful Application Programming Model RAP | SAP Community
But the question seems to be unanswered. In my scenario, I am using non UUID key entity and when a draft is created , one cannot (or in the whole system ) create another draft. The draft gets greated with a null key and understandebly another one cannot be created. Is there any solution for this problem ?
I am thinking of a workaround solution like update the draft table when 'Keep Draft' is pressed, with a new key value. How to trigger the action 'Keep Draft' in our source code ? or are there any other workarounds ?
Please check out my following blog post:
How to develop an unmanaged draft enabled RAP business object with semantic keys | SAP Blogs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Philip,
If any other solution is not found, then you can think of filling that temp guid by generating using a cutover activity program. One time activity only.
It is not a key field in main table hence no issue at the end and no impact.
Also these existing documents can be accessible in list/object page.
best wishes,
Ramjee Korada
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Philip,
I also dont have an answer but I have a workaround which is simple and less effort.
my example :
Table : zrkt_proc_doc
Advantages:
Restrictions:
your table must be enhancible to append an include with temp_guid. Ex: EKKO also enhancible
I could not imagine any disadvantages.
Best wishes,
Ramjee Korada.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ramjee Korada,
I have a thought about such a solution . But the issue is that my base database table is a an old one with existing entries.
So if i add GUID as the key it will not find any more entries when I traverse to the object page. Becuase the already entered entries have no GUIDS attached.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.