cancel
Showing results for 
Search instead for 
Did you mean: 

Key assignment error in SAP MDG

mohd_riyajuddin
Participant
0 Kudos

Hi,

1> created a custom data model with Type 1 Entity having key assignments (Key Cannot be changed; No Internal key assignment)

2> Save and activated the data model.

3> But later when I go and change Type 1 entity (key assignment Key can be changed; no internal key assignment) Its giving error not allowing to chnage and activate the data model.

Data model XX is already active and entity type XXXXXX is contained in the active version. In this case, you may no longer change the type of key assignment for entity type XXXXXX.

Please let me know how to get rid of this.

Regards, Riyaj.

Accepted Solutions (1)

Accepted Solutions (1)

loga201
Contributor
0 Kudos

Try to delete active version of the data model using tcode MDG_DELETE_MODEL or report USMD_DELETE_DATA_MODEL ....Later try to edit inactive version and activate the same.

One more option I can take think of is copy the old one nd create a new one ...

mohd_riyajuddin
Participant
0 Kudos

Hi,

Your are right in case of custom data model its fine. But still struggling how to handle this in standard data model. Done the mistake on key assignment. Not able to change the key.

If you have any any Idea on this please let me know.

Regards,

Riyaj

Answers (1)

Answers (1)

loga201
Contributor
0 Kudos

hi,

As far as I know it cannot be changed for active version so delete and create new one.

Thanks

mohd_riyajuddin
Participant
0 Kudos

Hi,

But deleting a complete data model and again recreating it a tough job.

Suppose If we have done same thing in standard data model by creating custom entity then how we can handle it.

Regards,

Riyaj