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

Refreshing Custom control

Former Member
0 Likes
1,259

Hi,

I have requirement like when the table name is entered and select display button , the contents of the table should be displayed. I have created module pool screen with a input field , push button and a custom control and written code using the oops alv to display the contents.

for the first time, when the table name is entered and push button is selected, the contents would be displayed in the custom control area. But when the table name is changed and push button is selected , the new table contents are not getting displayed means the custom control is not getting refreshed....

any one have idea how to refresh the custom control...........or any other approach......

regards,

lakshmi

2 REPLIES 2
Read only

Former Member
0 Likes
659

Call this method after the button click handling.

call method grid->refresh_table_display.

Read only

Former Member
0 Likes
659

Hi Lakshmi,

Use the below method


CALL METHOD G_GRID->REFRESH_TABLE_DISPLAY
*  EXPORTING
*    IS_STABLE      =
*    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.