Skip to Content

se24 - test - create instance button is missing

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jan 13, 2017 at 07: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.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 12, 2017 at 06:47 AM

    Does the class contain a method like get_instance( )?

    Regards,
    Raymond

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 13, 2017 at 08: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.

    Add comment
    10|10000 characters needed characters exceeded