cancel
Showing results for 
Search instead for 
Did you mean: 

How find which method-class will be selected?

Former Member
0 Kudos

Hello sap gurus,

I have another question:

There are 2 the same methods: customer_exit_event_save, BUT in different classes.

One for the class CL_EX_BCA_PO_CUSTOMER_EXIT, another from the class ZCL_IM_BCA_PO_CUSTOMER_EXI

Not fully clear how the system decide which exactly method should be executed.

Hereby having executed a code(see below) in one case we are executing a method: customer_exit_event_save from the class CL_EX_BCA_PO_CUSTOMER_EXIT,

In the another case u2013 the same method customer_exit_event_save, BUT from the class ZCL_IM_BCA_PO_CUSTOMER_EXI !!!

IF NOT g_exit_obj_cust_exit IS INITIAL.

CALL METHOD g_exit_obj_cust_exit->customer_exit_event_save

EXPORTING

flt_val = l_flt_country

i_header = l_str_po_hd

i_sender = l_str_po_snd

i_receiver = l_tab_po_rcv

i_payment_note = l_tab_po_nt

i_item_info = l_str_item_info

IMPORTING

e_header = l_str_po_hd

e_sender = l_str_po_snd

e_receiver = l_tab_po_rcv

e_note = l_tab_po_nt

EXCEPTIONS

raised_customer = 1.

Do we have any table, where spesific method is selected?

Many thanks in advance.

Edited by: Paul Birch on Oct 16, 2008 2:50 PM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

thanks

Former Member
0 Kudos

Hello,

You may execute SE24 to goto Class definition for both classes, go to methods tab and drilldown into the code of the method. Apply a break-point here in both cases and execute your main program which calls the method. Based on the break-point hit, you can decide as to which global class method was called.

Hope this helps.

Thanks,

Venu