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: 

regarding table control

Former Member
0 Kudos

hi to all,

PROCESS BEFORE OUTPUT.

LOOP AT ITAB INTO WA WITH CONTROL VCONTROL.

MODULE STATUS_0100.

ENDLOOP.

PROCESS AFTER INPUT.

MODULE USER_COMMAND_0100.

LOOP AT ITAB.

ENDLOOP.

please check this table control program code my doubt is--- here we are adding after PAI MODULE

<b>loop at itab-endloop</b> what is the reason behing this.

please send me answer asap...

thanks in advance

regards,

surya.

1 REPLY 1

Former Member
0 Kudos

Hi Surya,

During the PAI loop, in the module READ_TABLE_CONTROL the current number of the loop SY-LOOPC in the table control is placed an auxiliary variable. The number is dependent on the size of the screen. The rows of the internal table, whose row index corresponds to the current row of the table control, are overwritten with the contents of the work area User input is transferred from the input fields of the control to the internal table. In particular, the internal table also contains a flag in the column

to indicate whether the row of the table control is selected or not.

After the PAI loop, user input is processed in the module USER_COMMAND. The GUI status SCREEN_100 provides the appropriate function codes. You can scroll line by line or page by page, or Goto the first or last page. You can implement scrolling by setting the component TOP_LINE of control structure

For page-by-page scrolling the auxiliary variable that is filled in the PAI loop by SY-LOOPC is used as the step size.

<b>Kindly reward points if you found the reply helpful.<b>

Cheers,

Chaitanya.