Application Development and Automation 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: 
Read only

se24 - test - create instance button is missing

bhakti2
Active Participant
0 Likes
2,303

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
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,550

Does the class contain a method like get_instance( )?

Regards,
Raymond

Read only

0 Likes
1,550

thanks for the answer, ill check accordingly.

Read only

Sandra_Rossi
Active Contributor
1,550

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.

Read only

0 Likes
1,550

thanks for the answer, ill check accordingly.

Read only

1,550

Take your time, I'm very patient 😉

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,550

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.

Read only

bhakti2
Active Participant
0 Likes
1,550

thanks for the answer, ill check accordingly.