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: 

Persistent Classes

Former Member
0 Kudos
639

Hi Experts,

I was in the process of defining mapping using Mapping Assistant Tool, I mapped the Class to the custom ABAP table. I was mapping attributes  - I was not able to find Class Identifier in drop-down for the particular attribute- I found only Object reference in drop down. I'm not able to activate the Class because of this.

Any ideas?

Thanks in advance,

Venkat

1 ACCEPTED SOLUTION

antonio_lopezs
Explorer
0 Kudos
532

Hi Venkat,

are you mapping the class to a Transparent Table, don´t you? Maybe are missing part of the table key...

6 REPLIES 6

antonio_lopezs
Explorer
0 Kudos
533

Hi Venkat,

are you mapping the class to a Transparent Table, don´t you? Maybe are missing part of the table key...

0 Kudos
532

Hi  Antonio,

The key fields are already included..Is anything else required.

Thanks,

Venkat

Former Member
0 Kudos
532

HiExperts,

I'm actually not able to get the foreign key relationship between two Persistent classes derived from Transparent tables..If I give class reference it says field does not exist in table.if i give only object reference it says no class reference defined..pretty much got myself in knots..Help!

Thanks in advance!

Best,

Venkat

Former Member
0 Kudos
532

Hi Venkat,

Please go through the detailed documentation of implementation of persistent class and its mappings.

http://scn.sap.com/docs/DOC-41511

Hope it will be helpful

Regards,

Kannan

0 Kudos
532

Hi Kannan,

Thanks! That was for local classes..i'm working on Global classes..

Any info on global persistent class foreign key relationship.

Thanks,

Venkat

0 Kudos
532

Hi Venkat, I don´t know if I´m understanding correctly your problem, but I´m going to expose how I used the persisten classes in my last project.

I mapped the table to the persisten class. I chose 2 keys: Business key (like empno, or vbeln) and technical key (I used a guid field, just like CRM). To define a foreign key relation, just put the guid as attribute of the transparent table and It worked in the mapping of the other persistent class....

Original class:

MANDTMANDTCLNT30Mandante
EXP_GUIDZGC_EXP_GUIDRAW160ZGC: Expediente - Id Interno

Related class:

MANDTMANDTCLNT30Mandante
ACC_GUIDZGC_ACC_GUIDRAW160ZGC: GUID de una acción
EXP_GUIDZGC_EXP_GUIDRAW16

It worked for me... 😕