Professional Documents
Culture Documents
Brought to you by
For more tips, tutorials, Interview questions, certification questions, please visit
SAPTechnical.com
Object Oriented Programming – Persistent Objects
Objective
This table should contain 2 fields of type OS_GUID in addition to the GUID object attribute. The
first field is used to store the instance GUID while the other is used to store the class GUID.
In the next screen select the class type as Persistent Class and then hit Save Button.
For more tips, tutorials, Interview questions, certification questions, please visit
SAPTechnical.com
Object Oriented Programming – Persistent Objects
Goto->Persistence Representation
Give the table name. For e.g. ZSTUDENT03 and hit the enter button
For more tips, tutorials, Interview questions, certification questions, please visit
SAPTechnical.com
Object Oriented Programming – Persistent Objects
Table fields appear in the lower half of the tool screen. Double Click the table field and press the
button. Add the remaining fields.
While adding the field INST_GUID choose the assignment type as Object reference and for the attribute
type specify the class name for e.g. ZCL_PERSIST_03
For more tips, tutorials, Interview questions, certification questions, please visit
SAPTechnical.com
Object Oriented Programming – Persistent Objects
To assign a class indicator, select the corresponding table field of type OS_GUID by double-
clicking. Enter the name of the reference attribute for the attribute name.
Activate the Class. Press the Yes Button to activate the class actor as well.
For more tips, tutorials, Interview questions, certification questions, please visit
SAPTechnical.com
Object Oriented Programming – Persistent Objects
For more tips, tutorials, Interview questions, certification questions, please visit
SAPTechnical.com
Object Oriented Programming – Persistent Objects
.
CATCH CX_OS_OBJECT_NOT_FOUND .
CATCH CX_OS_CLASS_NOT_FOUND .
ENDTRY.
STUDENT ?= REF1.
STUDENT->SET_INST_GUID( STUDENT ).
COMMIT WORK.
For more tips, tutorials, Interview questions, certification questions, please visit
SAPTechnical.com