Skip to Content
0
Former Member
Apr 14, 2010 at 07:29 AM

Unable to activate persistent class due to mapping of one field missing

597 Views

Hey ABAP OO masters,

i just took that e-learning course on persistent objects and i liked it a lot. So i wanted to create my own example to get a bit deeper into the subject.

My plan was to create a persistant class on Table VBFA, since i need to use this table a LOT during my everydays work.

So i created the class(es) and did my persistancy mapping. I wasnt interested in one field so i didnt map it.

When i then wanted to activate my class it tells me that the mapping of at least one field is missing.

I´m curios, shouldnt it be possible to just have the fields i want/need in persistant object?

Anyway i thought to myself, it is a TESTCASE so just map the field and go on...

Problem is that the last Field i didnt map, has no data type. Well sure it has, but it has no dataelement but obviously a built in Char 1 data type.

So when i double click it to map the field and hit the mapping button, i get an error message that there NEEDS to be a type since it´s a reference by value. Problem is that either the TYPE field and the field where i could switch to something else than ref by value are grey, i cant change them, so for me it seems i´m stuck here, cant move forward nor backwards.

Any ideas?