Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

se24 - test - create instance button is missing

bhakti2
Active Participant
0 Kudos

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

7 REPLIES 7

raymond_giuseppi
Active Contributor
0 Kudos

Does the class contain a method like get_instance( )?

Regards,
Raymond

0 Kudos

thanks for the answer, ill check accordingly.

Sandra_Rossi
Active Contributor

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.

0 Kudos

thanks for the answer, ill check accordingly.

Take your time, I'm very patient 😉

SuhaSaha
Advisor
Advisor
0 Kudos

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.

bhakti2
Active Participant
0 Kudos

thanks for the answer, ill check accordingly.