‎2007 Apr 23 2:02 PM
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.
‎2007 Apr 23 2:15 PM
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
‎2007 Apr 23 2:06 PM
Hi,
create a PAI module :
Loop.
module save_TC on-input.
Endloop.
-> in the module modiy your itab
A.
‎2007 Apr 23 2:10 PM
Please be ellaborate,
Please give me some code.
Regards,
Roshan Lilaram.
‎2007 Apr 23 2:15 PM
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
‎2007 Apr 24 6:50 AM
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