Instead of obj1 use obj:
*Call the instance method
obj->a = '30'. " This value i am not getting in output.
CALLMETHOD obj1->display.
Use:
*Call the instance method
obj->a = '30'. " This value i am not getting in output.
CALLMETHODobj->display.
Regards