Skip to Content
0
Former Member
Feb 27, 2014 at 09:09 AM

[PERSISTENCE CLASS] Method : CREATE_PERSISTENT

163 Views

Hi Gurus,

I created a persistence class quite correctly following a tutorial. Afterwards, when I call the method to create my persistence class through "CREATE_PERSISTENT" method from my Actor class, I do not have any attributs of the class available.

Please, see my Class Representation:

The code generated when using "create_persistent":

DATA: actor TYPE REF TO zca_persis_test,
student TYPE REF TO zcl_persis_test,
ref1 TYPE REF TO object.

actor = zca_persis_test=>actor.

CALL METHOD actor->create_persistent
RECEIVING
* result = " Newly Generated Persistent Object
.
* CATCH cx_os_object_existing. " Object Services: Object Exists

In fact, I am expecting to have this generated code:

CALL METHOD actor->create_persistent
RECEIVING

NOM =

PRENOM =

INSCRIPTION =

AGE =
* result = " Newly Generated Persistent Object
.
* CATCH cx_os_object_existing. " Object Services: Object Exists

Have you got some idea regarding why all my attributs seems to be in private ?

Best regards.

Attachments

screenshot1.1.jpg (228.0 kB)