How to create an object dynamically in SAP ABAP

Name of the class: ZTC_CHECK_CLS.

Name of the method: METHOD_ONE.

DATA lr_check_cls TYPE REF TO object.

CREATE OBJECT lr_check_cls TYPE (‘ZTC_CHECK_CLS’).

CALL METHOD (‘ZTC_CHECK_CLS’)->(‘METHOD_ONE’).

If the class ‘ZTC_CHECK_CLS’ is not available in your repository. it will throw a runtime error as the object is created only during the runtime.