‎2009 Feb 04 4:57 AM
Hi, in my requirement I am having 6 fields to be filled and a search button and a container area in which appropriate search data will be filled, after filling when the user clicks on any output data that should be filled in respective fields (one of the 6fields) then once the data is copied into filed the user clicks on the clear button to search for the next field data, I am able to fill the first field but after filling the data in the field when the user clicks on the clear button the data in the container is not getting filled i have called the method refresh_table_display below is the test code for clear ucom, let me know if I am missing any thing.
when 'CLEAR'.
DATA : R_REFRESH TYPE LVC_S_STBL.
REFRESH: IT_KNA1[], IT_FLDCAT.
R_REFRESH = IT_KNA1.
CALL METHOD object7->refresh_table_display
EXPORTING
is_stable = R_REFRESH
* i_soft_refresh =
EXCEPTIONS
finished = 1
others = 2
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL SCREEN 2000. .
‎2009 Feb 04 5:12 AM
if u wan that on clicking the clear button the data in the container is to be cleared, then think u can call the method FREE of the class CL_GUI_CUSTOM_CONTAINER.plz chk it.
‎2009 Feb 04 5:32 AM
Thanks for the reply but this is not working, is there any other way to do that.
Thanks.
‎2009 Feb 04 5:45 AM