‎2008 Nov 09 4:50 AM
hi:
i have made a transaction which shows the table which i made using the table control in screen programing.now when this table is shown and i change the values in any column of table and then press enter changes are vanished i.e changes are not saved. i want the changes should be saved.but i dnt want to use table maintenance generator. i want to do it using table control.
‎2008 Nov 09 4:55 AM
Hi,
In your PBO....You need to Populate your Table Control with your ITAB values...Whereas in PAI your need to Modify your ITAB from the Table Control Values....
It has the following flow logic:
PROCESS BEFORE OUTPUT.
MODULE status_0100.
LOOP AT itab INTO demo_conn WITH CONTROL flights.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE cancel AT EXIT-COMMAND.
LOOP AT itab.
MODULE read_table_control.
ENDLOOP.
MODULE user_command_0100.
MODULE read_table_control INPUT.
MODIFY itab FROM demo_conn INDEX flights-current_line.
ENDMODULE.
Refer:
http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dbac5e35c111d1829f0000e829fbfe/content.htm
‎2008 Nov 09 4:55 AM
Hi,
In your PBO....You need to Populate your Table Control with your ITAB values...Whereas in PAI your need to Modify your ITAB from the Table Control Values....
It has the following flow logic:
PROCESS BEFORE OUTPUT.
MODULE status_0100.
LOOP AT itab INTO demo_conn WITH CONTROL flights.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE cancel AT EXIT-COMMAND.
LOOP AT itab.
MODULE read_table_control.
ENDLOOP.
MODULE user_command_0100.
MODULE read_table_control INPUT.
MODIFY itab FROM demo_conn INDEX flights-current_line.
ENDMODULE.
Refer:
http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dbac5e35c111d1829f0000e829fbfe/content.htm