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

Editing Ztable using table control in Module pool

former_member671224
Participant
0 Likes
502

Hi Gurus,

I getting some records from Ztable and displaying them using Table control. If the user made changes for some records it should be updated in Ztable also.

how can i do this? can someone help regarding this.

3 REPLIES 3
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
480

Hi,

Check this link.In that,I am explaining exactly the similar scenario.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/table%20c...

Kindly reward points by clicking the star on th eleft of reply,if it helps.

Read only

Former Member
0 Likes
480

hi

REFER CODE:

HERE ZDEMO IS DATABASE TABLE.

T_ZDEMO IS INTERNAL TABLE.

IN PAI

LOOP WITH CONTROL TC_EMP.

MODULE MODIFY_DATA.

ENDLOOP.

MODULE MODIFY_DATA INPUT.

MODIFY T_ZDEMO FROM ZDEMO INDEX tc_emp-current_line.

ENDMODULE. " MODIFY_DATA INPUT

REGARDS

SANTOSH

Read only

former_member673464
Active Contributor
0 Likes
480

hai..

You can update data base table in loop with control in pai and in internal table at the same time using modify statement.

in pai

loop at t_table.

module modify .

endloop.

In module you can change values.

regards,

veeresh