Skip to Content
0
Jun 13, 2007 at 04:36 AM

Enhancement of standard components

30 Views

Hi All,

I am getting a problem while enhancing the standard component WDR_F4_ELEMENTARY , in that i am enhancing the view PRESELECTION.

my aim is to make the button 'SEARCH' as a default button of the container . i am writing the following code in the pre-exit of wdmodifyview method

DATA : LR_CONTAINER TYPE REF TO CL_WD_TRANSPARENT_CONTAINER.

LR_CONTAINER ?= VIEW->GET_ELEMENT( 'ROOTUIELEMENTCONTAINER' ).

IF LR_CONTAINER IS BOUND .

LR_CONTAINER->SET_DEFAULT_BUTTON_ID( 'SEARCH' ).

ENDIF.

above code get activated without any error but when i test it , i am not getting the desired result . even tried with this code in post-exit of wdmodifyview .

Kindly help me in this ..

Regards

Yashpal