Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Clearing Container data

Former Member
0 Likes
801

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. 

.

3 REPLIES 3
Read only

Former Member
0 Likes
592

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.

Read only

0 Likes
592

Thanks for the reply but this is not working, is there any other way to do that.

Thanks.

Read only

Former Member
0 Likes
592

chk if this link helps: