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

Table attributes and persistent classes

Former Member
0 Likes
950

Hello,

I spent the last two days searching for information on ABAP objects with table-like attributes in combination with persistent classes. I have found several sites explaining persistent classes, but nowhere is an example of objects with table-like attributes. On this site http://help.sap.com/saphelp_47x200/helpdata/en/d9/b84508bc9411d4b2e80050dadfb92b/content.htm, one of the last sentences is "You will need to map a structure (or structures) if you want a persistent object to contain table-like attributes". Nothing more.

Can anybody post a link to a site or forum thread where this topic is addressed? Are there sample programs in SAP with such classes?

Thank you,

Björn

5 REPLIES 5
Read only

LucianoBentiveg
Active Contributor
0 Likes
754

In SE80 go to "other object" in Dictionary tab you have "Table Type", you must create one of those, and use like atribute in class.

Good luck.

Read only

0 Likes
754

Hello,

it's not a problem to create table-like attributes. The question is: How can I use table-like attributes in persistent classes? How do I leverage the "structure mapping" offered by the Mapping Assistant of SE24?

Björn

Read only

0 Likes
754

Hi,

I'm also looking for information on this topic.

Like Björn I only found the help.sap.com link. Does anyone have further information about how to use structures to create table-like attributes?

Thanks in advance,

Sebastian

Read only

Former Member
0 Likes
754

Hello,

any news on this topis? I am also very interested in how it's possible to map the table-like attributes via standard mapping tools.

Basically (sorry for a bit off-topic) I started to get interested in this when I had to solve the popular (but with Persistence services non-trivial) issue of how to keep the list of multiple references to the dependent table entries. Apparently, everyone seems to give up and get used to the limitation of having only simple reference attribute for keeping the reference of one persistent instance of dependent table. I tried to search a lot, but no one seems to have it solved or at least have it published. But yes, there is a way how to do it and it was even published. It can be found here, in training material for TechEd 2010, in CD266, Execrcise no. 5. This solved my problem. Sorry if you are familiar with that one - otherwise enjoy!

http://sapteched.com/vworkshop/presentations/CD266/CD266_Exercise.pdf

Michal

Read only

0 Likes
754

Hey there..

is here still no more information about this!?

How did you solve the problem.

I need to combine a selfmade database table and its text table for translation in a persistent class?!

Greetings,

Andreas