‎2017 Jan 11 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
‎2017 Jan 12 6:47 AM
‎2018 May 13 11:49 PM
‎2017 Jan 13 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.
‎2018 May 13 11:49 PM
‎2018 May 14 7:43 AM
‎2017 Jan 13 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.
‎2018 May 13 11:49 PM