Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Short Dump with using GOS Object for Direct Attachment

Former Member
0 Kudos
545

Hi All,

I am using the GOS Objects to create an attachment without using the GOS Toolbar. I am getting the following short dump.

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 exactly following the steps as given in the below code sample

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/0e6b0d95-0a01-0010-4696-ca0a48de5fb3

Any help is greatly appreciated.

Thanks,

Geetha

3 REPLIES 3

Former Member
0 Kudos
104

Hi All,

Can anybody please help me with this issue?

Thanks,

Geetha

0 Kudos
104

Hi All,

The problem has been resolved, once I maintained the class name CL_GOS_SRV_ATTACHMENT_CREATE in the table SGOSATTR.

Thanks,

Geetha

0 Kudos
104

Dear Geetha,

I'm facing the same problem. I've created an object ZGOS. Could you please let me know how exactly to maintain entry

in the SGOSATTR table.

Thanks.