‎2008 Jun 04 6:21 AM
Can anyone send sample program to update z table using Zprogam.
i have data from excel sheet and and selection screen.
answers will be rewarded.
‎2008 Jun 04 6:29 AM
data: ztable_t type ztable.
Upload your excel table into abap pgm using cl_gui_frontendservices=>gui_upload into table itab.
loop at itab.
Move-corresponding itab to wa_ztable.
append wa_ztable to ztable_t.
endloop.
insert ztable from ztable_t .
‎2008 Jun 04 6:29 AM
data: ztable_t type ztable.
Upload your excel table into abap pgm using cl_gui_frontendservices=>gui_upload into table itab.
loop at itab.
Move-corresponding itab to wa_ztable.
append wa_ztable to ztable_t.
endloop.
insert ztable from ztable_t .
‎2008 Jun 04 6:31 AM
hi!
refer this,
UPDATE <Ztable name> SET <field to update>
WHERE condition.
‎2008 Jun 04 6:35 AM
Abhishek,
please try to search solution of your problem before throwing the thread,
i tried to search with update Z Table using Z program and got 1955 results.
please close this thread after giving mark.
Amit.
‎2008 Jun 04 6:41 AM
hi....
first upload the data from yur excel file into an internal table using ws_upload function.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = p_file
filetype = 'DAT'
TABLES
data_tab = itab_final.
loop at itab_final.
MOVE-CORRESPONDING itab_final TO ztable.
endloop.
modify ztable.
clear ztable.