Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

error regarding events

Hi All,

I am getting the below error when the code provided below is getting executed. Am getting error at

call method G_TREE->SET_REGISTERED_EVENTS statement.

The error is

"Access not possible using 'NULL' object reference"

Please refer this code....

EVENT-EVENTID = CL_GUI_SIMPLE_TREE=>EVENTID_NODE_DOUBLE_CLICK.

EVENT-APPL_EVENT = ' '.

append EVENT to EVENTS.

call method G_TREE->SET_REGISTERED_EVENTS

exporting

EVENTS = EVENTS

exceptions

CNTL_ERROR = 1

CNTL_SYSTEM_ERROR = 2

ILLEGAL_EVENT_COMBINATION = 3.

set handler

G_APPLICATION->HANDLE_NODE_DOUBLE_CLICK

for G_TREE.

What could be the mistake i am commiting?

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question