Hi,
The view attachment list is working fne in 4.6c for the Z transaction. When I run the same transaction in ECC6, I am getting the 'GOS View Attachment List' icon, but when I click on
this icon, it is given short dump in ECC6 where as in 4.6c it is working fine. It shows the followin dump in ECC6.
SET HANDLER: Reference to handler object cannot be NULL.
The current ABAP program "CL_GOS_TOOLBOX_VIEW===========CP" had to be
terminated because it has
come across a statement that unfortunately cannot be executed.
When specification a handler for an event in the SET HANDLER statement,
the reference "IS_SERVICE-SERVICE" to the handler instance cannot be NULL.
Program CL_GOS_TOOLBOX_VIEW===========CP
Include CL_GOS_TOOLBOX_VIEW===========CM004
Row 69
Module type (METHOD)
Module Name DISPATCH_SERVICE
=============================================
When I click on SET HANDLER statement, control leads to method DISPATCH_SERVICE in class CL_GOS_TOOLBOX_VIEW.
=============================================
I am using the following code.
data: lo_container type ref to cl_gui_custom_container,
ls_object type borident.
ls_object-objtype = 'ZRECON'.
ls_object-objkey = gs_rec_all_scr-reconobj.
case ok_code.
when 'ATTACH'.
call method go_myobject->start_service_direct
exporting
ip_service = 'CREATE_ATTA'
is_object = ls_object
io_container = lo_container.
when 'LIST'.
call method go_myobject->start_service_direct
exporting
ip_service = 'VIEW_ATTA'
is_object = ls_object
exceptions no_object = 1
object_invalid = 2
execution_failed = 3
others = 4.
endcase.
The short dump given at
call method go_myobject->start_service_direct
Thanks a lot.
Zakir.