Skip to Content

Table name for 'Program name of method' and 'Method name'

As we know, each method method contains different program name with ext. like "====CM0001" etc., Where can I find this program name of method in database tables?

Note: Program names are in REPOSRC with type as 'I' and name as "CLASS NAME======CMXYZ". But here we can not decide with program name belongs to which class!

Thanks,

Naveen.I

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jul 19, 2011 at 01:47 PM

    Use FM SEO_CLASS_GET_METHOD_INCLUDES. Provide your class name and you will get the method names with include name.

    Regards,

    Naimesh Patel

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on 11 hours ago

    Check the table SEOCOMPO for all class method definitions.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on 12 hours ago
    -1

    Using FM SEO_CLASS_GET_METHOD_INCLUDES as this program you can get relationship between Class-Method and Program.

    creates a se38 programa, copy & paste , modify :) with yours classes, compile and run. happy coding

    *&---------------------------------------------------------------------*
    *& Report ZPRUEBA_ES
    *&---------------------------------------------------------------------*
    *&
    *&---------------------------------------------------------------------*
    REPORT zprueba_es.
    
    CLASS lc_includes DEFINITION.
      PUBLIC SECTION.
        DATA: gt_seoclskey TYPE STANDARD TABLE OF seoclskey.
        DATA: gt_data_includes_all  TYPE  seop_methods_w_include.
        METHODS:
          get_method_programs,
          set_class_names,
          display_result,
          main.
    ENDCLASS.
    
    CLASS lc_includes IMPLEMENTATION.
      METHOD get_method_programs.
        DATA: lt_data_includes  TYPE  seop_methods_w_include.
        LOOP AT gt_seoclskey INTO DATA(ls).
          CALL FUNCTION 'SEO_CLASS_GET_METHOD_INCLUDES'
            EXPORTING
              clskey                       = ls
            IMPORTING
              includes                     = lt_data_includes[]
            EXCEPTIONS
              _internal_class_not_existing = 1
              OTHERS                       = 2.
          IF sy-subrc = 0.
            APPEND LINES OF lt_data_includes TO gt_data_includes_all.
          ENDIF.
        ENDLOOP.
      ENDMETHOD.
      METHOD set_class_names.
        APPEND 'Z10CL_BAPI_ACC_DOCUMENT_POST_I' TO gt_seoclskey .
        APPEND 'Z22CL_RESPUESTAS_LIBERACION_IN' TO gt_seoclskey .
      ENDMETHOD.
      METHOD display_result.
        DATA: lo_table TYPE REF TO cl_salv_table.
        DATA: lo_functions TYPE REF TO cl_salv_functions_list.
        DATA: lo_display TYPE REF TO cl_salv_display_settings.
        DATA: lo_layout TYPE REF TO cl_salv_layout.
        DATA: lv_key TYPE salv_s_layout_key.
        TRY .
            cl_salv_table=>factory( IMPORTING
              r_salv_table = lo_table
            CHANGING
              t_table =  me->gt_data_includes_all[] ).
          CATCH cx_salv_msg.
    
        ENDTRY.
        lo_functions = lo_table->get_functions( ).
        lo_functions->set_all( abap_true ).
        lo_display = lo_table->get_display_settings( ).
        lo_display->set_striped_pattern( cl_salv_display_settings=>true ).
        lo_display->set_list_header( 'Result' ).
    
        lo_layout = lo_table->get_layout( ).
        lv_key-report = sy-repid.
        lo_layout->set_key( lv_key ).
        lo_layout->set_save_restriction( cl_salv_layout=>restrict_none ).
        lo_table->display( ).
      ENDMETHOD.
      METHOD main.
        me->set_class_names( ).
        me->get_method_programs( ).
        me->display_result( ) .
      ENDMETHOD.
    ENDCLASS.
    
    START-OF-SELECTION.
    
      NEW lc_includes( )->main( ).
    
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.