Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP Objects - Persistente Service M:N Relationship

Former Member
0 Likes
729

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

1 ACCEPTED SOLUTION
Read only

ShyamPindiproli
Active Participant
0 Likes
682

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

4 REPLIES 4
Read only

ShyamPindiproli
Active Participant
0 Likes
683

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

Read only

0 Likes
682

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

Read only

ShyamPindiproli
Active Participant
0 Likes
682

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

Read only

Former Member
0 Likes
682

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