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

Persistent Classes

Former Member
0 Likes
1,570

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
Read only

antonio_lopezs
Explorer
0 Likes
1,463

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
Read only

antonio_lopezs
Explorer
0 Likes
1,464

Hi Venkat,

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

Read only

0 Likes
1,463

Hi  Antonio,

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

Thanks,

Venkat

Read only

Former Member
0 Likes
1,463

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

Read only

Former Member
0 Likes
1,463

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

Read only

0 Likes
1,463

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

Read only

0 Likes
1,463

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... 😕