cancel
Showing results for 
Search instead for 
Did you mean: 

How to obtain Reference to CL_SALV_WD_C_TABLE

Faaiez
Advisor
Advisor
0 Kudos

I an ABAP WD view the following statement is executed:

lr_salv_wd_table = wd_This->wd_cpIfc_ALV_GRAPHICS_DATA( ).

It returns the reference to a class pool in lr_salv_wd_table.

The field lr_salv_wd_table is a TYPE REF TO iwci_salv_wd_table.

Some of the values of this class pool are as follows:

OBJECT

CLF_COMPONENTCONTROLLER_CTR

IF_WDR_CONTROLLER_DELEGATE~WD_ACTIONS Standard Table[0x2(16)]

IF_WDR_CUSTOM_DELEGATE~WD_ACTIONS Standard Table[0x2(16)]

IF_WDR_COMPONENT_DELEGATE~WD_ACTIONS Standard Table[0x2(16)]

IG_COMPONENTCONTROLLER~WDCTX_CONTEXT CONTEXT

IG_COMPONENTCONTROLLER~WDCTX_DATA DATA

IG_COMPONENTCONTROLLER~WDCTX_DATA_XML DATA_XML

IG_COMPONENTCONTROLLER~WDCTX_END_OF_LIST END_OF_LIST

IG_COMPONENTCONTROLLER~WDCTX_FILTER_VALUES FILTER_VALUES

IG_COMPONENTCONTROLLER~WDCTX_FUNCTION_ELEMENTS FUNCTION_ELEMENTS

IG_COMPONENTCONTROLLER~WDCTX_TOP_OF_LIST TOP_OF_LIST

IG_COMPONENTCONTROLLER~CONFIG_LOADED_OLD

<b> IG_COMPONENTCONTROLLER~R_COMPONENT </b>

IG_COMPONENTCONTROLLER~R_WD_LAYOUT_UI

IG_COMPONENTCONTROLLER~SET_DATA_CALLED

IG_COMPONENTCONTROLLER~T_EVENT_PARAMETER Standard Table[0x2(16)]

IF_COMPONENTCONTROLLER~WDCTX_CONTEXT CONTEXT

IF_COMPONENTCONTROLLER~WDCTX_DATA DATA

IF_COMPONENTCONTROLLER~WDCTX_DATA_XML DATA_XML

IF_COMPONENTCONTROLLER~WDCTX_END_OF_LIST END_OF_LIST

IF_COMPONENTCONTROLLER~WDCTX_FILTER_VALUES FILTER_VALUES

IF_COMPONENTCONTROLLER~WDCTX_FUNCTION_ELEMENTS FUNCTION_ELEMENTS

IF_COMPONENTCONTROLLER~WDCTX_TOP_OF_LIST TOP_OF_LIST

IF_COMPONENTCONTROLLER~CONFIG_LOADED_OLD

<b> IF_COMPONENTCONTROLLER~R_COMPONENT </b>

IF_COMPONENTCONTROLLER~R_WD_LAYOUT_UI

<b>I would like to know how I can get the reference IG_COMPONENTCONTROLLERR_COMPONENT or IF_COMPONENTCONTROLLERR_COMPONENT in order to obtain the values within

R_RESULT_DATA

Of class CL_SALV_WD_C_TABLE.</b>

Regards

Accepted Solutions (1)

Accepted Solutions (1)

former_member215843
Active Participant
0 Kudos

Hi,

the point is that you have to get a reference to the interface controller of the ALV component. Therefore you have to declare the interface controller of the ALV component in the properties tab of your controller.

Then you can use the code wizard to call the method "get_model", which returns the reference to the class, where you can configure the ALV.

There are a couple of examples in all systems, which explain the ALV usage. They are called SALV_WD_DEMO_TABLE_*. Start with SALV_WD_DEMO_TABLE_SIMPLE and have a look at method "ON_UPLOAD_COMPLETE" in the component controller.

There you can copy some coding.

Regards, Regina

Faaiez
Advisor
Advisor
0 Kudos

I had a look at SALV_WD_DEMO_TABLE_SIMPLE and understand what it is doing but this uses the reference to CL_SALV_WD_CONFIG_TABLE to set columns etc. This I have used before. But what I require now is to get a reference to CL_SALV_WD_C_TABLE which has an attribute r_result_data that contains a reference to CL_SALV_WD_RESULT_DATA_TABLE.

Thanks

Former Member
0 Kudos

Hi Sallie,

I'm dealing with the same question.

I was wondering wether you already found a solution.

Please let me know.

Regards Alex van Hacht.

Message was edited by:

Alex van Hacht

Answers (0)