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

saving data to ztable

Former Member
0 Likes
1,253

i have 4 input fields in my module pool programing & ztable also but this table contains fields with no information if i click save button in my module pool programing the above 4-fields have to store in my database ztable ,

how come it possible to update if i click save button in ztable. plz explain me very urgent..

5 REPLIES 5
Read only

Former Member
0 Likes
864

You need to write the code unde pAI EVENT

Module input.

case sy-ucomm.

when 'ENT1' . Assume that Enter button ok-code is ENT1

ztable-field1 = tablecontrol-field1.

ztable-field2 = tablecontrol-field2.

ztable-field3 = tablecontrol-field3.

ztable-field4 = tablecontrol-field4.

modify ztable .

endmodule.

Thanks

Seshu

Read only

Former Member
0 Likes
864

Hi

You need to code in PAI as follows assuming you give 'SAVE' as function code for save button.

case sy-ucomm.

when 'SAVE'.

<TAKE VALUES IN A INTERNAL TABLE>

modify ztable from itab.

update ztable from itab.

endcase.

Hope this helps...

Regards

dinesh

Read only

sudhir_uppalapati
Participant
0 Likes
864

jus write.

case sy-ucomm.

when save.

insert ztable.

endcase.

now the data you are entering in to input fields will be entered to ztable.

Read only

sudhir_uppalapati
Participant
0 Likes
864

jus write.

case sy-ucomm.

when 'save'.

insert ztable.

endcase.

now the data you are entering in to input fields will be entered to ztable.

Read only

0 Likes
864

Have a look at

as this gives a sample of how you might like to structure your code to update a Z table from screen fields, adding in extra data along the way.

Jonathan