01-11-2017 8:41 PM
hi, I am on SRM 7.0. my simple question is as follows. I goto se24, for class
/SAPSRM/CL_PDO_BASE and try to run it from se24. the Create Instance button is missing. Kindly help to understand how do I test it ?
to be more specific, I need test the method
/SAPSRM/IF_PDO_ITEM_LIST~GET_CHANGE_VERSION_GUID
thanks in advance
bhakti
01-12-2017 6:47 AM
Does the class contain a method like get_instance( )?
Regards,
Raymond
05-13-2018 11:49 PM
01-13-2017 7:07 AM
There is no button "Create instance" because the class pool is defined as "CREATE PRIVATE" or "CREATE PROTECTED" in the CLASS (definition) statement of it (see the CLASS ABAP documentation). It means that an instance may be created only by calling a public static method of the class (for instance, there's often a GET_INSTANCE method, as says Raymond), or by doing it from a subclass if the creation is protected.
05-13-2018 11:49 PM
05-14-2018 7:43 AM
01-13-2017 8:41 AM
I goto se24, for class /SAPSRM/CL_PDO_BASE and try to run it from se24. the Create Instance button is missing. Kindly help to understand how do I test it ?
IMHO you should write ABAPUnit Tests to "test" the class, unless SAP has already provided those. You shouldn't be testing directly via SE24.
05-13-2018 11:49 PM