cancel
Showing results for 
Search instead for 
Did you mean: 

Error Data no longer available when SALV_WD_TABLE GET_MODEL called

Former Member
0 Kudos

Hello ,

I have dynpro component on ECC6.0 POWL_UI_COMP which displayes service oders.

This dynpro component has one more component usage component POWL_TABLE_COMP.

This POWL_TABLE_COMP has used a SALV_WD_TABLE which is for ALV display.

I have to create a on ALV toolbar one button,I know that I have to do this using self defined functions in wddoinit method of

view which uses SALV_WD_TABLE and i could generate a button using self defined fucntions for another dynpro component.

Now I am trying same method for this POWL_TABLE_COMP dynpro which is using SALV_WD_TABle , but its giving error as this

Data no longer available when SALV_WD_TABLE GET_MODEL called .

pl can you suggest on this urgently.

Attching a code to geenrated s self defined function.

DATA: L_REF_CMP_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE.

L_REF_CMP_USAGE = WD_THIS->WD_CPUSE_ALV( ).

IF L_REF_CMP_USAGE->HAS_ACTIVE_COMPONENT( ) IS INITIAL.

L_REF_CMP_USAGE->CREATE_COMPONENT( ).

ENDIF.

DATA: L_REF_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .

L_REF_INTERFACECONTROLLER = WD_THIS->WD_CPIFC_ALV( ).

DATA:

L_VALUE TYPE REF TO CL_SALV_WD_CONFIG_TABLE.

L_VALUE = L_REF_INTERFACECONTROLLER->GET_MODEL(

).

lr_config_table ?= lr_interface_salv_wd_table->get_model( ).

DATA :lr_buttonui type REF TO CL_SALV_WD_FE_BUTTON.

CREATE OBJECT lr_buttonui.

lr_buttonui->SET_TEXT( 'ACCEPT' ).

DATA button1 TYPE REF TO CL_SALV_WD_FUNCTION.

button1 = lr_config_table->IF_SALV_WD_FUNCTION_SETTINGS~create_function( id = 'LBUTTON' ).

button1->SET_EDITOR( lr_buttonui )

thanks,

Sharada

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

pl can anyone reply to this and help us.

thanks,

Sharada

Former Member
0 Kudos

Hi Sharada ,

I had the same error message.

To resolve the problem I had to bind the context again to the interface controller of the used component.

Alex van Hacht.

Former Member
0 Kudos

hi, I also met such problem ,could you please give me some hint ?