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

how to save modify value in a table (table created using table control)

Former Member
0 Likes
813

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
505

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

1 REPLY 1
Read only

Former Member
0 Likes
506

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