cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

The key value is already in use in Draft functionality

ankahit
Participant
0 Kudos
1,982

Hi All,

 
I have two key fields in a managed application that are draft-enabled. One of these key fields involves user selection, which I manage through unmanaged saves. However, I'm facing an issue where the draft functionality doesn't let me add more than one entry. This is because the draft table detects duplicate keys when the data for the other field hasn't been added yet. How can I ensure that the draft feature allows me to add multiple entries?

Accepted Solutions (1)

Accepted Solutions (1)

MioYasutake
SAP Champion
SAP Champion

@ankahit 

I think your draft table needs to have 'draftuuid' as a key field. Please find the link below:

https://help.sap.com/docs/ABAP_PLATFORM_NEW/fc4c71aa50014fd1b43721701471913d/754482eb5e624aada5d1769...

ankahit
Participant
0 Kudos
Hi @mio, I tried late numbering. Not sure if it is right approach or not but it solved my query. Thanks!

Answers (0)