Skip to Content
0
Oct 31, 2012 at 12:28 PM

how to check what object type in a method code

1154 Views

Hi Colleagues,

A previous development has a code in method DO_INIT_CONTEXT for view ICCMP_BTSHEAD/BTSHeader.

This development is only relevant for Object Type BT116_SRVTK (Service Tickets).

However the view is the same for Object Type BT126_INR (Interaction Record) which is producing an exception.

Does anyone knows how to check what Object Type is being called so I can avoid calling the code relevant for service tickets?

I could not identify it checking the context:

cl_crm_ui_data_context_srv=>get_instance( )

Thanks in advance.

Renato