2014 Apr 09 5:25 PM
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
2014 Apr 09 5:52 PM
Hi Venkat,
are you mapping the class to a Transparent Table, don´t you? Maybe are missing part of the table key...
2014 Apr 09 5:52 PM
Hi Venkat,
are you mapping the class to a Transparent Table, don´t you? Maybe are missing part of the table key...
2014 Apr 10 7:05 AM
Hi Antonio,
The key fields are already included..Is anything else required.
Thanks,
Venkat
2014 Apr 13 2:13 PM
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
2014 Apr 13 3:15 PM
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
2014 Apr 13 3:47 PM
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
2014 Apr 13 10:05 PM
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:
MANDT | MANDT | CLNT | 3 | 0 | Mandante | |||
EXP_GUID | ZGC_EXP_GUID | RAW | 16 | 0 | ZGC: Expediente - Id Interno |
Related class:
MANDT | MANDT | CLNT | 3 | 0 | Mandante | |||
ACC_GUID | ZGC_ACC_GUID | RAW | 16 | 0 | ZGC: GUID de una acción | |||
EXP_GUID | ZGC_EXP_GUID | RAW | 16 |
It worked for me... 😕