cancel
Showing results for 
Search instead for 
Did you mean: 

SALV set_dialog_settings_as_popup

AlexGiguere
Contributor
0 Kudos

I'm having a problem with the method set_dialog_settings_as_popup of the class cl_salv_wd_config_table.

In the ALV toolbar, I'm trying to display the settings as a popup with this method, the popup comes up, but when I close it, I got a short dump, is there an ICF node that I need to activate for that?

Here is my code:

In the component controller WDDOINIT method:

  • Create the used component

lo_cmp_usage = wd_this->wd_cpuse_usage_alv_1( ).

IF lo_cmp_usage->has_active_component( ) IS INITIAL.

lo_cmp_usage->create_component( ).

ENDIF.

  • Get a reference to the interface controller of the ALV component

lo_interface = wd_this->wd_cpifc_usage_alv_1( ).

lo_alv_table = lo_interface->get_model( ).

lo_alv_table->if_salv_wd_std_functions~set_dialog_settings_as_popup( abap_true ).

Here is the error analysis from the short dump

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 "DO_HANDLE_ACTION_EVENT" "(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 (variable: "ME->ROOT_COMPONENT->EXCEPTION_MANAGER").

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.

thanks

Alex

Accepted Solutions (0)

Answers (1)

Answers (1)

AlexGiguere
Contributor
0 Kudos

FYI - This bug only occurs on SP15, it has been corrected with OSS note 1139658,

Alex