cancel
Showing results for 
Search instead for 
Did you mean: 

ADDING SAME ATTRIBUTES ON TWO DIFFERENT ENTITY IN SAP MDG

balu99
Explorer
0 Kudos

Hi Experts , I want add same attributes in two different entites how?

I had created a custom data model called ZB and created two entites MARA(type1) and MARC(type4). The attribute BESKZ(Type3) was created and Maintained realationship REFERENCING(0:N) both MARA , MARC, While maintaining the relationship to MARA i'm getting error.


Is that right way i followed? if not, please suggest me right way.

Accepted Solutions (1)

Accepted Solutions (1)

Hello.

BESKZ is not required as an attribute in your scenario. If you maintain it as referencing relationship, it will become an attribute itself.

Therefore, take it out from both entities at ATTRIBUTES level and keep only as referencing relationship.


Please also keep in mind that in the data model( T-Code MDG_DISPLAY_MODEL), the relationship will become your attribute, so please also change the relationship name in something different.
E.g. MARA -> PROCMARA

MARC -> PROCMARC

With that being said, your error will be resolved.
Nonetheless, the customizing you’ve done is not necessarily correct, you need other type of relationship like leading ones. Please refer to https://www.sap.com/documents/2019/08/94691341-5d7d-0010-87a3-c30de2ffd8ff.html
Also, try to understand SAP predelivered data model. It would make more sense

Cheers,

Alex

balu99
Explorer
0 Kudos

Thanks for helping and detail explanation.

Answers (0)