‎2007 Jun 24 11:46 AM
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..
‎2007 Jun 24 1:25 PM
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
‎2007 Jun 25 4:40 AM
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
‎2007 Jul 19 6:18 PM
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.
‎2007 Jul 19 6:19 PM
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.
‎2007 Jul 20 5:03 AM