Hi,
I've developed one view to show the Invoice-No. in ALV. One column of that ALV - VBELN - has been made as LINK to read the click event. Clicking on this was fetching respective smartforms in other view. Earlier, this was running fine.
But, one of our team-mate has done some editing and does not remember all those. Now, when we run the application, ALV for Invoice-No are coming up with hyperlink created on VBELN. But, when we click on that VBELN, it gives dump stating as follows -
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
caught in
procedure "ONCLICK" "(METHOD)", nor was it propagated by a RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
You attempted to use a 'NULL' object reference (points to 'nothing')
access a component.
An object reference must point to an object (an instance of a class)
before it can be used to access components.
Either the reference was never set or it was set to 'NULL' using the
CLEAR statement.
Although, I tried to debug and what I can get from this is -- onclick event is not being read because of the lack of object reference. However, parameter for WDEVENT having associated type CL_WD_CUSTOM_EVENT and R_PARAM having type IF_SALV_WD_TABLE_CLICK been declared in the view. What else is missing..?
Your guidelines are required.
Thanks.
Kumar Saurav.