2008 Jan 14 5:24 AM
hi,
I have a customised screen on which i have a two table controls, where the user enters data , so my problem is once i enter data and hit enter the data is getting lost .. can anybody plz suggest me any way to control this ....
Also i am not able to scroll the Table control .... Plz suggest
Regards,
Saleha
hi,
I have a customised screen on which i have a two table controls, where the user enters data , so my problem is once i enter data and hit enter the data is getting lost .. can anybody plz suggest me any way to control this ....
Also i am not able to scroll the Table control .... Plz suggest
Regards,
Saleha
2008 Jan 14 5:50 AM
Hi Saleha
With reference to your first problem , the data will obviously get lost when you hit the enetr button unless you transfer the data entered in the table control back to your program. This is done in the PAI of your screen and you will have to modify the data of your internal table by the data entered on the screen.
loop at int_tab.
module modify int_tab.
endloop.
Here int_tab is your table control internal table.
module modify int_tab is where you will modify your internal table from your screen.
&----
*& Module modify_int_yab
&----
MODULE modify_int_tab.
modify int_tab from gs_tab index tc_control-current_line.
ENDMODULE.
tc_control is your table control.
This should solve your first problem.
As far as the scrolling problem is concerned , you will have to define the number of lines for your table control in the PBO.
In the PBO:
&----
*& Module init_status
&----
MODULE init_status.
describe table int_tab lines l_lines.
tc_control-lines = l_lines.
ENDMODULE.
I hope this solves both your problems.
Thanks and Regards
Shivika
2008 Jan 14 6:14 AM
hi shivika,
this is what i have coded in PAI
chain.
MODULE tc_pushout_mkt_modify ON CHAIN-REQUEST.
endchain.
MODULE tc_pullin_mkt_modify INPUT.
INSERT it_pullin_mkt
INDEX tc_pullin_mkt-current_line.
ENDMODULE. " tc_pullin_mkt_modify INPUT
even after coding so it still looses the data.
i want the data to be retained in table control..
regards,
saleha
2008 Jan 14 6:17 AM
Hi,
You have to populate the data after user input also.
Pls refer to the sample program:
RSDEMO_TABLE_CONTROL
Regards,
Renjith Michael.