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: 

value entering problem in table control

Former Member
0 Kudos

i created two table controls via. table control wizard using dictionary fields in a subscreen under a tabsrip control.. but values entered disappears..

plz help me to overcome this problem

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Please write loop on table control in PBO,

and use Chain operator in PAI...to capture the same.

Cheers,

Chaitanya.

4 REPLIES 4

Former Member
0 Kudos

check the screen attributes of the fields on the screen

whether output , active and visible are checked or not

Former Member
0 Kudos

Have you used APPEND statement in the PAI

APPEND ITAB.

Former Member
0 Kudos

Hi,

In the PAI you have to move the table control values to the internal table and also in the PBO you have to move the data from the internal table to the table control structure. Please don't write any database select statements inside the subscreen.

Do the database selection only at one place in the main window and then do all the changes to the internal table only and at last save the internal table data to the database.

Eg:

...............................................PBO.............................................

LOOP AT internal_table

INTO internal_table_workarea

CURSOR table_control-current_line

WITH CONTROL table_control.

MODULE move_to_tablecontrol.

ENDLOOP.

MODULE move_to_tablecontrol......................................................

MOVE workarea TO tablecontrol structure.

END MODULE.............................................................................

.......................................PAI...............................................

LOOP AT internal_table.

MODULE move_from_tablecontrol.

ENDLOOP.

MODULE move_from_tablecontrol..........................................................

MOVE tablecontrol_structure TO work_area.

MODIFY internal_table

INDEX table_control-current_line

FROM workarea.

END MODULE..............................................................................................

Regards,

Harish.

Former Member
0 Kudos

Hi,

Please write loop on table control in PBO,

and use Chain operator in PAI...to capture the same.

Cheers,

Chaitanya.