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

module pool, table control line selection

Former Member
0 Likes
726

I am getting some output in my table control as per my select query.

now i am selecting a few lines from my table control and those lines that i have selected needs to be saved in my ztable.

i dont know how to read those selected lines,

i have defined a field called chk in the attributes as well as in the itab,

when i select a few lines and then i check in the debugger, there is no value in the chk column.

I dont know what i am missing.

in attributes the w/selcolumn = itab-chk is been defined by me, i hope this is correct and

the code is

When 'SAVE'.

Loop at itab where CHK = 'X'.

      • some code ***

Endloop.

here nothing is in chk.

the whole column is blank after pressing save and after selecting a few lines and i am also not getting any vertical scrol bar.

Please help.

Regards,

Roshan Lilaram.

1 ACCEPTED SOLUTION
Read only

former_member673464
Active Contributor
0 Likes
644

hi..

To get vertical scroll bar give number of lines in the table to the custom control structure lines .

eg if your custom control name is w_control then in pbo give as below.

describe table t_itab lines w_lines.

w_control-lines = w_lines.

refer to the demo program <b>demo_dynpro_tabcont_loop</b> for scrolling .

For modification refer to the demo program <b>demo_dynpro_tabcont_loop_at</b>.

In loop with itab. and endloop. call a module in which you can check the check box value and You can modify the table accordingly.

regards,

veeresh

4 REPLIES 4
Read only

andreas_mann3
Active Contributor
0 Likes
644

Hi,

create a PAI module :

Loop.

module save_TC on-input.

Endloop.

-> in the module modiy your itab

A.

Read only

0 Likes
644

Please be ellaborate,

Please give me some code.

Regards,

Roshan Lilaram.

Read only

former_member673464
Active Contributor
0 Likes
645

hi..

To get vertical scroll bar give number of lines in the table to the custom control structure lines .

eg if your custom control name is w_control then in pbo give as below.

describe table t_itab lines w_lines.

w_control-lines = w_lines.

refer to the demo program <b>demo_dynpro_tabcont_loop</b> for scrolling .

For modification refer to the demo program <b>demo_dynpro_tabcont_loop_at</b>.

In loop with itab. and endloop. call a module in which you can check the check box value and You can modify the table accordingly.

regards,

veeresh

Read only

Former Member
0 Likes
644

Hi Roshan,

I guess I answered you this query.

Well when a table control line is selected the field 'sel' turns to 'X'.

so in the PAI of the screen include the code between LOOP ENDLOOP like this

FIELD sel MODULE xxxxx ON INPUT.

in the MODULE xxxx above write the code that you want to.

This field sel gets flagged with value 'X' whenever a line is selected on table control and the module above gets triggered for those lines that you have selected on the table control.

This will surely help you.

Regards,

Sravanthi