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

Refresh table control

Former Member
0 Likes
494

Hi ppl,

I have a table ctrl TC001 at screen 1000. The table ctrl is to list all the locations to be maintained. To create new location, i created screen 1100 (in modul dialog box)to insert all the info for new location. Then after save into database, the screen 1100 will leave to screen 0 (back to screen 1000). My question is, how to refresh table ctrl TC001 directly after i leave to screen 0 from screen 1100 which means the new location that i just inserted in screen 1100 will appear in the table ctrl TC001 at screen 1000?

Please help. TQ

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
455

Is the PBO of screen 1000 will be called again since the screen is already open and always open when screen 1100 (the modal dialog box) execute and then leave after save has been made to the entry?

3 REPLIES 3
Read only

Former Member
0 Likes
455

one way would be to modify the internal table such that it reflects the changes done to the d/b table before the LEAVE TO SCREEN 0 statement(in screen 1100), other way would be to include the whole logic to fetch the data in the internal table in the PBO of the screen 1000.

Read only

Former Member
0 Likes
456

Is the PBO of screen 1000 will be called again since the screen is already open and always open when screen 1100 (the modal dialog box) execute and then leave after save has been made to the entry?

Read only

0 Likes
455

assuming that

1. the <b>next screen</b> attribute defined for 1000 is 1000 itself

2. u r leaving to screen 1100(from 1000) using a CALL SCREEN 1100 statement in the PAI of 1000

3. coming back to 1000 using a LEAVE TO SCREEN 0 statement in PAI of 1100,

then the control returns to the statement after the CALL SCREEN 1000 completes the execution of the PAI of 1000 and processes the PBO of 1000(as the next screen for 1000 is 1000 itself) and displays the 1000 screen.

u can also check by placing a break-point statement in the PBO of 1000,

u the following statement to place a break-point.

<b>break <user name>.</b>