Application Development 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: 

table control entries

sastry_gunturi
Active Participant
0 Kudos

i created a table control in screen 100 using a internal table from the program.

In my screen 200 i am entering and updating some fields in d/b.

again when i come to screen 100 i should see entries in the table control.

for this i've written select logic in the pbo of screen 100

however i am not able to see any entries....what could be the problem.

9 REPLIES 9

Former Member

former_member200338
Active Contributor
0 Kudos

Hi,

Try to give Commit statement in screen 200.

Please post your code of PBO for screen 100 and PAI of screen 200.

Regards,

Niyaz

0 Kudos
 select * from ysroles_request
          into corresponding fields
          of table itab_requests.

is the select query i wrote in the pbo

0 Kudos

is the data being fetched from database correctly?

keep a break point and check. try to refresh the internal table itab_requests before select query.

make sure u are using the same internal table (itab_requests) for displaying in table control

Regards,

Niyaz

0 Kudos

I am using the same itab for table control on the screen..........what's happening is

if the database has 10 entries..........the first ten row are shown as white and the remaining rows are grayed out........

Former Member
0 Kudos

Once you hit "Update Button" on screen 200 then before going to screen 100, just check in database that whether the data has been updated or not.

You may need to use Commit Work/Commit Work and wait for 1 sec if the data takes time to get updted in DB table.

Then you need to refresh the contents of internal table used on screen 100 and refill it by selecting data again.

Followed by Moving the contents of internal table to table control using LOOP...ENDLOOP.

0 Kudos

do i need to write in the select query in the loop...endloop after

before the loop....

I am working for the first time on the dialog program.....

0 Kudos

do i need to write in the select query in the loop...endloop after

before the loop....

I am working for the first time on the dialog program.....

0 Kudos

No need to put the select query in loop.

check this code.

PROCESS BEFORE OUTPUT.

MODULE POPULATE_IT.

LOOP AT IT_POPULATE WITH CONTROL so_tbl_ctrl.

ENDLOOP.

PROCESS AFTER INPUT.

LOOP AT IT_POPULATE.

ENDLOOP.

********************************************************************

MODULE populate_it OUTPUT.

refresh it_populate[].

SELECT * FROM ztest_so INTO TABLE it_populate.

ENDMODULE. " POPULATE_IT OUTPUT

PS: Make sure you have declared the same name of intenal table in table control.

Regards,

Niyaz