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 problem

aakash_neelaperumal2
Active Participant
0 Likes
324

I created a persisent classes with fields from LFA1 and LFB1...But the class is not getting activated - it is giving an information message saying "NO mapping defined in the table LFA1 for the key field BUKRS. I have activated all other classes up in the hierachy, but the CL class is not getting activated. Any help in this regard is highly appreciated

2 REPLIES 2
Read only

Former Member
0 Likes
288

I face the same problem in 4.7. That why I was searching for some solution. If I have some solution I will reply. Bye, Peter

Read only

Former Member
0 Likes
288

Hello Aakash,

I was of the understanding that I can take only few of the table fields and map it to class attributes. So I took only 6 fields of the table SFLIGHT and mapped it to the corresponding 4 attributes of the persistent class. So I was getting the message that 'There is no mapping defined for one or more fields'.

But, you have to define class attributes corresponding to all fields of the table and mapped accordingly all table fields. In such way I could activate the class.

Be carefull by activating:

1. Activate ZCL-class only as 1st (automat. activ. will be also ZCB-part).

2. Activate ZCA-class as the 2nd separately.

If it helps, think on the rewarding of the points. It is shame, I have no one. Peter