on 10-26-2006 7:38 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.