‎2008 Nov 13 6:35 AM
Hello All Experts,
I need to update one Ztable with the data from a flat file as Excell,
Which is the best method for this insertion of data ,
Please explain in detail ,
thanks in advance
please mention a best executable code for this .
Edited by: Alan Rarya on Nov 13, 2008 7:37 AM
‎2008 Nov 13 6:37 AM
First declare a internal table of the Ztable type in the ABAP program.
By using the FM GUI_UPLOAD upload the data into the internal table that you created in the first step
By using open SQL statement ( Modify) update the Z table .
Simple and Sweet
‎2008 Nov 13 6:38 AM
upload using Excel upload functional module.
for this make a search in the forum...u will get it there.
Then process that itab and insert it into Ztable...
‎2008 Nov 13 6:40 AM
Hi ,
GUI_UPLOAD ,UPLOAD ... WS_UPLOAD ...
PLease search in forums before posting !!!!
Regards
Renu ...
‎2008 Nov 13 6:41 AM
Hi Alan,
Use the following code:
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 .
Hope this will help.
Regards,
Nitin.
‎2008 Nov 13 6:42 AM
‎2008 Nov 13 6:46 AM
‎2008 Nov 13 10:00 AM
Perhaps knows the answer?
Ahh... sorry, he only asks you the questions......
Bye-bye,
Julius
‎2008 Nov 13 10:03 AM