2012 Apr 17 11:06 AM
Hello Everybody,
In a lot of different books i have read, that there is an option in the Persistence service of ABAP Object to realize a table relationship with M:N. I have searched a lot in the last days in the internet to discover it how to program it. But my result was that I have found nothing. Is here anybody to can support me or knows a source where I can find some help
Thanks
Markus
2012 Apr 17 11:00 PM
Hello Markus,
Are you referring to making an CRUD operations (Create/Read/Update/Delete) data wherein multiple tables have a relationship between them ?
There is a tool called the Mapping Assistant which is meant to link the Relational Database tables to the Object Oriented Persistent Classes. Make use of "Multi-Table" mapping or "Structure Mapping"
http://help.sap.com/saphelp_nw73/helpdata/en/49/e7087d1192088ce10000000a421937/frameset.htm
Regards,
Shyam
2012 Apr 17 11:00 PM
Hello Markus,
Are you referring to making an CRUD operations (Create/Read/Update/Delete) data wherein multiple tables have a relationship between them ?
There is a tool called the Mapping Assistant which is meant to link the Relational Database tables to the Object Oriented Persistent Classes. Make use of "Multi-Table" mapping or "Structure Mapping"
http://help.sap.com/saphelp_nw73/helpdata/en/49/e7087d1192088ce10000000a421937/frameset.htm
Regards,
Shyam
2012 Apr 18 4:33 PM
But there i have no found no option to built a real M:n relatuionship with set and getter methods.
Do you know how to make it or to realize it?
thanks
markus
2012 Apr 19 12:54 AM
You can create a "Maintainance View" and use that in the Persistence Mapping Step. This way you canassign several database tables to one persistent class.
Regards,
Shyam
2012 Apr 19 7:23 AM
That means, i will create a structure where all my subtable are included?
Table 1 Pizza: (ZPizza)
n:M
Table2 Backer (Structure ZBacker)
How i should implement it. I can't found how you mean that with Maintainance View.
Thanks
MARKUS